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< 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::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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
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 &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 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
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 = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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 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_() {}

◆ ~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

◆ baseType()

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

Definition at line 248 of file EDAnalyzerBase.cc.

248 { return kBaseType; }

References edm::global::kBaseType().

◆ beginJob()

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

Reimplemented in RunLumiEventChecker, BeamProfile2DB, and GenXSecAnalyzer.

Definition at line 110 of file EDAnalyzerBase.h.

110 {}

Referenced by doBeginJob().

◆ callWhenNewProductsRegistered()

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

◆ clearInputProcessBlockCaches()

void EDAnalyzerBase::clearInputProcessBlockCaches ( )
privatevirtual

Definition at line 228 of file EDAnalyzerBase.cc.

228 {}

Referenced by doRespondToCloseOutputFile().

◆ doAccessInputProcessBlock()

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

Definition at line 83 of file EDAnalyzerBase.cc.

83  {
84  ProcessBlock processBlock(pbp, moduleDescription_, mcc, false);
85  processBlock.setConsumer(this);
86  ProcessBlock const& constProcessBlock = processBlock;
87  this->doAccessInputProcessBlock_(constProcessBlock);
88  }

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

◆ doAccessInputProcessBlock_()

void EDAnalyzerBase::doAccessInputProcessBlock_ ( ProcessBlock const &  )
privatevirtual

Definition at line 216 of file EDAnalyzerBase.cc.

216 {}

Referenced by doAccessInputProcessBlock().

◆ doBeginJob()

void EDAnalyzerBase::doBeginJob ( )
private

Definition at line 72 of file EDAnalyzerBase.cc.

72 { this->beginJob(); }

References beginJob().

◆ doBeginLuminosityBlock()

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

Definition at line 122 of file EDAnalyzerBase.cc.

122  {
123  LuminosityBlock lb(info, moduleDescription_, mcc, false);
124  lb.setConsumer(this);
125  LuminosityBlock const& cnstLb = lb;
126  ESParentContext parentC(mcc);
127  const EventSetup c{info,
128  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
130  parentC,
131  false};
132  this->doBeginLuminosityBlock_(cnstLb, c);
133  this->doBeginLuminosityBlockSummary_(cnstLb, c);
134  }

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

◆ doBeginLuminosityBlock_()

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

Definition at line 223 of file EDAnalyzerBase.cc.

223 {}

Referenced by doBeginLuminosityBlock().

◆ doBeginLuminosityBlockSummary_()

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

Definition at line 225 of file EDAnalyzerBase.cc.

225 {}

Referenced by doBeginLuminosityBlock().

◆ doBeginProcessBlock()

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

Definition at line 76 of file EDAnalyzerBase.cc.

76  {
77  ProcessBlock processBlock(pbp, moduleDescription_, mcc, false);
78  processBlock.setConsumer(this);
79  ProcessBlock const& constProcessBlock = processBlock;
80  this->doBeginProcessBlock_(constProcessBlock);
81  }

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

◆ doBeginProcessBlock_()

void EDAnalyzerBase::doBeginProcessBlock_ ( ProcessBlock const &  )
privatevirtual

Definition at line 215 of file EDAnalyzerBase.cc.

215 {}

Referenced by doBeginProcessBlock().

◆ doBeginRun()

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

Definition at line 97 of file EDAnalyzerBase.cc.

97  {
98  Run r(info, moduleDescription_, mcc, false);
99  r.setConsumer(this);
100  Run const& cnstR = r;
101  ESParentContext parentC(mcc);
102  const EventSetup c{info,
103  static_cast<unsigned int>(Transition::BeginRun),
105  parentC,
106  false};
107  this->doBeginRun_(cnstR, c);
108  this->doBeginRunSummary_(cnstR, c);
109  }

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

◆ doBeginRun_()

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

Definition at line 218 of file EDAnalyzerBase.cc.

218 {}

Referenced by doBeginRun().

◆ doBeginRunSummary_()

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

Definition at line 220 of file EDAnalyzerBase.cc.

220 {}

Referenced by doBeginRun().

◆ doBeginStream()

void EDAnalyzerBase::doBeginStream ( StreamID  id)
private

Definition at line 150 of file EDAnalyzerBase.cc.

150 { doBeginStream_(id); }

References doBeginStream_().

◆ doBeginStream_()

void EDAnalyzerBase::doBeginStream_ ( StreamID  id)
privatevirtual

Definition at line 205 of file EDAnalyzerBase.cc.

