CMS 3D CMS Logo

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

#include <EDAnalyzerBase.h>

Inheritance diagram for edm::global::EDAnalyzerBase:
edm::EDConsumerBase edm::global::EDAnalyzer< edm::LuminosityBlockCache< gfea::Empty > > edm::global::EDAnalyzer< edm::RunCache< cgra::DummyCache >, edm::LuminosityBlockCache< cgra::DummyCache > > edm::global::EDAnalyzer< edm::RunCache< Empty >, edm::LuminosityBlockCache< Empty > > edm::global::EDAnalyzer< edm::RunCache< gxsec::RunCache >, edm::LuminosityBlockCache< gxsec::LumiCache > > edm::global::EDAnalyzer< edm::RunCache< NoCache >, edm::LuminosityBlockCache< NoCache > > edm::global::EDAnalyzer< edm::RunCache< rlec::Cache >, edm::LuminosityBlockCache< rlec::Cache > > edm::global::EDAnalyzer< edm::RunCache< std::nullptr_t >, edm::LuminosityBlockCache< std::nullptr_t > > edm::global::EDAnalyzer< edm::StreamCache< HLTriggerJSONMonitoringData::stream >, edm::RunCache< HLTriggerJSONMonitoringData::run >, edm::LuminosityBlockSummaryCache< HLTriggerJSONMonitoringData::lumisection > > edm::global::EDAnalyzer< edm::StreamCache< L1TriggerJSONMonitoringData::stream >, edm::RunCache< L1TriggerJSONMonitoringData::run >, edm::LuminosityBlockSummaryCache< L1TriggerJSONMonitoringData::lumisection > > edm::global::EDAnalyzer< edm::StreamCache< UnsafeCache >, edm::RunCache< Cache >, edm::LuminosityBlockCache< Cache > > edm::global::EDAnalyzer<> edm::global::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 ()
 
ModuleDescription const & moduleDescription () const
 
virtual bool wantsGlobalLuminosityBlocks () const =0
 
virtual bool wantsGlobalRuns () const =0
 
virtual bool wantsInputProcessBlocks () const =0
 
virtual bool wantsProcessBlocks () const =0
 
virtual bool wantsStreamLuminosityBlocks () const =0
 
virtual bool wantsStreamRuns () const =0
 
 ~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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices 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 (StreamID, Event const &, EventSetup const &) const =0
 
virtual void beginJob ()
 
virtual void clearInputProcessBlockCaches ()
 
void doAccessInputProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
virtual void doAccessInputProcessBlock_ (ProcessBlock const &)
 
void doBeginJob ()
 
void doBeginLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
virtual void doBeginLuminosityBlock_ (LuminosityBlock const &lbp, EventSetup const &c)
 
virtual void doBeginLuminosityBlockSummary_ (LuminosityBlock const &rp, EventSetup const &c)
 
void doBeginProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
virtual void doBeginProcessBlock_ (ProcessBlock const &)
 
void doBeginRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
virtual void doBeginRun_ (Run const &rp, EventSetup const &c)
 
virtual void doBeginRunSummary_ (Run const &rp, EventSetup const &c)
 
void doBeginStream (StreamID id)
 
virtual void doBeginStream_ (StreamID id)
 
void doEndJob ()
 
void doEndLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
virtual void doEndLuminosityBlock_ (LuminosityBlock const &lb, EventSetup const &c)
 
virtual void doEndLuminosityBlockSummary_ (LuminosityBlock const &lb, EventSetup const &c)
 
void doEndProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
virtual void doEndProcessBlock_ (ProcessBlock const &)
 
void doEndRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
virtual void doEndRun_ (Run const &rp, EventSetup const &c)
 
virtual void doEndRunSummary_ (Run const &rp, EventSetup const &c)
 
void doEndStream (StreamID id)
 
virtual void doEndStream_ (StreamID id)
 
