CMS 3D CMS Logo

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

#include <EDAnalyzerBase.h>

Inheritance diagram for edm::one::EDAnalyzerBase:
edm::EDConsumerBase edm::one::EDAnalyzer< edm::one::SharedResources > edm::one::EDAnalyzer< edm::one::WatchLuminosityBlocks > edm::one::EDAnalyzer< edm::one::WatchRuns > edm::one::EDAnalyzer< edm::one::WatchRuns, edm::LuminosityBlockCache< hltrigreport::Accumulate > > edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources > edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks > edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzer< one::WatchRuns, one::WatchLuminosityBlocks > edm::one::EDAnalyzer<> edm::one::EDAnalyzer< T >

Public Types

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

Public Member Functions

void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
virtual SerialTaskQueueglobalLuminosityBlocksQueue ()
 
virtual SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
virtual bool wantsGlobalLuminosityBlocks () const =0
 
virtual bool wantsGlobalRuns () const =0
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
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 &descriptions)
 

Private Member Functions

virtual void analyze (Event const &, EventSetup const &)=0
 
virtual void beginJob ()
 
virtual SharedResourcesAcquirer createAcquirer ()
 
void doBeginJob ()
 
void doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doBeginLuminosityBlock_ (LuminosityBlock const &lbp, EventSetup const &c)
 