205 {}

Referenced by doBeginStream().

◆ doEndJob()

void EDAnalyzerBase::doEndJob ( )
private

Definition at line 74 of file EDAnalyzerBase.cc.

74 { this->endJob(); }

References endJob().

◆ doEndLuminosityBlock()

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

Definition at line 136 of file EDAnalyzerBase.cc.

136  {
137  LuminosityBlock lb(info, moduleDescription_, mcc, true);
138  lb.setConsumer(this);
139  LuminosityBlock const& cnstLb = lb;
140  ESParentContext parentC(mcc);
141  const EventSetup c{info,
142  static_cast<unsigned int>(Transition::EndLuminosityBlock),
144  parentC,
145  false};
146  this->doEndLuminosityBlockSummary_(cnstLb, c);
147  this->doEndLuminosityBlock_(cnstLb, c);
148  }

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

◆ doEndLuminosityBlock_()

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

Definition at line 224 of file EDAnalyzerBase.cc.

224 {}

Referenced by doEndLuminosityBlock().

◆ doEndLuminosityBlockSummary_()

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

Definition at line 226 of file EDAnalyzerBase.cc.

226 {}

Referenced by doEndLuminosityBlock().

◆ doEndProcessBlock()

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

Definition at line 90 of file EDAnalyzerBase.cc.

90  {
91  ProcessBlock processBlock(pbp, moduleDescription_, mcc, true);
92  processBlock.setConsumer(this);
93  ProcessBlock const& constProcessBlock = processBlock;
94  this->doEndProcessBlock_(constProcessBlock);
95  }

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

◆ doEndProcessBlock_()

void EDAnalyzerBase::doEndProcessBlock_ ( ProcessBlock const &  )
privatevirtual

Definition at line 217 of file EDAnalyzerBase.cc.

217 {}

Referenced by doEndProcessBlock().

◆ doEndRun()

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

Definition at line 111 of file EDAnalyzerBase.cc.

111  {
112  Run r(info, moduleDescription_, mcc, true);
113  r.setConsumer(this);
114  Run const& cnstR = r;
115  ESParentContext parentC(mcc);
116  const EventSetup c{
117  info, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun), parentC, false};
118  this->doEndRunSummary_(r, c);
119  this->doEndRun_(cnstR, c);
120  }

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

◆ doEndRun_()

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

Definition at line 219 of file EDAnalyzerBase.cc.

219 {}

Referenced by doEndRun().

◆ doEndRunSummary_()

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

Definition at line 221 of file EDAnalyzerBase.cc.

221 {}

Referenced by doEndRun().

◆ doEndStream()

void EDAnalyzerBase::doEndStream ( StreamID  id)
private

Definition at line 151 of file EDAnalyzerBase.cc.

151 { doEndStream_(id); }

References doEndStream_().

◆ doEndStream_()

void EDAnalyzerBase::doEndStream_ ( StreamID  id)
privatevirtual

Definition at line 206 of file EDAnalyzerBase.cc.

206 {}

Referenced by doEndStream().

◆ doEvent()

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

Definition at line 52 of file EDAnalyzerBase.cc.

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, false};
61  this->analyze(e.streamID(), e, c);
62  return true;
63  }

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

◆ doPreallocate()

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

Definition at line 65 of file EDAnalyzerBase.cc.

65  {
66  preallocStreams(iPrealloc.numberOfStreams());
67  preallocLumis(iPrealloc.numberOfLuminosityBlocks());
68  preallocLumisSummary(iPrealloc.numberOfLuminosityBlocks());
69  preallocate(iPrealloc);
70  }

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

◆ 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 172 of file EDAnalyzerBase.cc.

174  {
175  LuminosityBlock lb(info, moduleDescription_, mcc, false);
176  lb.setConsumer(this);
177  ESParentContext parentC(mcc);
178  const EventSetup c{info,
179  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
181  parentC,
182  false};
183  this->doStreamBeginLuminosityBlock_(id, lb, c);
184  }

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

◆ doStreamBeginLuminosityBlock_()

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

Definition at line 210 of file EDAnalyzerBase.cc.

210 {}

Referenced by doStreamBeginLuminosityBlock().

◆ doStreamBeginRun()

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

Definition at line 152 of file EDAnalyzerBase.cc.