bool doEvent (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
void doRegisterThinnedAssociations (ProductRegistry const &, ThinnedAssociationsHelper &)
 
void doRespondToCloseInputFile (FileBlock const &)
 
void doRespondToCloseOutputFile ()
 
void doRespondToOpenInputFile (FileBlock const &)
 
void doStreamBeginLuminosityBlock (StreamID, LumiTransitionInfo const &, ModuleCallingContext const *)
 
virtual void doStreamBeginLuminosityBlock_ (StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
 
void doStreamBeginRun (StreamID, RunTransitionInfo const &, ModuleCallingContext const *)
 
virtual void doStreamBeginRun_ (StreamID id, Run const &rp, EventSetup const &c)
 
void doStreamEndLuminosityBlock (StreamID, LumiTransitionInfo const &, ModuleCallingContext const *)
 
virtual void doStreamEndLuminosityBlock_ (StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
 
virtual void doStreamEndLuminosityBlockSummary_ (StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
 
void doStreamEndRun (StreamID, RunTransitionInfo const &, ModuleCallingContext const *)
 
virtual void doStreamEndRun_ (StreamID id, Run const &rp, EventSetup const &c)
 
virtual void doStreamEndRunSummary_ (StreamID id, Run const &rp, EventSetup const &c)
 
virtual void endJob ()
 
bool hasAccumulator () const
 
bool hasAcquire () const
 
void preActionBeforeRunEventAsync (WaitingTaskHolder, ModuleCallingContext const &, Principal const &) const
 
virtual void preallocate (PreallocationConfiguration const &)
 
virtual void preallocLumis (unsigned int)
 
virtual void preallocLumisSummary (unsigned int)
 
virtual void preallocRuns (unsigned int)
 
virtual void preallocRunsSummary (unsigned int)
 
virtual void preallocStreams (unsigned int)
 
void registerProductsAndCallbacks (EDAnalyzerBase *module, ProductRegistry *reg)
 
void setModuleDescription (ModuleDescription const &md)
 
std::string workerType () const
 

Private Attributes

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

Friends

template<typename T >
class edm::maker::ModuleHolderT
 
template<typename T >
class edm::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 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

Definition at line 46 of file EDAnalyzerBase.h.

Member Typedef Documentation

◆ ModuleType

Definition at line 52 of file EDAnalyzerBase.h.

Constructor & Destructor Documentation

◆ EDAnalyzerBase()

EDAnalyzerBase::EDAnalyzerBase ( )

Definition at line 48 of file EDAnalyzerBase.cc.

48 : moduleDescription_() {}
ModuleDescription moduleDescription_

◆ ~EDAnalyzerBase()

EDAnalyzerBase::~EDAnalyzerBase ( )
override

Definition at line 50 of file EDAnalyzerBase.cc.

50 {}

Member Function Documentation

◆ analyze()

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

Implemented in TestAlpakaAnalyzer, edmtest::ESTestAnalyzerAZ, edm::GenericConsumer, edmtest::ESTestAnalyzerK, HLTriggerJSONMonitoring, L1TriggerJSONMonitoring, GenXSecAnalyzer, edmtest::ExistingDictionaryTestAnalyzer, HLTGetDigi, edmtest::RunLumiESAnalyzer, edmtest::TestParentage, edmtest::TableTestAnalyzer, PixelClusterShapeExtractor, dqm::DQMFileSaverBase, RunLumiEventChecker, edmtest::ManyProductAnalyzer, edm::EventSetupRecordDataGetter, L1CaloGeometryDump, BeamProfile2DBWriter, AbortOnEventIDAnalyzer, edmtest::ThinnedRefFromTestAnalyzer, PixelTrackDumpCUDAT< TrackerTraits >, GenFilterEfficiencyAnalyzer, L1GtParametersTester, L1GtStableParametersTester, UseValueExampleAnalyzer, TestAlpakaHostDeviceCompare, edmtest::ConcurrentIOVAnalyzer, L1GtBoardMapsTester, L1GtPsbSetupTester, CompareGeneratorResultsAnalyzer, edmtest::AssociationMapAnalyzer, HLTGetRaw, edmtest::ViewAnalyzer, TestPSetAnalyzer, edmtest::ThingAnalyzer, edmtest::TestGetByLabelAnalyzerT< T >, L1TBasicDemo, edmtest::ThinningDSVTestAnalyzer, CUDATestDeviceAdditionModule, CUDATestKernelAdditionModule, ROCmTestDeviceAdditionModule, ROCmTestKernelAdditionModule, PixelTrackDumpAlpakaT< TrackerTraits >, edmtest::ThinningTestAnalyzer, CUDATestWrapperAdditionModule, ROCmTestWrapperAdditionModule, TriggerSummaryAnalyzerRAW, TriggerSummaryAnalyzerAOD, TestAlpakaObjectAnalyzer, TestCUDAAnalyzerGPU, CUDATestOpaqueAdditionModule, ROCmTestOpaqueAdditionModule, SiPhase2BadStripChannelReader, SiPhase2OuterTrackerLorentzAngleReader, edmtest::SwitchProducerProvenanceAnalyzer, edmtest::PathAnalyzer, PhysicsPerformanceDBWriterFromFile_WPandPayload, PhysicsPerformanceDBWriterFromFile_WPandPayload_IOV, edmtest::TestDescriptionComments, PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL, and edmtest::ProdigalAnalyzer.

Referenced by doEvent().

◆ baseType()

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

Definition at line 242 of file EDAnalyzerBase.cc.

References edm::global::kBaseType().

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

◆ beginJob()

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

◆ callWhenNewProductsRegistered()

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

◆ clearInputProcessBlockCaches()

void EDAnalyzerBase::clearInputProcessBlockCaches ( )
privatevirtual

Definition at line 222 of file EDAnalyzerBase.cc.

Referenced by doRespondToCloseOutputFile().

222 {}

◆ doAccessInputProcessBlock()

void EDAnalyzerBase::doAccessInputProcessBlock ( ProcessBlockPrincipal const &  pbp,
ModuleCallingContext const *  mcc 
)
private

Definition at line 85 of file EDAnalyzerBase.cc.

References doAccessInputProcessBlock_(), moduleDescription_, and edm::ProcessBlock::setConsumer().

85  {
86  ProcessBlock processBlock(pbp, moduleDescription_, mcc, false);
87  processBlock.setConsumer(this);
88  ProcessBlock const& constProcessBlock = processBlock;
89  this->doAccessInputProcessBlock_(constProcessBlock);
90  }
virtual void doAccessInputProcessBlock_(ProcessBlock const &)
ModuleDescription moduleDescription_

◆ doAccessInputProcessBlock_()

void EDAnalyzerBase::doAccessInputProcessBlock_ ( ProcessBlock const &  )
privatevirtual

Definition at line 210 of file EDAnalyzerBase.cc.

Referenced by doAccessInputProcessBlock().

210 {}

◆ doBeginJob()

void EDAnalyzerBase::doBeginJob ( )
private

Definition at line 74 of file EDAnalyzerBase.cc.

References beginJob().

74 { this->beginJob(); }

◆ doBeginLuminosityBlock()

void EDAnalyzerBase::doBeginLuminosityBlock ( LumiTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 121 of file EDAnalyzerBase.cc.

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

121  {
122  LuminosityBlock lb(info, moduleDescription_, mcc, false);
123  lb.setConsumer(this);
124  LuminosityBlock const& cnstLb = lb;
125  ESParentContext parentC(mcc);
126  const EventSetup c{info,
127  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
129  parentC};
130  this->doBeginLuminosityBlock_(cnstLb, c);
131  this->doBeginLuminosityBlockSummary_(cnstLb, c);
132  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doBeginLuminosityBlockSummary_(LuminosityBlock const &rp, EventSetup const &c)
virtual void doBeginLuminosityBlock_(LuminosityBlock const &lbp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_

◆ doBeginLuminosityBlock_()

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

Definition at line 217 of file EDAnalyzerBase.cc.

Referenced by doBeginLuminosityBlock().

217 {}

◆ doBeginLuminosityBlockSummary_()

void EDAnalyzerBase::doBeginLuminosityBlockSummary_ ( LuminosityBlock const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 219 of file EDAnalyzerBase.cc.

Referenced by doBeginLuminosityBlock().

219 {}

◆ doBeginProcessBlock()

void EDAnalyzerBase::doBeginProcessBlock ( ProcessBlockPrincipal const &  pbp,
ModuleCallingContext const *  mcc 
)
private

Definition at line 78 of file EDAnalyzerBase.cc.

References doBeginProcessBlock_(), moduleDescription_, and edm::ProcessBlock::setConsumer().

78  {
79  ProcessBlock processBlock(pbp, moduleDescription_, mcc, false);
80  processBlock.setConsumer(this);
81  ProcessBlock const& constProcessBlock = processBlock;
82  this->doBeginProcessBlock_(constProcessBlock);
83  }
ModuleDescription moduleDescription_
virtual void doBeginProcessBlock_(ProcessBlock const &)

◆ doBeginProcessBlock_()

void EDAnalyzerBase::doBeginProcessBlock_ ( ProcessBlock const &  )
privatevirtual

Definition at line 209 of file EDAnalyzerBase.cc.

Referenced by doBeginProcessBlock().

209 {}

◆ doBeginRun()

void EDAnalyzerBase::doBeginRun ( RunTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 99 of file EDAnalyzerBase.cc.

References edm::BeginRun, HltBtagPostValidation_cff::c, doBeginRun_(), doBeginRunSummary_(), edm::EDConsumerBase::esGetTokenIndices(), info(), and moduleDescription_.

99  {
100  Run r(info, moduleDescription_, mcc, false);
101  r.setConsumer(this);
102  Run const& cnstR = r;
103  ESParentContext parentC(mcc);
104  const EventSetup c{
105  info, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun), parentC};
106  this->doBeginRun_(cnstR, c);
107  this->doBeginRunSummary_(cnstR, c);
108  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doBeginRunSummary_(Run const &rp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
virtual void doBeginRun_(Run const &rp, EventSetup const &c)

◆ doBeginRun_()

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

Definition at line 212 of file EDAnalyzerBase.cc.

Referenced by doBeginRun().

212 {}

◆ doBeginRunSummary_()

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

Definition at line 214 of file EDAnalyzerBase.cc.

Referenced by doBeginRun().

214 {}

◆ doBeginStream()

void EDAnalyzerBase::doBeginStream ( StreamID  id)
private

Definition at line 147 of file EDAnalyzerBase.cc.

References doBeginStream_().

147 { doBeginStream_(id); }
virtual void doBeginStream_(StreamID id)

◆ doBeginStream_()

void EDAnalyzerBase::doBeginStream_ ( StreamID  id)
privatevirtual

Definition at line 199 of file EDAnalyzerBase.cc.

Referenced by doBeginStream().

199 {}

◆ doEndJob()

void EDAnalyzerBase::doEndJob ( )
private

Definition at line 76 of file EDAnalyzerBase.cc.

References endJob().

76 { this->endJob(); }

◆ doEndLuminosityBlock()

void EDAnalyzerBase::doEndLuminosityBlock ( LumiTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 134 of file EDAnalyzerBase.cc.

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

134  {
135  LuminosityBlock lb(info, moduleDescription_, mcc, true);
136  lb.setConsumer(this);
137  LuminosityBlock const& cnstLb = lb;
138  ESParentContext parentC(mcc);
139  const EventSetup c{info,
140  static_cast<unsigned int>(Transition::EndLuminosityBlock),
142  parentC};
143  this->doEndLuminosityBlockSummary_(cnstLb, c);
144  this->doEndLuminosityBlock_(cnstLb, c);
145  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doEndLuminosityBlock_(LuminosityBlock const &lb, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
virtual void doEndLuminosityBlockSummary_(LuminosityBlock const &lb, EventSetup const &c)

◆ doEndLuminosityBlock_()

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

Definition at line 218 of file EDAnalyzerBase.cc.

Referenced by doEndLuminosityBlock().

218 {}

◆ doEndLuminosityBlockSummary_()

void EDAnalyzerBase::doEndLuminosityBlockSummary_ ( LuminosityBlock const &  lb,
EventSetup const &  c 
)
privatevirtual

Definition at line 220 of file EDAnalyzerBase.cc.

Referenced by doEndLuminosityBlock().

220 {}

◆ doEndProcessBlock()

void EDAnalyzerBase::doEndProcessBlock ( ProcessBlockPrincipal const &  pbp,
ModuleCallingContext const *  mcc 
)
private

Definition at line 92 of file EDAnalyzerBase.cc.

References doEndProcessBlock_(), moduleDescription_, and edm::ProcessBlock::setConsumer().

92  {
93  ProcessBlock processBlock(pbp, moduleDescription_, mcc, true);
94  processBlock.setConsumer(this);
95  ProcessBlock const& constProcessBlock = processBlock;
96  this->doEndProcessBlock_(constProcessBlock);
97  }
virtual void doEndProcessBlock_(ProcessBlock const &)
ModuleDescription moduleDescription_

◆ doEndProcessBlock_()

void EDAnalyzerBase::doEndProcessBlock_ ( ProcessBlock const &  )
privatevirtual

Definition at line 211 of file EDAnalyzerBase.cc.

Referenced by doEndProcessBlock().

211 {}

◆ doEndRun()

void EDAnalyzerBase::doEndRun ( RunTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 110 of file EDAnalyzerBase.cc.

References HltBtagPostValidation_cff::c, doEndRun_(), doEndRunSummary_(), edm::EndRun, edm::EDConsumerBase::esGetTokenIndices(), info(), and moduleDescription_.

110  {
111  Run r(info, moduleDescription_, mcc, true);
112  r.setConsumer(this);
113  Run const& cnstR = r;
114  ESParentContext parentC(mcc);
115  const EventSetup c{
116  info, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun), parentC};
117  this->doEndRunSummary_(r, c);
118  this->doEndRun_(cnstR, c);
119  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doEndRun_(Run const &rp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
virtual void doEndRunSummary_(Run const &rp, EventSetup const &c)

◆ doEndRun_()

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

Definition at line 213 of file EDAnalyzerBase.cc.

Referenced by doEndRun().

213 {}

◆ doEndRunSummary_()

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

Definition at line 215 of file EDAnalyzerBase.cc.

Referenced by doEndRun().

215 {}

◆ doEndStream()

void EDAnalyzerBase::doEndStream ( StreamID  id)
private

Definition at line 148 of file EDAnalyzerBase.cc.

References doEndStream_().

148 { doEndStream_(id); }
virtual void doEndStream_(StreamID id)

◆ doEndStream_()

void EDAnalyzerBase::doEndStream_ ( StreamID  id)
privatevirtual

Definition at line 200 of file EDAnalyzerBase.cc.

Referenced by doEndStream().

200 {}

◆ doEvent()

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

Definition at line 52 of file EDAnalyzerBase.cc.

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

54  {
56  e.setConsumer(this);
57  EventSignalsSentry sentry(act, mcc);
58  ESParentContext parentC(mcc);
59  const EventSetup c{
60  info, static_cast<unsigned int>(Transition::Event), esGetTokenIndices(Transition::Event), parentC};
61  this->analyze(e.streamID(), e, c);
62  return true;
63  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void analyze(StreamID, Event const &, EventSetup const &) const =0
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_

◆ doPreallocate()

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

Definition at line 65 of file EDAnalyzerBase.cc.

References edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfRuns(), edm::PreallocationConfiguration::numberOfStreams(), preallocate(), preallocLumis(), preallocLumisSummary(), preallocRuns(), preallocRunsSummary(), and preallocStreams().

65  {
66  preallocStreams(iPrealloc.numberOfStreams());
67  preallocRuns(iPrealloc.numberOfRuns());
68  preallocRunsSummary(iPrealloc.numberOfRuns());
69  preallocLumis(iPrealloc.numberOfLuminosityBlocks());
70  preallocLumisSummary(iPrealloc.numberOfLuminosityBlocks());
71  preallocate(iPrealloc);
72  }
virtual void preallocLumis(unsigned int)
virtual void preallocLumisSummary(unsigned int)
virtual void preallocate(PreallocationConfiguration const &)
virtual void preallocRunsSummary(unsigned int)
virtual void preallocRuns(unsigned int)
virtual void preallocStreams(unsigned int)

◆ doRegisterThinnedAssociations()

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

Definition at line 104 of file EDAnalyzerBase.h.

104 {}

◆ doRespondToCloseInputFile()

void edm::global::EDAnalyzerBase::doRespondToCloseInputFile ( FileBlock const &  )
inlineprivate

Definition at line 102 of file EDAnalyzerBase.h.

102 {}

◆ doRespondToCloseOutputFile()

void edm::global::EDAnalyzerBase::doRespondToCloseOutputFile ( )
inlineprivate

Definition at line 103 of file EDAnalyzerBase.h.

References clearInputProcessBlockCaches().

◆ doRespondToOpenInputFile()

void edm::global::EDAnalyzerBase::doRespondToOpenInputFile ( FileBlock const &  )
inlineprivate

Definition at line 101 of file EDAnalyzerBase.h.

101 {}

◆ doStreamBeginLuminosityBlock()

void EDAnalyzerBase::doStreamBeginLuminosityBlock ( StreamID  id,
LumiTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 166 of file EDAnalyzerBase.cc.

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

168  {
169  LuminosityBlock lb(info, moduleDescription_, mcc, false);
170  lb.setConsumer(this);
171  ESParentContext parentC(mcc);
172  const EventSetup c{info,
173  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
175  parentC};
176  this->doStreamBeginLuminosityBlock_(id, lb, c);
177  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doStreamBeginLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_

◆ doStreamBeginLuminosityBlock_()

void EDAnalyzerBase::doStreamBeginLuminosityBlock_ ( StreamID  id,
LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 204 of file EDAnalyzerBase.cc.

Referenced by doStreamBeginLuminosityBlock().

204 {}

◆ doStreamBeginRun()

void EDAnalyzerBase::doStreamBeginRun ( StreamID  id,
RunTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 149 of file EDAnalyzerBase.cc.

References edm::BeginRun, HltBtagPostValidation_cff::c, doStreamBeginRun_(), edm::EDConsumerBase::esGetTokenIndices(), info(), and moduleDescription_.

149  {
150  Run r(info, moduleDescription_, mcc, false);
151  r.setConsumer(this);
152  ESParentContext parentC(mcc);
153  const EventSetup c{
154  info, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun), parentC};
155  this->doStreamBeginRun_(id, r, c);
156  }
virtual void doStreamBeginRun_(StreamID id, Run const &rp, EventSetup const &c)
static const TGPicture * info(bool iBackgroundIsBlack)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_

◆ doStreamBeginRun_()

void EDAnalyzerBase::doStreamBeginRun_ ( StreamID  id,
Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 201 of file EDAnalyzerBase.cc.

Referenced by doStreamBeginRun().

201 {}

◆ doStreamEndLuminosityBlock()

void EDAnalyzerBase::doStreamEndLuminosityBlock ( StreamID  id,
LumiTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 179 of file EDAnalyzerBase.cc.

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

181  {
182  LuminosityBlock lb(info, moduleDescription_, mcc, true);
183  lb.setConsumer(this);
184  ESParentContext parentC(mcc);
185  const EventSetup c{info,
186  static_cast<unsigned int>(Transition::EndLuminosityBlock),
188  parentC};
189  this->doStreamEndLuminosityBlock_(id, lb, c);
190  this->doStreamEndLuminosityBlockSummary_(id, lb, c);
191  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doStreamEndLuminosityBlockSummary_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
virtual void doStreamEndLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)

◆ doStreamEndLuminosityBlock_()

void EDAnalyzerBase::doStreamEndLuminosityBlock_ ( StreamID  id,
LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 205 of file EDAnalyzerBase.cc.

Referenced by doStreamEndLuminosityBlock().

205 {}

◆ doStreamEndLuminosityBlockSummary_()

void EDAnalyzerBase::doStreamEndLuminosityBlockSummary_ ( StreamID  id,
LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 206 of file EDAnalyzerBase.cc.

Referenced by doStreamEndLuminosityBlock().

208  {}

◆ doStreamEndRun()

void EDAnalyzerBase::doStreamEndRun ( StreamID  id,
RunTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 157 of file EDAnalyzerBase.cc.

References HltBtagPostValidation_cff::c, doStreamEndRun_(), doStreamEndRunSummary_(), edm::EndRun, edm::EDConsumerBase::esGetTokenIndices(), info(), and moduleDescription_.

157  {
158  Run r(info, moduleDescription_, mcc, true);
159  r.setConsumer(this);
160  ESParentContext parentC(mcc);
161  const EventSetup c{
162  info, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun), parentC};
163  this->doStreamEndRun_(id, r, c);
164  this->doStreamEndRunSummary_(id, r, c);
165  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doStreamEndRun_(StreamID id, Run const &rp, EventSetup const &c)
virtual void doStreamEndRunSummary_(StreamID id, Run const &rp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_

◆ doStreamEndRun_()

void EDAnalyzerBase::doStreamEndRun_ ( StreamID  id,
Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 202 of file EDAnalyzerBase.cc.

Referenced by doStreamEndRun().

202 {}

◆ doStreamEndRunSummary_()

void EDAnalyzerBase::doStreamEndRunSummary_ ( StreamID  id,
Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 203 of file EDAnalyzerBase.cc.

Referenced by doStreamEndRun().

203 {}

◆ endJob()

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

◆ fillDescriptions()

void EDAnalyzerBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 224 of file EDAnalyzerBase.cc.

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

224  {
226  desc.setUnknown();
227  descriptions.addDefault(desc);
228  }

◆ hasAccumulator()

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

Definition at line 143 of file EDAnalyzerBase.h.

143 { return false; }

◆ hasAcquire()

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

Definition at line 142 of file EDAnalyzerBase.h.

142 { return false; }

◆ moduleDescription()

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

Definition at line 62 of file EDAnalyzerBase.h.

References moduleDescription_.

Referenced by edmtest::ESTestAnalyzerK::analyze(), and edmtest::ESTestAnalyzerAZ::analyze().

62 { return moduleDescription_; }
ModuleDescription moduleDescription_

◆ preActionBeforeRunEventAsync()

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

Definition at line 78 of file EDAnalyzerBase.h.

80  {}

◆ preallocate()

void EDAnalyzerBase::preallocate ( PreallocationConfiguration const &  )
privatevirtual

Definition at line 198 of file EDAnalyzerBase.cc.

Referenced by doPreallocate().

198 {}

◆ preallocLumis()

void EDAnalyzerBase::preallocLumis ( unsigned  int)
privatevirtual

Definition at line 196 of file EDAnalyzerBase.cc.

Referenced by doPreallocate().

196 {}

◆ preallocLumisSummary()

void EDAnalyzerBase::preallocLumisSummary ( unsigned  int)
privatevirtual

Definition at line 197 of file EDAnalyzerBase.cc.

Referenced by doPreallocate().

197 {}

◆ preallocRuns()

void EDAnalyzerBase::preallocRuns ( unsigned  int)
privatevirtual

Definition at line 194 of file EDAnalyzerBase.cc.

Referenced by doPreallocate().

194 {}

◆ preallocRunsSummary()

void EDAnalyzerBase::preallocRunsSummary ( unsigned  int)
privatevirtual

Definition at line 195 of file EDAnalyzerBase.cc.

Referenced by doPreallocate().

195 {}

◆ preallocStreams()

void EDAnalyzerBase::preallocStreams ( unsigned  int)
privatevirtual

Definition at line 193 of file EDAnalyzerBase.cc.

Referenced by doPreallocate().

193 {}

◆ prevalidate()

void EDAnalyzerBase::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 230 of file EDAnalyzerBase.cc.

References edm::edmodule_mightGet_config().

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

◆ registerProductsAndCallbacks()

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

Definition at line 232 of file EDAnalyzerBase.cc.

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

232  {
234  reg->callForEachBranch(callWhenNewProductsRegistered_);
235 
237  regService->watchProductAdditions(callWhenNewProductsRegistered_);
238  }
239  }
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_

◆ setModuleDescription()

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

Definition at line 145 of file EDAnalyzerBase.h.

References moduleDescription_.

145 { moduleDescription_ = md; }
ModuleDescription moduleDescription_

◆ wantsGlobalLuminosityBlocks()

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

◆ wantsGlobalRuns()

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

◆ wantsInputProcessBlocks()

virtual bool edm::global::EDAnalyzerBase::wantsInputProcessBlocks ( ) const
pure virtual

◆ wantsProcessBlocks()

virtual bool edm::global::EDAnalyzerBase::wantsProcessBlocks ( ) const
pure virtual

◆ wantsStreamLuminosityBlocks()

virtual bool edm::global::EDAnalyzerBase::wantsStreamLuminosityBlocks ( ) const
pure virtual

◆ wantsStreamRuns()

virtual bool edm::global::EDAnalyzerBase::wantsStreamRuns ( ) const
pure virtual

◆ workerType()

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

Definition at line 107 of file EDAnalyzerBase.h.

107 { return "WorkerT<EDAnalyzer>"; }

Friends And Related Function Documentation

◆ edm::maker::ModuleHolderT

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

Definition at line 51 of file EDAnalyzerBase.h.

◆ edm::WorkerT

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

Definition at line 49 of file EDAnalyzerBase.h.

Member Data Documentation

◆ callWhenNewProductsRegistered_

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

◆ moduleDescription_

ModuleDescription edm::global::EDAnalyzerBase::moduleDescription_
private