CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::EDAnalyzer Class Referenceabstract

#include <EDAnalyzer.h>

Inheritance diagram for edm::EDAnalyzer:
edm::EDConsumerBase AlcaBeamMonitorClient BeamConditionsMonitor BeamMonitorBx CaloConfigWriter CaloMCTruthTreeProducer CaloParamsWriter CentralityTableProducer cms::MinBias CompareToObjectMapRecord CSCAFEBAnalyzer CSCChamberTimeCorrectionsReadTest CSCMap1Read CSCTFanalyzer CSCTFConfigTestAnalyzer CSCValidation DQMGenericTnPClient DQMHistNormalizer DQMOfflineHLTEventInfoClient DQMRivetClient DTConfigTester DTEtaPatternLutTester DTExtLutTester DTnoiseDBValidation DTPhiLutTester DTPtaLutTester DTQualPatternLutTester DTt0DBValidation DTTFMasksTester DTTFParametersTester DTTPGParamsWriter DTTrigTest DumpGctDigis EcalBarrelMonitorDbModule EcalSimpleTBAnalyzer EcalTBHodoscopeRawInfoDumper EcalTBTDCRawInfoDumper edm::AnalyzerWrapper< T > edmtest::L1TriggerScalerESAnalyzer EgHLTOfflineSummaryClient ESDaqInfoTask ESDataCertificationTask ESDcsInfoTask FFTJetCorrectorDBReader FFTJetCorrectorDBWriter FFTJetTreeDump FourVectorHLT GctDigiToPsbText GctErrorAnalyzer GctFibreAnalyzer GctTimingAnalyzer GEMPadDigiReader GenericBenchmarkAnalyzer HepMCEventWriter HistoAnalyzer< C > HLTBitAnalyzer HLTGetDigi HLTInclusiveVBFClient HLTOverallSummary HLTScalersClient L1CaloGeometryDump L1CaloInputScalesGenerator L1CaloInputScaleTester L1ElectronRecoTreeProducer L1ExtraTestAnalyzer L1ExtraTreeProducer L1GctConfigDump L1GenTreeProducer L1GtAnalyzer L1GtDataEmulAnalyzer L1GtPackUnpackAnalyzer L1GtPatternGenerator L1KeyListWriter L1KeyWriter L1MenuTreeProducer L1MetFilterRecoTreeProducer L1MuCSCTFParametersTester L1MuonOverlapParamsDBProducer L1MuScalesTester L1RCTChannelMaskTester L1RCTLutWriter L1RCTParametersTester L1RCTRelValAnalyzer L1RCTSaveInput L1RCTTestAnalyzer L1RecoTreeProducer L1ScalersClient L1ScalesTester l1t::GtInputDump l1t::GtRecordDump l1t::L1TCaloStage1LutWriter l1t::L1TGlobalAnalyzer l1t::L1TStage2CaloAnalyzer L1TauRecoTreeProducer L1TCaloParamsUpdater L1TCaloParamsViewer L1TCaloParamsWriter L1TCaloStage2ParamsWriter L1TGlobalPrescalesVetosViewer L1TGlobalPrescalesVetosWriter L1TMuonBarrelKalmanParamsViewer L1TMuonBarrelParamsViewer L1TMuonBarrelParamsWriter L1TMuonEndCapForestWriter L1TMuonEndCapParamsViewer L1TMuonEndCapParamsWriter L1TMuonGlobalParamsViewer L1TMuonGlobalParamsWriter L1TMuonOverlapParamsViewer L1TMuonOverlapParamsWriter L1TriggerKeyExtViewer L1TriggerKeyListExtReader L1TStage2InputPatternWriter L1TUtmTriggerMenuDumper LumiCalculator OMTFPatternMaker PFJetBenchmarkAnalyzer PFMCTruthTreeProducer PFMETBenchmarkAnalyzer PFTauElecRejectionBenchmarkAnalyzer PFTester PlaybackRawDataProvider PlottingDevice Profiler ProfilerAnalyzer RawToText RctDigiToRctText RctDigiToSourceCardText recoBSVTagInfoValidationAnalyzer SiStripAnalyser SiStripCertificationInfo SiStripCommissioningOfflineClient SiStripCommissioningSource SiStripDaqInfo SiStripDcsInfo TauDQMFileLoader TauDQMHistPlotter TauDQMSimpleFileSaver TauJetCorrectorExample TreeWriterForEcalCorrection TtFullHadSignalSelMVATrainer TtSemiLepJetCombMVATrainer TtSemiLepSignalSelMVATrainer ZdcTBAnalyzer