152  {
153  Run r(info, moduleDescription_, mcc, false);
154  r.setConsumer(this);
155  ESParentContext parentC(mcc);
156  const EventSetup c{info,
157  static_cast<unsigned int>(Transition::BeginRun),
159  parentC,
160  false};
161  this->doStreamBeginRun_(id, r, c);
162  }

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

◆ doStreamBeginRun_()

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

Definition at line 207 of file EDAnalyzerBase.cc.

207 {}

Referenced by doStreamBeginRun().

◆ doStreamEndLuminosityBlock()

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

Definition at line 186 of file EDAnalyzerBase.cc.

188  {
189  LuminosityBlock lb(info, moduleDescription_, mcc, true);
190  lb.setConsumer(this);
191  ESParentContext parentC(mcc);
192  const EventSetup c{info,
193  static_cast<unsigned int>(Transition::EndLuminosityBlock),
195  parentC,
196  false};
197  this->doStreamEndLuminosityBlock_(id, lb, c);
198  this->doStreamEndLuminosityBlockSummary_(id, lb, c);
199  }

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

◆ doStreamEndLuminosityBlock_()

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

Definition at line 211 of file EDAnalyzerBase.cc.

211 {}

Referenced by doStreamEndLuminosityBlock().

◆ doStreamEndLuminosityBlockSummary_()

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

Definition at line 212 of file EDAnalyzerBase.cc.

214  {}

Referenced by doStreamEndLuminosityBlock().

◆ doStreamEndRun()

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

Definition at line 163 of file EDAnalyzerBase.cc.

163  {
164  Run r(info, moduleDescription_, mcc, true);
165  r.setConsumer(this);
166  ESParentContext parentC(mcc);
167  const EventSetup c{
168  info, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun), parentC, false};
169  this->doStreamEndRun_(id, r, c);
170  this->doStreamEndRunSummary_(id, r, c);
171  }

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

◆ doStreamEndRun_()

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

Definition at line 208 of file EDAnalyzerBase.cc.

208 {}

Referenced by doStreamEndRun().

◆ doStreamEndRunSummary_()

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

Definition at line 209 of file EDAnalyzerBase.cc.

209 {}

Referenced by doStreamEndRun().

◆ endJob()

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

◆ fillDescriptions()

void EDAnalyzerBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 230 of file EDAnalyzerBase.cc.

230  {
232  desc.setUnknown();
233  descriptions.addDefault(desc);
234  }

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

◆ hasAccumulator()

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

Definition at line 141 of file EDAnalyzerBase.h.

141 { return false; }

◆ hasAcquire()

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

Definition at line 140 of file EDAnalyzerBase.h.

140 { return false; }

◆ moduleDescription()

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

Definition at line 62 of file EDAnalyzerBase.h.

62 { return moduleDescription_; }

References 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 204 of file EDAnalyzerBase.cc.

204 {}

Referenced by doPreallocate().

◆ preallocLumis()

void EDAnalyzerBase::preallocLumis ( unsigned int  )
privatevirtual

Definition at line 202 of file EDAnalyzerBase.cc.

202 {}

Referenced by doPreallocate().

◆ preallocLumisSummary()

void EDAnalyzerBase::preallocLumisSummary ( unsigned int  )
privatevirtual

Definition at line 203 of file EDAnalyzerBase.cc.

203 {}

Referenced by doPreallocate().

◆ preallocStreams()

void EDAnalyzerBase::preallocStreams ( unsigned int  )
privatevirtual

Definition at line 201 of file EDAnalyzerBase.cc.

201 {}

Referenced by doPreallocate().

◆ prevalidate()

void EDAnalyzerBase::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 236 of file EDAnalyzerBase.cc.

236 { edmodule_mightGet_config(iConfig); }

References edm::edmodule_mightGet_config().

◆ registerProductsAndCallbacks()

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

Definition at line 238 of file EDAnalyzerBase.cc.

238  {
240  reg->callForEachBranch(callWhenNewProductsRegistered_);
241 
243  regService->watchProductAdditions(callWhenNewProductsRegistered_);
244  }
245  }

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

◆ setModuleDescription()

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

Definition at line 143 of file EDAnalyzerBase.h.

143 { moduleDescription_ = md; }

