CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
PPSAlignmentWorker Class Reference
Inheritance diagram for PPSAlignmentWorker:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Classes

struct  SectorData
 

Public Member Functions

 PPSAlignmentWorker (const edm::ParameterSet &iConfig)
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void bookHistograms (DQMStore::IBooker &iBooker, edm::Run const &, edm::EventSetup const &iSetup) override
 

Private Attributes

bool debug_
 
edm::ESGetToken< PPSAlignmentConfig, PPSAlignmentConfigRcdesTokenAnalyze_
 
edm::ESGetToken< PPSAlignmentConfig, PPSAlignmentConfigRcdesTokenBookHistograms_
 
std::string folder_
 
SectorData sectorData45
 
SectorData sectorData56
 
edm::EDGetTokenT< CTPPSLocalTrackLiteCollectiontracksToken_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 40 of file PPSAlignmentWorker.cc.

Constructor & Destructor Documentation

◆ PPSAlignmentWorker()

PPSAlignmentWorker::PPSAlignmentWorker ( const edm::ParameterSet iConfig)

Definition at line 319 of file PPSAlignmentWorker.cc.

320  : esTokenBookHistograms_(esConsumes<PPSAlignmentConfig, PPSAlignmentConfigRcd, edm::Transition::BeginRun>(
321  edm::ESInputTag("", iConfig.getParameter<std::string>("label")))),
322  esTokenAnalyze_(esConsumes<PPSAlignmentConfig, PPSAlignmentConfigRcd>(
323  edm::ESInputTag("", iConfig.getParameter<std::string>("label")))),
324  tracksToken_(consumes<CTPPSLocalTrackLiteCollection>(iConfig.getParameter<edm::InputTag>("tagTracks"))),
325  folder_(iConfig.getParameter<std::string>("folder")),
326  debug_(iConfig.getParameter<bool>("debug")) {}

Member Function Documentation

◆ analyze()

void PPSAlignmentWorker::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 335 of file PPSAlignmentWorker.cc.

335  {
336  const auto &tracks = iEvent.get(tracksToken_);
337 
338  const auto &cfg = iSetup.getData(esTokenAnalyze_);
339 
342 }

References looper::cfg, debug_, esTokenAnalyze_, edm::EventSetup::getData(), iEvent, PPSAlignmentWorker::SectorData::process(), sectorData45, sectorData56, tracks, and tracksToken_.

◆ bookHistograms()

void PPSAlignmentWorker::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  ,
edm::EventSetup const &  iSetup 
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 328 of file PPSAlignmentWorker.cc.

328  {
329  const auto &cfg = iSetup.getData(esTokenBookHistograms_);
330 
331  sectorData45.init(iBooker, cfg, cfg.sectorConfig45(), folder_ + "/worker", debug_);
332  sectorData56.init(iBooker, cfg, cfg.sectorConfig56(), folder_ + "/worker", debug_);
333 }

References looper::cfg, debug_, esTokenBookHistograms_, folder_, edm::EventSetup::getData(), PPSAlignmentWorker::SectorData::init(), sectorData45, and sectorData56.

Member Data Documentation

◆ debug_

bool PPSAlignmentWorker::debug_
private

Definition at line 109 of file PPSAlignmentWorker.cc.

Referenced by analyze(), and bookHistograms().

◆ esTokenAnalyze_

edm::ESGetToken<PPSAlignmentConfig, PPSAlignmentConfigRcd> PPSAlignmentWorker::esTokenAnalyze_
private

Definition at line 101 of file PPSAlignmentWorker.cc.

Referenced by analyze().

◆ esTokenBookHistograms_

edm::ESGetToken<PPSAlignmentConfig, PPSAlignmentConfigRcd> PPSAlignmentWorker::esTokenBookHistograms_
private

Definition at line 100 of file PPSAlignmentWorker.cc.

Referenced by bookHistograms().

◆ folder_

std::string PPSAlignmentWorker::folder_
private

Definition at line 108 of file PPSAlignmentWorker.cc.

Referenced by bookHistograms().

◆ sectorData45

SectorData PPSAlignmentWorker::sectorData45
private

Definition at line 105 of file PPSAlignmentWorker.cc.

Referenced by analyze(), and bookHistograms().

◆ sectorData56

SectorData PPSAlignmentWorker::sectorData56
private

Definition at line 106 of file PPSAlignmentWorker.cc.

Referenced by analyze(), and bookHistograms().

◆ tracksToken_

edm::EDGetTokenT<CTPPSLocalTrackLiteCollection> PPSAlignmentWorker::tracksToken_
private

Definition at line 103 of file PPSAlignmentWorker.cc.

Referenced by analyze().

PPSAlignmentWorker::tracksToken_
edm::EDGetTokenT< CTPPSLocalTrackLiteCollection > tracksToken_
Definition: PPSAlignmentWorker.cc:103
edm::ESInputTag
Definition: ESInputTag.h:87
PPSAlignmentWorker::debug_
bool debug_
Definition: PPSAlignmentWorker.cc:109
PPSAlignmentWorker::sectorData45
SectorData sectorData45
Definition: PPSAlignmentWorker.cc:105
PPSAlignmentWorker::esTokenBookHistograms_
edm::ESGetToken< PPSAlignmentConfig, PPSAlignmentConfigRcd > esTokenBookHistograms_
Definition: PPSAlignmentWorker.cc:100
PPSAlignmentWorker::sectorData56
SectorData sectorData56
Definition: PPSAlignmentWorker.cc:106
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:159
PPSAlignmentWorker::esTokenAnalyze_
edm::ESGetToken< PPSAlignmentConfig, PPSAlignmentConfigRcd > esTokenAnalyze_
Definition: PPSAlignmentWorker.cc:101
PPSAlignmentWorker::folder_
std::string folder_
Definition: PPSAlignmentWorker.cc:108
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
looper.cfg
cfg
Definition: looper.py:297
PPSAlignmentWorker::SectorData::process
unsigned int process(const CTPPSLocalTrackLiteCollection &tracks, const PPSAlignmentConfig &cfg, bool debug)
Definition: PPSAlignmentWorker.cc:200
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::InputTag
Definition: InputTag.h:15
PPSAlignmentWorker::SectorData::init
void init(DQMStore::IBooker &iBooker, const PPSAlignmentConfig &cfg, const SectorConfig &_scfg, const std::string &folder, bool debug)
Definition: PPSAlignmentWorker.cc:116