Public Types

typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 

Private Member Functions

virtual void analyze (Event const &, EventSetup const &)=0
 
virtual void beginJob ()
 
virtual void beginLuminosityBlock (LuminosityBlock const &, EventSetup const &)
 
virtual void beginRun (Run const &, EventSetup const &)
 
void doAccessInputProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
void doBeginJob ()
 
bool doBeginLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doBeginProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
bool doBeginRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
void doEndJob ()
 
bool doEndLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doEndProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
bool doEndRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
bool doEvent (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
void doRegisterThinnedAssociations (ProductRegistry const &, ThinnedAssociationsHelper &)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToCloseOutputFile ()
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
virtual void endJob ()
 
virtual void endLuminosityBlock (LuminosityBlock const &, EventSetup const &)
 
virtual void endRun (Run const &, EventSetup const &)
 
bool hasAccumulator () const
 
bool hasAcquire () const
 
void preActionBeforeRunEventAsync (WaitingTaskHolder, ModuleCallingContext const &, Principal const &) const
 
void registerProductsAndCallbacks (EDAnalyzer const *, ProductRegistry *reg)
 
virtual void respondToCloseInputFile (FileBlock const &)
 
virtual void respondToOpenInputFile (FileBlock const &)
 
void setModuleDescription (ModuleDescription const &md)
 
SharedResourcesAcquirersharedResourcesAcquirer ()
 

Private Attributes

std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
 
SerialTaskQueue luminosityBlockQueue_
 
ModuleDescription moduleDescription_
 
SharedResourcesAcquirer resourceAcquirer_
 
SerialTaskQueue runQueue_
 

Friends

template<typename T >
class maker::ModuleHolderT
 
template<typename T >
class WorkerT
 

Additional Inherited Members

- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

The legacy EDAnalyzer class is deprecated. We annotate the constructor only with the CMS_DEPRECATED, because with gcc it turns out to flag deriving classes more reliably than annotating the entire class.

Definition at line 35 of file EDAnalyzer.h.

Member Typedef Documentation

◆ ModuleType

Definition at line 41 of file EDAnalyzer.h.

Constructor & Destructor Documentation

◆ EDAnalyzer()

edm::EDAnalyzer::EDAnalyzer ( )

Definition at line 28 of file EDAnalyzer.cc.

References edm::SharedResourcesRegistry::instance(), edm::SharedResourcesRegistry::kLegacyModuleResourceName, and edm::SharedResourcesRegistry::registerSharedResource().

28  : moduleDescription_() {
30  }
static SharedResourcesRegistry * instance()
ModuleDescription moduleDescription_
Definition: EDAnalyzer.h:105
void registerSharedResource(const std::string &)
A resource name must be registered before it can be used in the createAcquirer call.
static const std::string kLegacyModuleResourceName
All legacy modules share this resource.

◆ ~EDAnalyzer()

edm::EDAnalyzer::~EDAnalyzer ( )
override

Definition at line 27 of file EDAnalyzer.cc.

27 {}

Member Function Documentation

◆ analyze()

virtual void edm::EDAnalyzer::analyze ( Event const &  ,
EventSetup const &   
)
privatepure virtual

Implemented in TauDQMHistPlotter, HLTScalersClient, GctErrorAnalyzer, CSCValidation, L1GtAnalyzer, L1GtDataEmulAnalyzer, EgHLTOfflineSummaryClient, FFTJetTreeDump, L1TauRecoTreeProducer, TauJetCorrectorExample, l1t::GtRecordDump, HLTGetDigi, L1RCTLutWriter, SiStripDcsInfo, l1t::L1TGlobalAnalyzer, L1ExtraTreeProducer, StopProfilerAnalyzer, L1GenTreeProducer, PFMETBenchmarkAnalyzer, HLTInclusiveVBFClient, HLTOverallSummary, L1ExtraTestAnalyzer, PFJetBenchmarkAnalyzer, SiStripCertificationInfo, L1RCTTestAnalyzer, L1RCTSaveInput, FourVectorHLT, SiStripDaqInfo, L1TStage2InputPatternWriter, l1t::GtInputDump, L1MetFilterRecoTreeProducer, FFTJetCorrectorDBReader, L1MenuTreeProducer, StartProfilerAnalyzer, edm::AnalyzerWrapper< T >, SiStripCommissioningSource, FFTJetCorrectorDBWriter, DTTrigTest, L1GtPackUnpackAnalyzer, L1ScalersClient, L1GtPatternGenerator, L1ElectronRecoTreeProducer, L1RCTRelValAnalyzer, RctDigiToSourceCardText, L1CaloGeometryDump, L1RCTParametersTester, L1RecoTreeProducer, DTt0DBValidation, OMTFPatternMaker, SiStripAnalyser, CSCTFanalyzer, L1RCTChannelMaskTester, L1TUtmTriggerMenuDumper, L1TCaloParamsViewer, CentralityTableProducer, DTnoiseDBValidation, Profiler, PlottingDevice, recoBSVTagInfoValidationAnalyzer, BeamMonitorBx, ProfilerAnalyzer, EcalSimpleTBAnalyzer, TauDQMFileLoader, BeamConditionsMonitor, GctTimingAnalyzer, L1MuCSCTFParametersTester, L1CaloInputScaleTester, LumiCalculator, PFTester, l1t::L1TCaloStage1LutWriter, CSCTFConfigTestAnalyzer, DQMOfflineHLTEventInfoClient, DumpGctDigis, DTConfigTester, edmtest::L1TriggerScalerESAnalyzer, SiStripCommissioningOfflineClient, GctFibreAnalyzer, l1t::L1TStage2CaloAnalyzer, L1CaloInputScalesGenerator, EcalBarrelMonitorDbModule, HLTBitAnalyzer, GenericBenchmarkAnalyzer, DQMHistNormalizer, cms::MinBias, RctDigiToRctText, TtSemiLepJetCombMVATrainer, CaloConfigWriter, CaloParamsWriter, AlcaBeamMonitorClient, L1TCaloParamsWriter, L1GctConfigDump, L1ScalesTester, TtSemiLepSignalSelMVATrainer, PFTauElecRejectionBenchmarkAnalyzer, DTTPGParamsWriter, CompareToObjectMapRecord, GEMPadDigiReader, HistoAnalyzer< C >, TreeWriterForEcalCorrection, RawToText, TtFullHadSignalSelMVATrainer, GctDigiToPsbText, DQMGenericTnPClient, DTEtaPatternLutTester, DTExtLutTester, DTPhiLutTester, DTPtaLutTester, DTQualPatternLutTester, DTTFMasksTester, DTTFParametersTester, L1TMuonGlobalParamsViewer, TauDQMSimpleFileSaver, HepMCEventWriter, L1TMuonBarrelParamsViewer, L1TMuonBarrelKalmanParamsViewer, L1TMuonOverlapParamsViewer, ZdcTBAnalyzer, L1TMuonBarrelParamsWriter, L1TMuonEndCapParamsViewer, ESDaqInfoTask, ESDcsInfoTask, L1TMuonEndCapForestWriter, L1TMuonEndCapParamsWriter, PlaybackRawDataProvider, DQMRivetClient, L1TCaloStage2ParamsWriter, L1TGlobalPrescalesVetosWriter, L1TMuonGlobalParamsWriter, L1MuScalesTester, L1TGlobalPrescalesVetosViewer, L1MuonOverlapParamsDBProducer, L1TCaloParamsUpdater, EcalTBHodoscopeRawInfoDumper, EcalTBTDCRawInfoDumper, L1KeyListWriter, L1KeyWriter, L1TMuonOverlapParamsWriter, CSCMap1Read, ESDataCertificationTask, CaloMCTruthTreeProducer, PFMCTruthTreeProducer, L1TriggerKeyExtViewer, CSCAFEBAnalyzer, CSCChamberTimeCorrectionsReadTest, and L1TriggerKeyListExtReader.

Referenced by doEvent().

◆ baseType()

const std::string & edm::EDAnalyzer::baseType ( )
static

Definition at line 123 of file EDAnalyzer.cc.

References edm::kBaseType().

123 { return kBaseType; }
static const std::string kBaseType("EDAnalyzer")

◆ beginJob()

virtual void edm::EDAnalyzer::beginJob ( void  )
inlineprivatevirtual

Reimplemented in HLTScalersClient, GctErrorAnalyzer, EgHLTOfflineSummaryClient, FFTJetTreeDump, L1TauRecoTreeProducer, TauJetCorrectorExample, l1t::L1TGlobalAnalyzer, L1ExtraTreeProducer, L1GenTreeProducer, PFMETBenchmarkAnalyzer, SiStripDcsInfo, PFJetBenchmarkAnalyzer, FourVectorHLT, L1TStage2InputPatternWriter, L1GtDataEmulAnalyzer, L1MetFilterRecoTreeProducer, L1GtAnalyzer, L1MenuTreeProducer, edm::AnalyzerWrapper< T >, L1ElectronRecoTreeProducer, L1CaloGeometryDump, CSCTFanalyzer, L1GtPatternGenerator, L1RecoTreeProducer, SiStripAnalyser, L1TUtmTriggerMenuDumper, EcalSimpleTBAnalyzer, OMTFPatternMaker, Profiler, PlottingDevice, PFTester, DTTrigTest, L1GtPackUnpackAnalyzer, ProfilerAnalyzer, L1CaloInputScaleTester, EcalBarrelMonitorDbModule, l1t::L1TCaloStage1LutWriter, LumiCalculator, CSCTFConfigTestAnalyzer, BeamMonitorBx, GenericBenchmarkAnalyzer, cms::MinBias, l1t::L1TStage2CaloAnalyzer, L1CaloInputScalesGenerator, edmtest::L1TriggerScalerESAnalyzer, BeamConditionsMonitor, TtSemiLepSignalSelMVATrainer, TtSemiLepJetCombMVATrainer, L1ScalersClient, DQMOfflineHLTEventInfoClient, PFTauElecRejectionBenchmarkAnalyzer, AlcaBeamMonitorClient, TtFullHadSignalSelMVATrainer, RawToText, ESDaqInfoTask, ESDcsInfoTask, PlaybackRawDataProvider, EcalTBHodoscopeRawInfoDumper, EcalTBTDCRawInfoDumper, ESDataCertificationTask, L1MuonOverlapParamsDBProducer, CSCMap1Read, CaloMCTruthTreeProducer, PFMCTruthTreeProducer, and CSCChamberTimeCorrectionsReadTest.

Definition at line 92 of file EDAnalyzer.h.

Referenced by doBeginJob().

92 {}

◆ beginLuminosityBlock()

virtual void edm::EDAnalyzer::beginLuminosityBlock ( LuminosityBlock const &  ,
EventSetup const &   
)
inlineprivatevirtual

◆ beginRun()

virtual void edm::EDAnalyzer::beginRun ( Run const &  ,
EventSetup const &   
)
inlineprivatevirtual

◆ callWhenNewProductsRegistered()

void edm::EDAnalyzer::callWhenNewProductsRegistered ( std::function< void(BranchDescription const &)> const &  func)

Definition at line 101 of file EDAnalyzer.cc.

References callWhenNewProductsRegistered_, and EcalMonitorTask_cff::func.

101  {
103  }
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
Definition: EDAnalyzer.h:111

◆ doAccessInputProcessBlock()

void edm::EDAnalyzer::doAccessInputProcessBlock ( ProcessBlockPrincipal const &  ,
ModuleCallingContext const *   
)
inlineprivate

Definition at line 76 of file EDAnalyzer.h.

76 {}

◆ doBeginJob()

void edm::EDAnalyzer::doBeginJob ( )
private

Definition at line 44 of file EDAnalyzer.cc.

References beginJob(), edm::SharedResourcesRegistry::createAcquirer(), edm::SharedResourcesRegistry::instance(), edm::SharedResourcesRegistry::kLegacyModuleResourceName, and resourceAcquirer_.

44  {
45  std::vector<std::string> res = {SharedResourcesRegistry::kLegacyModuleResourceName};
47 
48  this->beginJob();
49  }
virtual void beginJob()
Definition: EDAnalyzer.h:92
SharedResourcesAcquirer resourceAcquirer_
Definition: EDAnalyzer.h:106
Definition: Electron.h:6
static SharedResourcesRegistry * instance()
static const std::string kLegacyModuleResourceName
All legacy modules share this resource.
SharedResourcesAcquirer createAcquirer(std::vector< std::string > const &) const

◆ doBeginLuminosityBlock()

bool edm::EDAnalyzer::doBeginLuminosityBlock ( LumiTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 73 of file EDAnalyzer.cc.

References edm::BeginLuminosityBlock, beginLuminosityBlock(), c, edm::EDConsumerBase::esGetTokenIndices(), info(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

73  {
74  LuminosityBlock lb(info, moduleDescription_, mcc, false);
75  lb.setConsumer(this);
76  ESParentContext parentC(mcc);
77  const EventSetup c{info,
78  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
80  parentC};
81  this->beginLuminosityBlock(lb, c);
82  return true;
83  }
static const TGPicture * info(bool iBackgroundIsBlack)
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
virtual void beginLuminosityBlock(LuminosityBlock const &, EventSetup const &)
Definition: EDAnalyzer.h:96
ModuleDescription moduleDescription_
Definition: EDAnalyzer.h:105

◆ doBeginProcessBlock()

void edm::EDAnalyzer::doBeginProcessBlock ( ProcessBlockPrincipal const &  ,
ModuleCallingContext const *   
)
inlineprivate

Definition at line 75 of file EDAnalyzer.h.

75 {}

◆ doBeginRun()

bool edm::EDAnalyzer::doBeginRun ( RunTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 53 of file EDAnalyzer.cc.

References edm::BeginRun, beginRun(), c, edm::EDConsumerBase::esGetTokenIndices(), info(), moduleDescription_, and alignCSCRings::r.

53  {
54  Run r(info, moduleDescription_, mcc, false);
55  r.setConsumer(this);
56  ESParentContext parentC(mcc);
57  const EventSetup c{
58  info, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun), parentC};
59  this->beginRun(r, c);
60  return true;
61  }
static const TGPicture * info(bool iBackgroundIsBlack)
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
virtual void beginRun(Run const &, EventSetup const &)
Definition: EDAnalyzer.h:94
ModuleDescription moduleDescription_
Definition: EDAnalyzer.h:105

◆ doEndJob()

void edm::EDAnalyzer::doEndJob ( )
private

Definition at line 51 of file EDAnalyzer.cc.

References endJob().

51 { this->endJob(); }
virtual void endJob()
Definition: EDAnalyzer.h:93

◆ doEndLuminosityBlock()

bool edm::EDAnalyzer::doEndLuminosityBlock ( LumiTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 85 of file EDAnalyzer.cc.

References c, edm::EndLuminosityBlock, endLuminosityBlock(), edm::EDConsumerBase::esGetTokenIndices(), info(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

85  {
86  LuminosityBlock lb(info, moduleDescription_, mcc, true);
87  lb.setConsumer(this);
88  ESParentContext parentC(mcc);
89  const EventSetup c{info,
90  static_cast<unsigned int>(Transition::EndLuminosityBlock),
92  parentC};
93  this->endLuminosityBlock(lb, c);
94  return true;
95  }
virtual void endLuminosityBlock(LuminosityBlock const &, EventSetup const &)
Definition: EDAnalyzer.h:97
static const TGPicture * info(bool iBackgroundIsBlack)
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
Definition: EDAnalyzer.h:105

◆ doEndProcessBlock()

void edm::EDAnalyzer::doEndProcessBlock ( ProcessBlockPrincipal const &  ,
ModuleCallingContext const *   
)
inlineprivate

Definition at line 77 of file EDAnalyzer.h.

77 {}

◆ doEndRun()

bool edm::EDAnalyzer::doEndRun ( RunTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 63 of file EDAnalyzer.cc.

References c, edm::EndRun, endRun(), edm::EDConsumerBase::esGetTokenIndices(), info(), moduleDescription_, and alignCSCRings::r.

63  {
64  Run r(info, moduleDescription_, mcc, true);
65  r.setConsumer(this);
66  ESParentContext parentC(mcc);
67  const EventSetup c{
68  info, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun), parentC};
69  this->endRun(r, c);
70  return true;
71  }
static const TGPicture * info(bool iBackgroundIsBlack)
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
Definition: EDAnalyzer.h:105
virtual void endRun(Run const &, EventSetup const &)
Definition: EDAnalyzer.h:95

◆ doEvent()

bool edm::EDAnalyzer::doEvent ( EventTransitionInfo const &  info,
ActivityRegistry act,
ModuleCallingContext const *  mcc 
)
private

Definition at line 32 of file EDAnalyzer.cc.

References analyze(), c, MillePedeFileConverter_cfg::e, edm::EDConsumerBase::esGetTokenIndices(), edm::Event, info(), moduleDescription_, and resourceAcquirer_.

32  {
34  e.setConsumer(this);
35  e.setSharedResourcesAcquirer(&resourceAcquirer_);
36  EventSignalsSentry sentry(act, mcc);
37  ESParentContext parentC(mcc);
38  const EventSetup c{
39  info, static_cast<unsigned int>(Transition::Event), esGetTokenIndices(Transition::Event), parentC};
40  this->analyze(e, c);
41  return true;
42  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void analyze(Event const &, EventSetup const &)=0
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
SharedResourcesAcquirer resourceAcquirer_
Definition: EDAnalyzer.h:106
ModuleDescription moduleDescription_
Definition: EDAnalyzer.h:105

◆ doPreallocate()

void edm::EDAnalyzer::doPreallocate ( PreallocationConfiguration const &  )
inlineprivate

Definition at line 72 of file EDAnalyzer.h.

72 {}

◆ doRegisterThinnedAssociations()

void edm::EDAnalyzer::doRegisterThinnedAssociations ( ProductRegistry const &  ,
ThinnedAssociationsHelper  
)
inlineprivate

Definition at line 85 of file EDAnalyzer.h.

85 {}

◆ doRespondToCloseInputFile()

void edm::EDAnalyzer::doRespondToCloseInputFile ( FileBlock const &  fb)
private

Definition at line 99 of file EDAnalyzer.cc.

References respondToCloseInputFile().

virtual void respondToCloseInputFile(FileBlock const &)
Definition: EDAnalyzer.h:99

◆ doRespondToCloseOutputFile()

void edm::EDAnalyzer::doRespondToCloseOutputFile ( )
inlineprivate

Definition at line 84 of file EDAnalyzer.h.

84 {}

◆ doRespondToOpenInputFile()

void edm::EDAnalyzer::doRespondToOpenInputFile ( FileBlock const &  fb)
private

Definition at line 97 of file EDAnalyzer.cc.

References respondToOpenInputFile().

virtual void respondToOpenInputFile(FileBlock const &)
Definition: EDAnalyzer.h:98

◆ endJob()

virtual void edm::EDAnalyzer::endJob ( void  )
inlineprivatevirtual

Reimplemented in GctErrorAnalyzer, CSCValidation, L1GtAnalyzer, L1GtDataEmulAnalyzer, EgHLTOfflineSummaryClient, FFTJetTreeDump, L1TauRecoTreeProducer, TauJetCorrectorExample, L1RCTLutWriter, l1t::L1TGlobalAnalyzer, L1ExtraTreeProducer, L1GenTreeProducer, PFMETBenchmarkAnalyzer, PFJetBenchmarkAnalyzer, FourVectorHLT, L1TStage2InputPatternWriter, L1MetFilterRecoTreeProducer, L1MenuTreeProducer, edm::AnalyzerWrapper< T >, L1GtPackUnpackAnalyzer, BeamConditionsMonitor, L1GtPatternGenerator, SiStripCommissioningSource, L1ElectronRecoTreeProducer, L1CaloGeometryDump, SiStripAnalyser, L1RecoTreeProducer, CSCTFanalyzer, DTt0DBValidation, L1TUtmTriggerMenuDumper, CentralityTableProducer, DTTrigTest, OMTFPatternMaker, Profiler, PlottingDevice, LumiCalculator, EcalSimpleTBAnalyzer, recoBSVTagInfoValidationAnalyzer, ProfilerAnalyzer, PFTester, TauDQMFileLoader, EcalBarrelMonitorDbModule, DTnoiseDBValidation, L1CaloInputScaleTester, l1t::L1TCaloStage1LutWriter, CSCTFConfigTestAnalyzer, SiStripCommissioningOfflineClient, cms::MinBias, l1t::L1TStage2CaloAnalyzer, L1CaloInputScalesGenerator, GenericBenchmarkAnalyzer, HLTBitAnalyzer, TtSemiLepJetCombMVATrainer, DTTPGParamsWriter, PFTauElecRejectionBenchmarkAnalyzer, RawToText, ESDaqInfoTask, ESDcsInfoTask, TauDQMSimpleFileSaver, ZdcTBAnalyzer, DQMRivetClient, PlaybackRawDataProvider, EcalTBHodoscopeRawInfoDumper, EcalTBTDCRawInfoDumper, L1MuonOverlapParamsDBProducer, ESDataCertificationTask, CSCMap1Read, CaloMCTruthTreeProducer, PFMCTruthTreeProducer, CSCAFEBAnalyzer, and CSCChamberTimeCorrectionsReadTest.

Definition at line 93 of file EDAnalyzer.h.

Referenced by doEndJob().

93 {}

◆ endLuminosityBlock()

virtual void edm::EDAnalyzer::endLuminosityBlock ( LuminosityBlock const &  ,
EventSetup const &   
)
inlineprivatevirtual

◆ endRun()

virtual void edm::EDAnalyzer::endRun ( Run const &  ,
EventSetup const &   
)
inlineprivatevirtual

◆ fillDescriptions()

void edm::EDAnalyzer::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 105 of file EDAnalyzer.cc.

References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.

105  {
107  desc.setUnknown();
108  descriptions.addDefault(desc);
109  }

◆ globalLuminosityBlocksQueue()

SerialTaskQueue* edm::EDAnalyzer::globalLuminosityBlocksQueue ( )
inline

Definition at line 65 of file EDAnalyzer.h.

References luminosityBlockQueue_.

65 { return &luminosityBlockQueue_; }
SerialTaskQueue luminosityBlockQueue_
Definition: EDAnalyzer.h:109

◆ globalRunsQueue()

SerialTaskQueue* edm::EDAnalyzer::globalRunsQueue ( )
inline

Definition at line 64 of file EDAnalyzer.h.

References runQueue_.

64 { return &runQueue_; }
SerialTaskQueue runQueue_
Definition: EDAnalyzer.h:108

◆ hasAccumulator()

bool edm::EDAnalyzer::hasAccumulator ( ) const
inlineprivate

Definition at line 102 of file EDAnalyzer.h.

102 { return false; }

◆ hasAcquire()

bool edm::EDAnalyzer::hasAcquire ( ) const
inlineprivate

Definition at line 101 of file EDAnalyzer.h.

101 { return false; }

◆ moduleDescription()

ModuleDescription const& edm::EDAnalyzer::moduleDescription ( ) const
inline

Definition at line 53 of file EDAnalyzer.h.

References moduleDescription_.

53 { return moduleDescription_; }
ModuleDescription moduleDescription_
Definition: EDAnalyzer.h:105

◆ preActionBeforeRunEventAsync()

void edm::EDAnalyzer::preActionBeforeRunEventAsync ( WaitingTaskHolder  ,
ModuleCallingContext const &  ,
Principal const &   
) const
inlineprivate

Definition at line 70 of file EDAnalyzer.h.

70 {}

◆ prevalidate()

void edm::EDAnalyzer::prevalidate ( ConfigurationDescriptions iConfig)
static

Definition at line 111 of file EDAnalyzer.cc.

References edm::edmodule_mightGet_config().

111 { edmodule_mightGet_config(iConfig); }
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)

◆ registerProductsAndCallbacks()

void edm::EDAnalyzer::registerProductsAndCallbacks ( EDAnalyzer const *  ,
ProductRegistry reg 
)
private

Definition at line 113 of file EDAnalyzer.cc.

References edm::ProductRegistry::callForEachBranch(), and callWhenNewProductsRegistered_.

113  {
115  reg->callForEachBranch(callWhenNewProductsRegistered_);
116 
118  regService->watchProductAdditions(callWhenNewProductsRegistered_);
119  }
120  }
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
Definition: EDAnalyzer.h:111

◆ respondToCloseInputFile()

virtual void edm::EDAnalyzer::respondToCloseInputFile ( FileBlock const &  )
inlineprivatevirtual

Reimplemented in PlaybackRawDataProvider.

Definition at line 99 of file EDAnalyzer.h.

Referenced by doRespondToCloseInputFile().

99 {}

◆ respondToOpenInputFile()

virtual void edm::EDAnalyzer::respondToOpenInputFile ( FileBlock const &  )
inlineprivatevirtual

Definition at line 98 of file EDAnalyzer.h.

Referenced by doRespondToOpenInputFile().

98 {}

◆ setModuleDescription()

void edm::EDAnalyzer::setModuleDescription ( ModuleDescription const &  md)
inlineprivate

Definition at line 104 of file EDAnalyzer.h.

References moduleDescription_.

104 { moduleDescription_ = md; }
ModuleDescription moduleDescription_
Definition: EDAnalyzer.h:105

◆ sharedResourcesAcquirer()

SharedResourcesAcquirer& edm::EDAnalyzer::sharedResourcesAcquirer ( )
inlineprivate

Definition at line 89 of file EDAnalyzer.h.

References resourceAcquirer_.

89 { return resourceAcquirer_; }
SharedResourcesAcquirer resourceAcquirer_
Definition: EDAnalyzer.h:106

◆ wantsGlobalLuminosityBlocks()

static bool edm::EDAnalyzer::wantsGlobalLuminosityBlocks ( )
inlinestatic

Definition at line 58 of file EDAnalyzer.h.

58 { return true; }

◆ wantsGlobalRuns()

static bool edm::EDAnalyzer::wantsGlobalRuns ( )
inlinestatic

Definition at line 57 of file EDAnalyzer.h.

57 { return true; }

◆ wantsInputProcessBlocks()

static bool edm::EDAnalyzer::wantsInputProcessBlocks ( )
inlinestatic

Definition at line 56 of file EDAnalyzer.h.

56 { return false; }

◆ wantsProcessBlocks()

static bool edm::EDAnalyzer::wantsProcessBlocks ( )
inlinestatic

Definition at line 55 of file EDAnalyzer.h.

55 { return false; }

◆ wantsStreamLuminosityBlocks()

static bool edm::EDAnalyzer::wantsStreamLuminosityBlocks ( )
inlinestatic

Definition at line 60 of file EDAnalyzer.h.

60 { return false; };

◆ wantsStreamRuns()

static bool edm::EDAnalyzer::wantsStreamRuns ( )
inlinestatic

Definition at line 59 of file EDAnalyzer.h.

59 { return false; }

◆ workerType()

std::string edm::EDAnalyzer::workerType ( ) const
inline

Definition at line 46 of file EDAnalyzer.h.

46 { return "WorkerT<EDAnalyzer>"; }

Friends And Related Function Documentation

◆ maker::ModuleHolderT

template<typename T >
friend class maker::ModuleHolderT
friend

Definition at line 38 of file EDAnalyzer.h.

◆ WorkerT

template<typename T >
friend class WorkerT
friend

Definition at line 40 of file EDAnalyzer.h.

Member Data Documentation

◆ callWhenNewProductsRegistered_

std::function<void(BranchDescription const&)> edm::EDAnalyzer::callWhenNewProductsRegistered_
private

Definition at line 111 of file EDAnalyzer.h.

Referenced by callWhenNewProductsRegistered(), and registerProductsAndCallbacks().

◆ luminosityBlockQueue_

SerialTaskQueue edm::EDAnalyzer::luminosityBlockQueue_
private

Definition at line 109 of file EDAnalyzer.h.

Referenced by globalLuminosityBlocksQueue().

◆ moduleDescription_

ModuleDescription edm::EDAnalyzer::moduleDescription_
private

◆ resourceAcquirer_

SharedResourcesAcquirer edm::EDAnalyzer::resourceAcquirer_
private

Definition at line 106 of file EDAnalyzer.h.

Referenced by doBeginJob(), doEvent(), and sharedResourcesAcquirer().

◆ runQueue_

SerialTaskQueue edm::EDAnalyzer::runQueue_
private

Definition at line 108 of file EDAnalyzer.h.

Referenced by globalRunsQueue().