References 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
edm::global::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::global::EDAnalyzerBase::callWhenNewProductsRegistered_
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
Definition: EDAnalyzerBase.h:146
edm::global::EDAnalyzerBase::doBeginRunSummary_
virtual void doBeginRunSummary_(Run const &rp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:220
edm::global::EDAnalyzerBase::doEndStream_
virtual void doEndStream_(StreamID id)
Definition: EDAnalyzerBase.cc:206
edm::global::EDAnalyzerBase::doStreamBeginRun_
virtual void doStreamBeginRun_(StreamID id, Run const &rp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:207
edm::global::EDAnalyzerBase::doBeginStream_
virtual void doBeginStream_(StreamID id)
Definition: EDAnalyzerBase.cc:205
edm::Transition::Event
edm::global::EDAnalyzerBase::doAccessInputProcessBlock_
virtual void doAccessInputProcessBlock_(ProcessBlock const &)
Definition: EDAnalyzerBase.cc:216
edm::global::EDAnalyzerBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: EDAnalyzerBase.h:144
edm::global::EDAnalyzerBase::preallocLumisSummary
virtual void preallocLumisSummary(unsigned int)
Definition: EDAnalyzerBase.cc:203
edm::global::EDAnalyzerBase::preallocate
virtual void preallocate(PreallocationConfiguration const &)
Definition: EDAnalyzerBase.cc:204
edm::global::EDAnalyzerBase::doEndProcessBlock_
virtual void doEndProcessBlock_(ProcessBlock const &)
Definition: EDAnalyzerBase.cc:217
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
edm::global::EDAnalyzerBase::doBeginProcessBlock_
virtual void doBeginProcessBlock_(ProcessBlock const &)
Definition: EDAnalyzerBase.cc:215
edm::global::EDAnalyzerBase::analyze
virtual void analyze(StreamID, Event const &, EventSetup const &) const =0
edm::global::EDAnalyzerBase::doEndRun_
virtual void doEndRun_(Run const &rp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:219
edm::global::EDAnalyzerBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlock const &lbp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:223
edm::global::EDAnalyzerBase::doStreamEndRunSummary_
virtual void doStreamEndRunSummary_(StreamID id, Run const &rp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:209
Service
LuminosityBlock
Event
edm::Transition::BeginLuminosityBlock
edm::global::EDAnalyzerBase::beginJob
virtual void beginJob()
Definition: EDAnalyzerBase.h:110
edm::global::EDAnalyzerBase::doStreamEndLuminosityBlockSummary_
virtual void doStreamEndLuminosityBlockSummary_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:212
edm::global::EDAnalyzerBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: EDAnalyzerBase.cc:202
TrackCollections2monitor_cff.func
func
Definition: TrackCollections2monitor_cff.py:359
edm::global::EDAnalyzerBase::endJob
virtual void endJob()
Definition: EDAnalyzerBase.h:111
edm::global::EDAnalyzerBase::doStreamEndLuminosityBlock_
virtual void doStreamEndLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:211
edm::global::EDAnalyzerBase::clearInputProcessBlockCaches
virtual void clearInputProcessBlockCaches()
Definition: EDAnalyzerBase.cc:228
edm::global::EDAnalyzerBase::doEndRunSummary_
virtual void doEndRunSummary_(Run const &rp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:221
alignCSCRings.r
r
Definition: alignCSCRings.py:93
edm::global::EDAnalyzerBase::doBeginRun_
virtual void doBeginRun_(Run const &rp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:218
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::Transition::EndLuminosityBlock
edm::EDConsumerBase::esGetTokenIndices
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
Definition: EDConsumerBase.h:124
edm::Transition::BeginRun
ParameterSetDescription
edm::global::EDAnalyzerBase::doStreamEndRun_
virtual void doStreamEndRun_(StreamID id, Run const &rp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:208
edm::edmodule_mightGet_config
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
Definition: edmodule_mightGet_config.cc:36
EventSetup
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
edm::global::EDAnalyzerBase::preallocStreams
virtual void preallocStreams(unsigned int)
Definition: EDAnalyzerBase.cc:201
edm::Transition::EndRun
edm::global::EDAnalyzerBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlock const &lb, EventSetup const &c)
Definition: EDAnalyzerBase.cc:224
edm::global::EDAnalyzerBase::doBeginLuminosityBlockSummary_
virtual void doBeginLuminosityBlockSummary_(LuminosityBlock const &rp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:225
edm::global::EDAnalyzerBase::doEndLuminosityBlockSummary_
virtual void doEndLuminosityBlockSummary_(LuminosityBlock const &lb, EventSetup const &c)
Definition: EDAnalyzerBase.cc:226
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::global::EDAnalyzerBase::doStreamBeginLuminosityBlock_
virtual void doStreamBeginLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
Definition: EDAnalyzerBase.cc:210
Run