void doBeginRun (RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doBeginRun_ (Run const &rp, EventSetup const &c)
 
void doEndJob ()
 
void doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doEndLuminosityBlock_ (LuminosityBlock const &lbp, EventSetup const &c)
 
void doEndRun (RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doEndRun_ (Run const &rp, EventSetup const &c)
 
bool doEvent (EventPrincipal const &ep, EventSetupImpl const &c, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
void doRegisterThinnedAssociations (ProductRegistry const &, ThinnedAssociationsHelper &)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
virtual void endJob ()
 
bool hasAccumulator () const
 
bool hasAcquire () const
 
void preActionBeforeRunEventAsync (WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
 
virtual void preallocLumis (unsigned int)
 
void registerProductsAndCallbacks (EDAnalyzerBase const *module, ProductRegistry *reg)
 
void setModuleDescription (ModuleDescription const &md)
 
SharedResourcesAcquirersharedResourcesAcquirer ()
 
std::string workerType () const
 

Private Attributes

std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
 
ModuleDescription moduleDescription_
 
SharedResourcesAcquirer resourcesAcquirer_
 

Friends

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

Additional Inherited Members

- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (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)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 47 of file EDAnalyzerBase.h.

Member Typedef Documentation

◆ ModuleType

Definition at line 54 of file EDAnalyzerBase.h.

Constructor & Destructor Documentation

◆ EDAnalyzerBase()

EDAnalyzerBase::EDAnalyzerBase ( )

Definition at line 43 of file EDAnalyzerBase.cc.

43 : moduleDescription_() {}

◆ ~EDAnalyzerBase()

EDAnalyzerBase::~EDAnalyzerBase ( )
override

Definition at line 45 of file EDAnalyzerBase.cc.

45 {}

Member Function Documentation

◆ analyze()

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

Implemented in DDCMSDetector, DTGeometryTest, edm::PrintEventSetupContent, HcalTestNumberingTester, OutputDDToDDL, OutputMagneticFieldDDToDDL, L1CSCTPEmulatorConfigAnalyzer, PHGCalParametersDBBuilder, PCaloGeometryBuilder, HcalParametersDBBuilder, PGeometricDetBuilder, PGeometricDetExtraBuilder, RPCRecoIdealDBLoader, XMLGeometryBuilder, CSCRecoIdealDBLoader, XMLGeometryReader, DTRecoIdealDBLoader, GeometricTimingDetLoader, GeometricDetLoader, GEMRecoIdealDBLoader, ME0RecoIdealDBLoader, HcalTBParameterTester, PTrackerParametersDBBuilder, DDTestMuonNumbering, timestudy::OneSleepingAnalyzer, HcalDigiAnalyzer, CastorDigiAnalyzer, HcalHitAnalyzer, CastorHitAnalyzer, CSCDigiDump, HcalIsoTrkAnalyzer, StudyCaloResponse, HcalHBHEMuonHighEtaAnalyzer, IsoTrackCalibration, HcalHBHEMuonAnalyzer, RecAnalyzerMinbias, HGCalSimHitStudy, HGCalTBAnalyzer, cms::Analyzer_minbias, StudyTriggerHLT, HGCalTimingAnalyzer, CaloSimHitAnalysis, EcalSimHitStudy, HcalHBHEMuonSimAnalyzer, RecAnalyzerHF, HGCalBHValidation, ElectronStudy, EventIDChecker, CaloSimHitStudy, edm::PrintEventSetupDataRetrieval, HcalPulseContainmentTest, modGains, corrGains, corrResps, scaleGains, CompareDDCompactViews, cond::BTransitionAnalyzer< T, R >, cond::BTransitionAnalyzer< EcalADCToGeVConstant, EcalADCToGeVConstantRcd >, PDFWeightsTest, DTDigiReader, BeamSpotRcdPrinter, SiStripDetVOffPrinter, EcalSRCondTools, GeneralPurposeTrackAnalyzer, PPSPixelDigiAnalyzer, DTT0Calibration, BPHHistoSpecificDecay, CTPPSRPAlignmentInfoAnalyzer, WriteCTPPSPixelAnalysisMask, WriteCTPPSPixelDAQMapping, PrintTotemDAQMapping, HcalTB06Analysis, HOSimHitStudy, SimplePi0DiscAnalyzer, HitParentTest, DQMAnalyzer, GsfElectronMCAnalyzer, GsfElectronDataAnalyzer, GsfElectronFakeAnalyzer, GsfElectronMCFakeAnalyzer, TKStatus, CTPPSPixelDAQMappingAnalyzer, CTPPSPixGainCalibsESAnalyzer, CTPPSRPAlignmentInfoReader, edmtest::AlignPCLThresholdsReader, ElectronIDAnalyzer, DQMFileSaver, TrackingNtuple, L1TConfigDumper, IsolatedTracksNxN, ApeEstimator, PFAnalysis, IsolatedTracksCone, IsolatedGenParticles, IsolatedTracksHcalScale, IsoTrig, OverlapValidation, IsoTrackCalib, HLTrigReport, SplitVertexResolution, CosmicRateAnalyzer, ListGroups, DTCCablingMapProducer, CreateIdealTkAlRecords, PhotonIDSimpleAnalyzer, ZMuMuMassConstraintParameterFinder, PrimaryVertexValidation, ListIds, ApeTreeCreateDefault, TrackerTreeGenerator, MCMisalignmentScaler, CastorDumpConditions, L1TS2PFJetInputPatternWriter, ApeEstimatorSummary, HcalRaddamMuon, MCvsRecoVerticesAnalyzer, SiStripNoisesFromDBMiscalibrator, CSCGeometryValidate, MCVerticesAnalyzer, SiStripChannelGainFromDBMiscalibrator, L1TMicroGMTLUTDumper, EcalTPCondAnalyzer, IsolatedParticlesGeneratedJets, HcalLutAnalyzer, BeamSpotOnlineHLTRcdReader, BeamSpotOnlineLegacyRcdReader, edm::TestMixedSource, BeamSpotRcdReader, GEMGeometryValidate, ME0GeometryValidate, RPCGeometryValidate, __class__< T >, L1GtTrigReport, EcalSimRawData, CaloParticleDebugger, SiStripApvGainRescaler, EGEnergyAnalyzer, BeamSpotOnlineHLTRcdWriter, BeamSpotOnlineLegacyRcdWriter, MuonGeometryDBConverter, PPSGeometryBuilder, CTPPSGeometryInfo, ElectronMVANtuplizer, DTCCablingMapTestReader, SiStripElectronAnalyzer, PhotonMVANtuplizer, edm::SecSourceAnalyzer, AlignmentProducerAsAnalyzer, AlignPCLThresholdsWriter, DD4hep_ListGroups, WriteL1TriggerObjectsTxt, DTCCablingMapTestProducer, edm::TestMix, CTPPSProtonReconstructionEfficiencyEstimatorData, DTGeometryValidate, Mixing2DB, CTPPSProtonReconstructionEfficiencyEstimatorMC, HFPMTHitAnalyzer, CTPPSTrackDistributionPlotter, QualityCutsAnalyzer, TrackHistoryAnalyzer, WriteCTPPSBeamParameters, SimplePhotonAnalyzer, EcalTrigPrimAnalyzer, SVTagInfoValidationAnalyzer, CTPPSAlignmentInfo, PatPhotonSimpleAnalyzer, VertexHistoryAnalyzer, CTPPSDirectProtonSimulationValidator, CTPPSProtonReconstructionSimulationValidator, MillePedeFileExtractor, RetrieveCTPPSBeamParameters, edm::InputAnalyzer, CTPPSProtonReconstructionDiffPlotter, HcalForwardLibWriter, CTPPSProtonReconstructionPlotter, OnlineBeamSpotFromDB, CTPPSProtonReconstructionValidator, PPSTimingCalibrationAnalyzer, ElectronSeedAnalyzer, PPSTimingCalibrationWriter, RivetAnalyzer, WriteCTPPSPixGainCalibrations, L1TGlobalSummary, CTPPSAcceptancePlotter, CTPPSHepMCDistributionPlotter, CTPPSOpticsPlotter, TrackCategoriesAnalyzer, TrackingParticleCategoriesAnalyzer, EcalEBTrigPrimAnalyzer, CTPPSBeamSmearingValidator, CTPPSLHCInfoPlotter, MCElectronAnalyzer, MCPhotonAnalyzer, MCPizeroAnalyzer, PhotonsWithConversionsAnalyzer, SimpleConvertedPhotonAnalyzer, DD4hep_TrackingMaterialAnalyser, TrackingMaterialAnalyser, GBRForestGetterFromDB, RHStopDump, and SiStripApvSimulationParametersBuilder.

Referenced by doEvent().

◆ baseType()

const std::string & EDAnalyzerBase::baseType ( )
static

Definition at line 152 of file EDAnalyzerBase.cc.

152 { return kBaseType; }

References edm::one::kBaseType().

◆ beginJob()

virtual void edm::one::EDAnalyzerBase::beginJob ( void  )
inlineprivatevirtual

Reimplemented in GeneralPurposeTrackAnalyzer, L1TConfigDumper, IsolatedTracksNxN, ApeEstimator, PFAnalysis, IsolatedTracksCone, IsolatedGenParticles, IsolatedTracksHcalScale, IsoTrig, HcalIsoTrkAnalyzer, StudyCaloResponse, IsoTrackCalib, CosmicRateAnalyzer, ListGroups, HcalHBHEMuonHighEtaAnalyzer, IsoTrackCalibration, SplitVertexResolution, DTCCablingMapProducer, HcalHBHEMuonAnalyzer, PhotonIDSimpleAnalyzer, RecAnalyzerMinbias, HLTrigReport, ListIds, PrimaryVertexValidation, ApeTreeCreateDefault, TrackerTreeGenerator, L1TS2PFJetInputPatternWriter, ApeEstimatorSummary, HGCalSimHitStudy, cms::Analyzer_minbias, StudyTriggerHLT, HGCalTBAnalyzer, HcalRaddamMuon, HcalTB06Analysis, EcalTPCondAnalyzer, SiStripNoisesFromDBMiscalibrator, CSCGeometryValidate, SiStripChannelGainFromDBMiscalibrator, IsolatedParticlesGeneratedJets, BeamSpotOnlineHLTRcdReader, BeamSpotOnlineLegacyRcdReader, edm::TestMixedSource, BeamSpotRcdReader, GEMGeometryValidate, ME0GeometryValidate, RPCGeometryValidate, __class__< T >, ElectronMVANtuplizer, CaloParticleDebugger, PPSPixelDigiAnalyzer, SiStripApvGainRescaler, EGEnergyAnalyzer, BeamSpotOnlineHLTRcdWriter, BeamSpotOnlineLegacyRcdWriter, L1GtTrigReport, HGCalTimingAnalyzer, SiStripElectronAnalyzer, CaloSimHitAnalysis, EcalSimHitStudy, HcalHBHEMuonSimAnalyzer, RecAnalyzerHF, DTCCablingMapTestReader, edm::PrintEventSetupContent, HcalTestNumberingTester, edm::SecSourceAnalyzer, DD4hep_ListGroups, MuonGeometryDBConverter, ElectronStudy, AlignPCLThresholdsWriter, HOSimHitStudy, SimplePi0DiscAnalyzer, DTCCablingMapTestProducer, HGCalBHValidation, DTGeometryValidate, EventIDChecker, CaloSimHitStudy, Mixing2DB, SimplePhotonAnalyzer, HitParentTest, DQMAnalyzer, GsfElectronMCAnalyzer, PatPhotonSimpleAnalyzer, HFPMTHitAnalyzer, QualityCutsAnalyzer, TrackHistoryAnalyzer, OutputDDToDDL, GsfElectronDataAnalyzer, GsfElectronFakeAnalyzer, GsfElectronMCFakeAnalyzer, AlignmentProducerAsAnalyzer, VertexHistoryAnalyzer, CTPPSDirectProtonSimulationValidator, OutputMagneticFieldDDToDDL, edm::InputAnalyzer, ElectronSeedAnalyzer, HcalForwardLibWriter, PPSTimingCalibrationAnalyzer, PPSTimingCalibrationWriter, BPHHistoSpecificDecay, WriteCTPPSPixGainCalibrations, CTPPSAcceptancePlotter, RivetAnalyzer, HcalPulseContainmentTest, MCElectronAnalyzer, MCPhotonAnalyzer, MCPizeroAnalyzer, PhotonsWithConversionsAnalyzer, SimpleConvertedPhotonAnalyzer, DDCMSDetector, L1CSCTPEmulatorConfigAnalyzer, DD4hep_TrackingMaterialAnalyser, TrackingMaterialAnalyser, DTGeometryTest, XMLGeometryBuilder, XMLGeometryReader, GeometricTimingDetLoader, GeometricDetLoader, CompareDDCompactViews, HcalTBParameterTester, DDTestMuonNumbering, cond::BTransitionAnalyzer< T, R >, and cond::BTransitionAnalyzer< EcalADCToGeVConstant, EcalADCToGeVConstantRcd >.

Definition at line 107 of file EDAnalyzerBase.h.

107 {}

Referenced by doBeginJob().

◆ callWhenNewProductsRegistered()

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

◆ createAcquirer()

SharedResourcesAcquirer EDAnalyzerBase::createAcquirer ( )
privatevirtual

Definition at line 64 of file EDAnalyzerBase.cc.

64  {
66  std::vector<std::shared_ptr<SerialTaskQueue>>(1, std::make_shared<SerialTaskQueue>())};
67  }

Referenced by doBeginJob().

◆ doBeginJob()

void EDAnalyzerBase::doBeginJob ( )
private

Definition at line 72 of file EDAnalyzerBase.cc.

72  {
74 
75  this->beginJob();
76  }

References beginJob(), createAcquirer(), and resourcesAcquirer_.

◆ doBeginLuminosityBlock()

void EDAnalyzerBase::doBeginLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 103 of file EDAnalyzerBase.cc.

105  {
106  LuminosityBlock lb(lbp, moduleDescription_, mcc, false);
107  lb.setConsumer(this);
108  LuminosityBlock const& cnstLb = lb;
109  const EventSetup c{ci,
110  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
112  false};
113  this->doBeginLuminosityBlock_(cnstLb, c);
114  }

References edm::BeginLuminosityBlock, HltBtagPostValidation_cff::c, doBeginLuminosityBlock_(), edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

◆ doBeginLuminosityBlock_()

void EDAnalyzerBase::doBeginLuminosityBlock_ ( LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 139 of file EDAnalyzerBase.cc.

139 {}

Referenced by doBeginLuminosityBlock().

◆ doBeginRun()

void EDAnalyzerBase::doBeginRun ( RunPrincipal const &  rp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 85 of file EDAnalyzerBase.cc.

85  {
86  Run r(rp, moduleDescription_, mcc, false);
87  r.setConsumer(this);
88  Run const& cnstR = r;
89  const EventSetup c{
90  ci, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun), false};
91  this->doBeginRun_(cnstR, c);
92  }

References edm::BeginRun, HltBtagPostValidation_cff::c, doBeginRun_(), edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, and alignCSCRings::r.

◆ doBeginRun_()

void EDAnalyzerBase::doBeginRun_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 137 of file EDAnalyzerBase.cc.

137 {}

Referenced by doBeginRun().

◆ doEndJob()

void EDAnalyzerBase::doEndJob ( )
private

Definition at line 78 of file EDAnalyzerBase.cc.

78 { this->endJob(); }

References endJob().

◆ doEndLuminosityBlock()

void EDAnalyzerBase::doEndLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 116 of file EDAnalyzerBase.cc.

118  {
119  LuminosityBlock lb(lbp, moduleDescription_, mcc, true);
120  lb.setConsumer(this);
121  LuminosityBlock const& cnstLb = lb;
122  const EventSetup c{ci,
123  static_cast<unsigned int>(Transition::EndLuminosityBlock),
125  false};
126  this->doEndLuminosityBlock_(cnstLb, c);
127  }

References HltBtagPostValidation_cff::c, doEndLuminosityBlock_(), edm::EndLuminosityBlock, edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

◆ doEndLuminosityBlock_()

void EDAnalyzerBase::doEndLuminosityBlock_ ( LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 140 of file EDAnalyzerBase.cc.

140 {}

Referenced by doEndLuminosityBlock().

◆ doEndRun()

void EDAnalyzerBase::doEndRun ( RunPrincipal const &  rp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 94 of file EDAnalyzerBase.cc.

94  {
95  Run r(rp, moduleDescription_, mcc, true);
96  r.setConsumer(this);
97  Run const& cnstR = r;
98  const EventSetup c{
99  ci, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun), false};
100  this->doEndRun_(cnstR, c);
101  }

References HltBtagPostValidation_cff::c, doEndRun_(), edm::EndRun, edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, and alignCSCRings::r.

◆ doEndRun_()

void EDAnalyzerBase::doEndRun_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 138 of file EDAnalyzerBase.cc.

138 {}

Referenced by doEndRun().

◆ doEvent()

bool EDAnalyzerBase::doEvent ( EventPrincipal const &  ep,
EventSetupImpl const &  c,
ActivityRegistry act,
ModuleCallingContext const *  mcc 
)
private

Definition at line 51 of file EDAnalyzerBase.cc.

54  {
56  e.setConsumer(this);
57  e.setSharedResourcesAcquirer(&resourcesAcquirer_);
58  EventSignalsSentry sentry(act, mcc);
59  const EventSetup c{ci, static_cast<unsigned int>(Transition::Event), esGetTokenIndices(Transition::Event), false};
60  this->analyze(e, c);
61  return true;
62  }

References analyze(), HltBtagPostValidation_cff::c, MillePedeFileConverter_cfg::e, SiStripBadComponentsDQMServiceTemplate_cfg::ep, edm::EDConsumerBase::esGetTokenIndices(), edm::Event, moduleDescription_, and resourcesAcquirer_.

◆ doPreallocate()

void EDAnalyzerBase::doPreallocate ( PreallocationConfiguration const &  iPrealloc)
private

Definition at line 80 of file EDAnalyzerBase.cc.

80  {
81  preallocLumis(iPrealloc.numberOfLuminosityBlocks());
82  }

References edm::PreallocationConfiguration::numberOfLuminosityBlocks(), and preallocLumis().

◆ doRegisterThinnedAssociations()

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

Definition at line 99 of file EDAnalyzerBase.h.

99 {}

◆ doRespondToCloseInputFile()

void EDAnalyzerBase::doRespondToCloseInputFile ( FileBlock const &  fb)
private

Definition at line 133 of file EDAnalyzerBase.cc.

133  {
134  //respondToCloseInputFile(fb);
135  }

◆ doRespondToOpenInputFile()

void EDAnalyzerBase::doRespondToOpenInputFile ( FileBlock const &  fb)
private

Definition at line 129 of file EDAnalyzerBase.cc.

129  {
130  //respondToOpenInputFile(fb);
131  }

◆ endJob()

virtual void edm::one::EDAnalyzerBase::endJob ( void  )
inlineprivatevirtual

Reimplemented in SiStripElectronAnalyzer, GeneralPurposeTrackAnalyzer, L1TConfigDumper, IsolatedTracksNxN, ApeEstimator, PFAnalysis, IsolatedTracksCone, IsolatedGenParticles, IsolatedTracksHcalScale, IsoTrig, OverlapValidation, IsoTrackCalib, SplitVertexResolution, CosmicRateAnalyzer, ListGroups, DTCCablingMapProducer, PhotonIDSimpleAnalyzer, RecAnalyzerMinbias, HLTrigReport, ListIds, PrimaryVertexValidation, ApeTreeCreateDefault, TrackerTreeGenerator, cms::Analyzer_minbias, L1TS2PFJetInputPatternWriter, ApeEstimatorSummary, HcalRaddamMuon, SiStripNoisesFromDBMiscalibrator, EcalTPCondAnalyzer, HcalTB06Analysis, SiStripChannelGainFromDBMiscalibrator, CSCGeometryValidate, IsolatedParticlesGeneratedJets, BeamSpotOnlineHLTRcdReader, BeamSpotOnlineLegacyRcdReader, L1GtTrigReport, edm::TestMixedSource, BeamSpotRcdReader, GEMGeometryValidate, ME0GeometryValidate, RPCGeometryValidate, SiStripApvGainRescaler, __class__< T >, ElectronMVANtuplizer, CaloParticleDebugger, EGEnergyAnalyzer, BeamSpotOnlineHLTRcdWriter, BeamSpotOnlineLegacyRcdWriter, PPSPixelDigiAnalyzer, edm::PrintEventSetupContent, DTCCablingMapTestReader, HcalTestNumberingTester, RecAnalyzerHF, edm::SecSourceAnalyzer, DTT0Calibration, AlignPCLThresholdsWriter, EventIDChecker, HOSimHitStudy, DD4hep_ListGroups, MuonGeometryDBConverter, DTCCablingMapTestProducer, SimplePi0DiscAnalyzer, CTPPSProtonReconstructionEfficiencyEstimatorData, DTGeometryValidate, HitParentTest, Mixing2DB, CTPPSProtonReconstructionEfficiencyEstimatorMC, OutputDDToDDL, HFPMTHitAnalyzer, CTPPSTrackDistributionPlotter, SimplePhotonAnalyzer, QualityCutsAnalyzer, OutputMagneticFieldDDToDDL, DQMAnalyzer, GsfElectronMCAnalyzer, PatPhotonSimpleAnalyzer, EcalTrigPrimAnalyzer, SVTagInfoValidationAnalyzer, GsfElectronDataAnalyzer, GsfElectronFakeAnalyzer, GsfElectronMCFakeAnalyzer, CTPPSDirectProtonSimulationValidator, CTPPSProtonReconstructionDiffPlotter, CTPPSProtonReconstructionSimulationValidator, AlignmentProducerAsAnalyzer, edm::InputAnalyzer, CTPPSProtonReconstructionPlotter, HcalForwardLibWriter, BeamSpotRcdPrinter, ElectronSeedAnalyzer, CTPPSProtonReconstructionValidator, PPSTimingCalibrationAnalyzer, DQMFileSaver, PPSTimingCalibrationWriter, BPHHistoSpecificDecay, WriteCTPPSPixGainCalibrations, CTPPSAcceptancePlotter, CTPPSHepMCDistributionPlotter, RivetAnalyzer, CTPPSOpticsPlotter, SiStripDetVOffPrinter, CTPPSBeamSmearingValidator, EcalEBTrigPrimAnalyzer, CTPPSLHCInfoPlotter, DDCMSDetector, L1CSCTPEmulatorConfigAnalyzer, MCElectronAnalyzer, MCPhotonAnalyzer, MCPizeroAnalyzer, PhotonsWithConversionsAnalyzer, SimpleConvertedPhotonAnalyzer, DD4hep_TrackingMaterialAnalyser, TrackingMaterialAnalyser, DTGeometryTest, GeometricTimingDetLoader, GeometricDetLoader, CompareDDCompactViews, HcalTBParameterTester, DDTestMuonNumbering, cond::BTransitionAnalyzer< T, R >, and cond::BTransitionAnalyzer< EcalADCToGeVConstant, EcalADCToGeVConstantRcd >.

Definition at line 108 of file EDAnalyzerBase.h.

108 {}

Referenced by doEndJob().

◆ fillDescriptions()

void EDAnalyzerBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 142 of file EDAnalyzerBase.cc.

142  {
144  desc.setUnknown();
145  descriptions.addDefault(desc);
146  }

References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().

◆ globalLuminosityBlocksQueue()

SerialTaskQueue * EDAnalyzerBase::globalLuminosityBlocksQueue ( )
virtual

◆ globalRunsQueue()

SerialTaskQueue * EDAnalyzerBase::globalRunsQueue ( )
virtual

◆ hasAccumulator()

bool edm::one::EDAnalyzerBase::hasAccumulator ( ) const
inlineprivate

Definition at line 116 of file EDAnalyzerBase.h.

116 { return false; }

◆ hasAcquire()

bool edm::one::EDAnalyzerBase::hasAcquire ( ) const
inlineprivate

Definition at line 115 of file EDAnalyzerBase.h.

115 { return false; }

◆ moduleDescription()

ModuleDescription const& edm::one::EDAnalyzerBase::moduleDescription ( ) const
inline

Definition at line 64 of file EDAnalyzerBase.h.

64 { return moduleDescription_; }

References moduleDescription_.

Referenced by edm::SecSourceAnalyzer::getBranches().

◆ preActionBeforeRunEventAsync()

void edm::one::EDAnalyzerBase::preActionBeforeRunEventAsync ( WaitingTask iTask,
ModuleCallingContext const &  iModuleCallingContext,
Principal const &  iPrincipal 
) const
inlineprivate

Definition at line 78 of file EDAnalyzerBase.h.

80  {}

◆ preallocLumis()

void EDAnalyzerBase::preallocLumis ( unsigned int  )
privatevirtual

Definition at line 83 of file EDAnalyzerBase.cc.

83 {};

Referenced by doPreallocate().

◆ prevalidate()

void EDAnalyzerBase::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 148 of file EDAnalyzerBase.cc.

148 { edmodule_mightGet_config(iConfig); }

References edm::edmodule_mightGet_config().

◆ registerProductsAndCallbacks()

void EDAnalyzerBase::registerProductsAndCallbacks ( EDAnalyzerBase const *  module,
ProductRegistry reg 
)
private

Definition at line 154 of file EDAnalyzerBase.cc.

154  {
156  reg->callForEachBranch(callWhenNewProductsRegistered_);
157 
159  regService->watchProductAdditions(callWhenNewProductsRegistered_);
160  }
161  }

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

◆ setModuleDescription()

void edm::one::EDAnalyzerBase::setModuleDescription ( ModuleDescription const &  md)
inlineprivate

Definition at line 120 of file EDAnalyzerBase.h.

120 { moduleDescription_ = md; }

References moduleDescription_.

◆ sharedResourcesAcquirer()

SharedResourcesAcquirer& edm::one::EDAnalyzerBase::sharedResourcesAcquirer ( )
inlineprivate

Definition at line 104 of file EDAnalyzerBase.h.

104 { return resourcesAcquirer_; }

References resourcesAcquirer_.

◆ wantsGlobalLuminosityBlocks()

virtual bool edm::one::EDAnalyzerBase::wantsGlobalLuminosityBlocks ( ) const
pure virtual

◆ wantsGlobalRuns()

virtual bool edm::one::EDAnalyzerBase::wantsGlobalRuns ( ) const
pure virtual

◆ wantsStreamLuminosityBlocks()

bool edm::one::EDAnalyzerBase::wantsStreamLuminosityBlocks ( ) const
inline

Definition at line 69 of file EDAnalyzerBase.h.

69 { return false; };

◆ wantsStreamRuns()

bool edm::one::EDAnalyzerBase::wantsStreamRuns ( ) const
inline

Definition at line 68 of file EDAnalyzerBase.h.

68 { return false; }

◆ workerType()

std::string edm::one::EDAnalyzerBase::workerType ( ) const
inlineprivate

Definition at line 102 of file EDAnalyzerBase.h.

102 { return "WorkerT<EDAnalyzer>"; }

Friends And Related Function Documentation

◆ edm::maker::ModuleHolderT

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

Definition at line 52 of file EDAnalyzerBase.h.

◆ edm::WorkerT

template<typename T >
friend class edm::WorkerT
friend

Definition at line 50 of file EDAnalyzerBase.h.

Member Data Documentation

◆ callWhenNewProductsRegistered_

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

◆ moduleDescription_

ModuleDescription edm::one::EDAnalyzerBase::moduleDescription_
private

◆ resourcesAcquirer_

SharedResourcesAcquirer edm::one::EDAnalyzerBase::resourcesAcquirer_
private

Definition at line 124 of file EDAnalyzerBase.h.

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

edm::Transition::Event
edm::one::EDAnalyzerBase::callWhenNewProductsRegistered_
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
Definition: EDAnalyzerBase.h:122
edm::one::EDAnalyzerBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: EDAnalyzerBase.h:121
edm::one::EDAnalyzerBase::resourcesAcquirer_
SharedResourcesAcquirer resourcesAcquirer_
Definition: EDAnalyzerBase.h:124
edm::one::EDAnalyzerBase::doBeginRun_
virtual void doBeginRun_(Run const &rp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:137
edm::one::EDAnalyzerBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlock const &lbp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:139
edm::one::EDAnalyzerBase::beginJob
virtual void beginJob()
Definition: EDAnalyzerBase.h:107
Service
LuminosityBlock
Event
edm::Transition::BeginLuminosityBlock
SharedResourcesAcquirer
edm::one::EDAnalyzerBase::doEndRun_
virtual void doEndRun_(Run const &rp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:138
edm::one::EDAnalyzerBase::endJob
virtual void endJob()
Definition: EDAnalyzerBase.h:108
edm::one::EDAnalyzerBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlock const &lbp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:140
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
TrackCollections2monitor_cff.func
func
Definition: TrackCollections2monitor_cff.py:359
edm::one::EDAnalyzerBase::createAcquirer
virtual SharedResourcesAcquirer createAcquirer()
Definition: EDAnalyzerBase.cc:64
alignCSCRings.r
r
Definition: alignCSCRings.py:93
edm::one::EDAnalyzerBase::analyze
virtual void analyze(Event const &, EventSetup const &)=0
edm::Transition::EndLuminosityBlock
edm::one::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::EDConsumerBase::esGetTokenIndices
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
Definition: EDConsumerBase.h:110
edm::Transition::BeginRun
ParameterSetDescription
edm::one::EDAnalyzerBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: EDAnalyzerBase.cc:83
edm::edmodule_mightGet_config
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
Definition: edmodule_mightGet_config.cc:36
EventSetup
edm::Transition::EndRun
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
Run