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::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::RunCache< APVGain::APVGainHistograms >, Args... > edm::global::EDAnalyzer< edm::RunCache< beamcond::RunCache >, Args... > edm::global::EDAnalyzer< edm::RunCache< dtrechit::Histograms >, Args... > edm::global::EDAnalyzer< edm::RunCache< dtsegment2d::Histograms >, Args... > edm::global::EDAnalyzer< edm::RunCache< dtsegment2dsl::Histograms >, Args... > edm::global::EDAnalyzer< edm::RunCache< dtsegment4d::Histograms >, Args... > edm::global::EDAnalyzer< edm::RunCache< H >, Args... > edm::global::EDAnalyzer< edm::RunCache< HGCalValidatorHistograms >, Args... > edm::global::EDAnalyzer< edm::RunCache< Histograms >, Args... > edm::global::EDAnalyzer< edm::RunCache< Histograms_CaloParticleValidation >, Args... > edm::global::EDAnalyzer< edm::RunCache< MultiTrackValidatorHistograms >, Args... > 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< RunBasedHistograms >, Args... > edm::global::EDAnalyzer< edm::RunCache< saverDetails::NoCache >, edm::LuminosityBlockCache< saverDetails::NoCache > > edm::global::EDAnalyzer< edm::RunCache< std::vector< TrigObjTnPHistColl > >, Args... > 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 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
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
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 (StreamID, Event const &, EventSetup const &) const =0
 
virtual void beginJob ()
 
void doBeginJob ()
 
void doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doBeginLuminosityBlock_ (LuminosityBlock const &lbp, EventSetup const &c)
 
virtual void doBeginLuminosityBlockSummary_ (LuminosityBlock const &rp, EventSetup const &c)
 
void doBeginRun (RunPrincipal const &rp, EventSetupImpl const &c, 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 (LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doEndLuminosityBlock_ (LuminosityBlock const &lb, EventSetup const &c)
 
virtual void doEndLuminosityBlockSummary_ (LuminosityBlock const &lb, EventSetup const &c)
 
void doEndRun (RunPrincipal const &rp, EventSetupImpl const &c, 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 (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)
 
void doStreamBeginLuminosityBlock (StreamID id, LuminosityBlockPrincipal const &ep, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doStreamBeginLuminosityBlock_ (StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
 
void doStreamBeginRun (StreamID id, RunPrincipal const &ep, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doStreamBeginRun_ (StreamID id, Run const &rp, EventSetup const &c)
 
void doStreamEndLuminosityBlock (StreamID id, LuminosityBlockPrincipal const &ep, EventSetupImpl const &c, 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 id, RunPrincipal const &ep, EventSetupImpl const &c, 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 (WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
 
virtual void preallocate (PreallocationConfiguration const &)
 
virtual void preallocLumis (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)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<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)
 

Detailed Description

Definition at line 47 of file EDAnalyzerBase.h.

Member Typedef Documentation

Definition at line 53 of file EDAnalyzerBase.h.

Constructor & Destructor Documentation

EDAnalyzerBase::EDAnalyzerBase ( )

Definition at line 45 of file EDAnalyzerBase.cc.

45 : moduleDescription_() {}
ModuleDescription moduleDescription_
EDAnalyzerBase::~EDAnalyzerBase ( )
override

Definition at line 47 of file EDAnalyzerBase.cc.

47 {}

Member Function Documentation

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

Definition at line 211 of file EDAnalyzerBase.cc.

References edm::global::kBaseType().

211 { return kBaseType; }
static const std::string kBaseType("EDAnalyzer")
virtual void edm::global::EDAnalyzerBase::beginJob ( void  )
inlineprivatevirtual

Reimplemented in SiStripGainsPCLWorker, RunLumiEventChecker, and DQMFileSaver.

Definition at line 116 of file EDAnalyzerBase.h.

Referenced by doBeginJob().

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

Definition at line 70 of file EDAnalyzerBase.h.

References EnergyCorrector::c, and patCandidates_cff::func.

70  {
72  }
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
void EDAnalyzerBase::doBeginJob ( )
private

Definition at line 67 of file EDAnalyzerBase.cc.

References beginJob().

67 { this->beginJob(); }
void EDAnalyzerBase::doBeginLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 89 of file EDAnalyzerBase.cc.

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

91  {
92  LuminosityBlock lb(lbp, moduleDescription_, mcc, false);
93  lb.setConsumer(this);
94  LuminosityBlock const& cnstLb = lb;
95  const EventSetup c{ci,
96  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
98  this->doBeginLuminosityBlock_(cnstLb, c);
99  this->doBeginLuminosityBlockSummary_(cnstLb, c);
100  }
virtual void doBeginLuminosityBlockSummary_(LuminosityBlock const &rp, EventSetup const &c)
virtual void doBeginLuminosityBlock_(LuminosityBlock const &lbp, EventSetup const &c)
ModuleDescription moduleDescription_
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDAnalyzerBase::doBeginLuminosityBlock_ ( LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 188 of file EDAnalyzerBase.cc.

Referenced by doBeginLuminosityBlock().

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

Definition at line 190 of file EDAnalyzerBase.cc.

Referenced by doBeginLuminosityBlock().

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

Definition at line 71 of file EDAnalyzerBase.cc.

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

71  {
72  Run r(rp, moduleDescription_, mcc, false);
73  r.setConsumer(this);
74  Run const& cnstR = r;
75  const EventSetup c{ci, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun)};
76  this->doBeginRun_(cnstR, c);
77  this->doBeginRunSummary_(cnstR, c);
78  }
virtual void doBeginRunSummary_(Run const &rp, EventSetup const &c)
ModuleDescription moduleDescription_
virtual void doBeginRun_(Run const &rp, EventSetup const &c)
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDAnalyzerBase::doBeginRun_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 183 of file EDAnalyzerBase.cc.

Referenced by doBeginRun().

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

Definition at line 185 of file EDAnalyzerBase.cc.

Referenced by doBeginRun().

185 {}
void EDAnalyzerBase::doBeginStream ( StreamID  id)
private

Definition at line 115 of file EDAnalyzerBase.cc.

References doBeginStream_().

115 { doBeginStream_(id); }
virtual void doBeginStream_(StreamID id)
void EDAnalyzerBase::doBeginStream_ ( StreamID  id)
privatevirtual

Definition at line 172 of file EDAnalyzerBase.cc.

Referenced by doBeginStream().

172 {}
void EDAnalyzerBase::doEndJob ( )
private

Definition at line 69 of file EDAnalyzerBase.cc.

References endJob().

69 { this->endJob(); }
void EDAnalyzerBase::doEndLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 102 of file EDAnalyzerBase.cc.

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

104  {
105  LuminosityBlock lb(lbp, moduleDescription_, mcc, true);
106  lb.setConsumer(this);
107  LuminosityBlock const& cnstLb = lb;
108  const EventSetup c{ci,
109  static_cast<unsigned int>(Transition::EndLuminosityBlock),
111  this->doEndLuminosityBlockSummary_(cnstLb, c);
112  this->doEndLuminosityBlock_(cnstLb, c);
113  }
virtual void doEndLuminosityBlock_(LuminosityBlock const &lb, EventSetup const &c)
ModuleDescription moduleDescription_
virtual void doEndLuminosityBlockSummary_(LuminosityBlock const &lb, EventSetup const &c)
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDAnalyzerBase::doEndLuminosityBlock_ ( LuminosityBlock const &  lb,
EventSetup const &  c 
)
privatevirtual

Definition at line 189 of file EDAnalyzerBase.cc.

Referenced by doEndLuminosityBlock().

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

Definition at line 191 of file EDAnalyzerBase.cc.

Referenced by doEndLuminosityBlock().

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

Definition at line 80 of file EDAnalyzerBase.cc.

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

80  {
81  Run r(rp, moduleDescription_, mcc, true);
82  r.setConsumer(this);
83  Run const& cnstR = r;
84  const EventSetup c{ci, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun)};
85  this->doEndRunSummary_(r, c);
86  this->doEndRun_(cnstR, c);
87  }
virtual void doEndRun_(Run const &rp, EventSetup const &c)
ModuleDescription moduleDescription_
virtual void doEndRunSummary_(Run const &rp, EventSetup const &c)
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDAnalyzerBase::doEndRun_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 184 of file EDAnalyzerBase.cc.

Referenced by doEndRun().

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

Definition at line 186 of file EDAnalyzerBase.cc.

Referenced by doEndRun().

186 {}
void EDAnalyzerBase::doEndStream ( StreamID  id)
private

Definition at line 116 of file EDAnalyzerBase.cc.

References doEndStream_().

116 { doEndStream_(id); }
virtual void doEndStream_(StreamID id)
void EDAnalyzerBase::doEndStream_ ( StreamID  id)
privatevirtual

Definition at line 173 of file EDAnalyzerBase.cc.

Referenced by doEndStream().

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

Definition at line 49 of file EDAnalyzerBase.cc.

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

52  {
53  Event e(ep, moduleDescription_, mcc);
54  e.setConsumer(this);
55  EventSignalsSentry sentry(act, mcc);
56  const EventSetup c{ci, static_cast<unsigned int>(Transition::Event), esGetTokenIndices(Transition::Event)};
57  this->analyze(e.streamID(), e, c);
58  return true;
59  }
ModuleDescription moduleDescription_
virtual void analyze(StreamID, Event const &, EventSetup const &) const =0
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDAnalyzerBase::doPreallocate ( PreallocationConfiguration const &  iPrealloc)
private

Definition at line 61 of file EDAnalyzerBase.cc.

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

61  {
62  preallocStreams(iPrealloc.numberOfStreams());
63  preallocLumis(iPrealloc.numberOfLuminosityBlocks());
64  preallocate(iPrealloc);
65  }
virtual void preallocLumis(unsigned int)
virtual void preallocate(PreallocationConfiguration const &)
virtual void preallocStreams(unsigned int)
void edm::global::EDAnalyzerBase::doRegisterThinnedAssociations ( ProductRegistry const &  ,
ThinnedAssociationsHelper  
)
inlineprivate
void EDAnalyzerBase::doRespondToCloseInputFile ( FileBlock const &  fb)
private

Definition at line 165 of file EDAnalyzerBase.cc.

165  {
166  //respondToCloseInputFile(fb);
167  }
void EDAnalyzerBase::doRespondToOpenInputFile ( FileBlock const &  fb)
private

Definition at line 161 of file EDAnalyzerBase.cc.

161  {
162  //respondToOpenInputFile(fb);
163  }
void EDAnalyzerBase::doStreamBeginLuminosityBlock ( StreamID  id,
LuminosityBlockPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 136 of file EDAnalyzerBase.cc.

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

139  {
140  LuminosityBlock lb(lbp, moduleDescription_, mcc, false);
141  lb.setConsumer(this);
142  const EventSetup c{ci,
143  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
145  this->doStreamBeginLuminosityBlock_(id, lb, c);
146  }
virtual void doStreamBeginLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
ModuleDescription moduleDescription_
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDAnalyzerBase::doStreamBeginLuminosityBlock_ ( StreamID  id,
LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 177 of file EDAnalyzerBase.cc.

Referenced by doStreamBeginLuminosityBlock().

177 {}
void EDAnalyzerBase::doStreamBeginRun ( StreamID  id,
RunPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 117 of file EDAnalyzerBase.cc.

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

120  {
121  Run r(rp, moduleDescription_, mcc, false);
122  r.setConsumer(this);
123  const EventSetup c{ci, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun)};
124  this->doStreamBeginRun_(id, r, c);
125  }
virtual void doStreamBeginRun_(StreamID id, Run const &rp, EventSetup const &c)
ModuleDescription moduleDescription_
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDAnalyzerBase::doStreamBeginRun_ ( StreamID  id,
Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 174 of file EDAnalyzerBase.cc.

Referenced by doStreamBeginRun().

174 {}
void EDAnalyzerBase::doStreamEndLuminosityBlock ( StreamID  id,
LuminosityBlockPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 148 of file EDAnalyzerBase.cc.

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

151  {
152  LuminosityBlock lb(lbp, moduleDescription_, mcc, true);
153  lb.setConsumer(this);
154  const EventSetup c{ci,
155  static_cast<unsigned int>(Transition::EndLuminosityBlock),
157  this->doStreamEndLuminosityBlock_(id, lb, c);
158  this->doStreamEndLuminosityBlockSummary_(id, lb, c);
159  }
virtual void doStreamEndLuminosityBlockSummary_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
ModuleDescription moduleDescription_
virtual void doStreamEndLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDAnalyzerBase::doStreamEndLuminosityBlock_ ( StreamID  id,
LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 178 of file EDAnalyzerBase.cc.

Referenced by doStreamEndLuminosityBlock().

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

Definition at line 179 of file EDAnalyzerBase.cc.

Referenced by doStreamEndLuminosityBlock().

181  {}
void EDAnalyzerBase::doStreamEndRun ( StreamID  id,
RunPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 126 of file EDAnalyzerBase.cc.

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

129  {
130  Run r(rp, moduleDescription_, mcc, true);
131  r.setConsumer(this);
132  const EventSetup c{ci, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun)};
133  this->doStreamEndRun_(id, r, c);
134  this->doStreamEndRunSummary_(id, r, c);
135  }
virtual void doStreamEndRun_(StreamID id, Run const &rp, EventSetup const &c)
virtual void doStreamEndRunSummary_(StreamID id, Run const &rp, EventSetup const &c)
ModuleDescription moduleDescription_
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDAnalyzerBase::doStreamEndRun_ ( StreamID  id,
Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 175 of file EDAnalyzerBase.cc.

Referenced by doStreamEndRun().

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

Definition at line 176 of file EDAnalyzerBase.cc.

Referenced by doStreamEndRun().

176 {}
virtual void edm::global::EDAnalyzerBase::endJob ( void  )
inlineprivatevirtual
void EDAnalyzerBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 193 of file EDAnalyzerBase.cc.

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

193  {
195  desc.setUnknown();
196  descriptions.addDefault(desc);
197  }
bool edm::global::EDAnalyzerBase::hasAccumulator ( ) const
inlineprivate

Definition at line 141 of file EDAnalyzerBase.h.

141 { return false; }
bool edm::global::EDAnalyzerBase::hasAcquire ( ) const
inlineprivate

Definition at line 140 of file EDAnalyzerBase.h.

140 { return false; }
ModuleDescription const& edm::global::EDAnalyzerBase::moduleDescription ( ) const
inline

Definition at line 63 of file EDAnalyzerBase.h.

63 { return moduleDescription_; }
ModuleDescription moduleDescription_
void edm::global::EDAnalyzerBase::preActionBeforeRunEventAsync ( WaitingTask iTask,
ModuleCallingContext const &  iModuleCallingContext,
Principal const &  iPrincipal 
) const
inlineprivate

Definition at line 77 of file EDAnalyzerBase.h.

References benchmark_cfg::fb.

79  {}
void EDAnalyzerBase::preallocate ( PreallocationConfiguration const &  )
privatevirtual

Definition at line 171 of file EDAnalyzerBase.cc.

Referenced by doPreallocate().

171 {}
void EDAnalyzerBase::preallocLumis ( unsigned  int)
privatevirtual

Definition at line 170 of file EDAnalyzerBase.cc.

Referenced by doPreallocate().

170 {}
void EDAnalyzerBase::preallocStreams ( unsigned  int)
privatevirtual

Definition at line 169 of file EDAnalyzerBase.cc.

Referenced by doPreallocate().

169 {}
void EDAnalyzerBase::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 199 of file EDAnalyzerBase.cc.

References edm::edmodule_mightGet_config().

199 { edmodule_mightGet_config(iConfig); }
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
void EDAnalyzerBase::registerProductsAndCallbacks ( EDAnalyzerBase module,
ProductRegistry reg 
)
private

Definition at line 201 of file EDAnalyzerBase.cc.

References edm::ProductRegistry::callForEachBranch(), callWhenNewProductsRegistered_, edm::global::kBaseType(), and AlCaHLTBitMon_QueryRunRegistry::string.

201  {
203  reg->callForEachBranch(callWhenNewProductsRegistered_);
204 
206  regService->watchProductAdditions(callWhenNewProductsRegistered_);
207  }
208  }
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
void edm::global::EDAnalyzerBase::setModuleDescription ( ModuleDescription const &  md)
inlineprivate

Definition at line 143 of file EDAnalyzerBase.h.

143 { moduleDescription_ = md; }
ModuleDescription moduleDescription_
virtual bool edm::global::EDAnalyzerBase::wantsGlobalLuminosityBlocks ( ) const
pure virtual

Implemented in edm::global::EDAnalyzer< T >, edm::global::EDAnalyzer< edm::RunCache< MultiTrackValidatorHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< NoCache >, edm::LuminosityBlockCache< NoCache > >, edm::global::EDAnalyzer< edm::RunCache< dtsegment2dsl::Histograms >, Args... >, edm::global::EDAnalyzer<>, edm::global::EDAnalyzer< edm::StreamCache< L1TriggerJSONMonitoringData::stream >, edm::RunCache< L1TriggerJSONMonitoringData::run >, edm::LuminosityBlockSummaryCache< L1TriggerJSONMonitoringData::lumisection > >, edm::global::EDAnalyzer< edm::RunCache< Histograms_CaloParticleValidation >, Args... >, edm::global::EDAnalyzer< edm::StreamCache< HLTriggerJSONMonitoringData::stream >, edm::RunCache< HLTriggerJSONMonitoringData::run >, edm::LuminosityBlockSummaryCache< HLTriggerJSONMonitoringData::lumisection > >, edm::global::EDAnalyzer< edm::RunCache< APVGain::APVGainHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< RunBasedHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtsegment2d::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtrechit::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< std::vector< TrigObjTnPHistColl > >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtsegment4d::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< H >, Args... >, edm::global::EDAnalyzer< edm::RunCache< saverDetails::NoCache >, edm::LuminosityBlockCache< saverDetails::NoCache > >, edm::global::EDAnalyzer< edm::RunCache< rlec::Cache >, edm::LuminosityBlockCache< rlec::Cache > >, edm::global::EDAnalyzer< edm::RunCache< HGCalValidatorHistograms >, Args... >, and edm::global::EDAnalyzer< edm::RunCache< beamcond::RunCache >, Args... >.

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

Implemented in edm::global::EDAnalyzer< T >, edm::global::EDAnalyzer< edm::RunCache< MultiTrackValidatorHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< NoCache >, edm::LuminosityBlockCache< NoCache > >, edm::global::EDAnalyzer< edm::RunCache< dtsegment2dsl::Histograms >, Args... >, edm::global::EDAnalyzer<>, edm::global::EDAnalyzer< edm::StreamCache< L1TriggerJSONMonitoringData::stream >, edm::RunCache< L1TriggerJSONMonitoringData::run >, edm::LuminosityBlockSummaryCache< L1TriggerJSONMonitoringData::lumisection > >, edm::global::EDAnalyzer< edm::RunCache< Histograms_CaloParticleValidation >, Args... >, edm::global::EDAnalyzer< edm::StreamCache< HLTriggerJSONMonitoringData::stream >, edm::RunCache< HLTriggerJSONMonitoringData::run >, edm::LuminosityBlockSummaryCache< HLTriggerJSONMonitoringData::lumisection > >, edm::global::EDAnalyzer< edm::RunCache< APVGain::APVGainHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< RunBasedHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtsegment2d::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtrechit::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< std::vector< TrigObjTnPHistColl > >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtsegment4d::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< H >, Args... >, edm::global::EDAnalyzer< edm::RunCache< saverDetails::NoCache >, edm::LuminosityBlockCache< saverDetails::NoCache > >, edm::global::EDAnalyzer< edm::RunCache< rlec::Cache >, edm::LuminosityBlockCache< rlec::Cache > >, edm::global::EDAnalyzer< edm::RunCache< HGCalValidatorHistograms >, Args... >, and edm::global::EDAnalyzer< edm::RunCache< beamcond::RunCache >, Args... >.

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

Implemented in edm::global::EDAnalyzer< T >, edm::global::EDAnalyzer< edm::RunCache< MultiTrackValidatorHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< NoCache >, edm::LuminosityBlockCache< NoCache > >, edm::global::EDAnalyzer< edm::RunCache< dtsegment2dsl::Histograms >, Args... >, edm::global::EDAnalyzer<>, edm::global::EDAnalyzer< edm::StreamCache< L1TriggerJSONMonitoringData::stream >, edm::RunCache< L1TriggerJSONMonitoringData::run >, edm::LuminosityBlockSummaryCache< L1TriggerJSONMonitoringData::lumisection > >, edm::global::EDAnalyzer< edm::RunCache< Histograms_CaloParticleValidation >, Args... >, edm::global::EDAnalyzer< edm::StreamCache< HLTriggerJSONMonitoringData::stream >, edm::RunCache< HLTriggerJSONMonitoringData::run >, edm::LuminosityBlockSummaryCache< HLTriggerJSONMonitoringData::lumisection > >, edm::global::EDAnalyzer< edm::RunCache< APVGain::APVGainHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< RunBasedHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtsegment2d::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtrechit::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< std::vector< TrigObjTnPHistColl > >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtsegment4d::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< H >, Args... >, edm::global::EDAnalyzer< edm::RunCache< saverDetails::NoCache >, edm::LuminosityBlockCache< saverDetails::NoCache > >, edm::global::EDAnalyzer< edm::RunCache< rlec::Cache >, edm::LuminosityBlockCache< rlec::Cache > >, edm::global::EDAnalyzer< edm::RunCache< HGCalValidatorHistograms >, Args... >, and edm::global::EDAnalyzer< edm::RunCache< beamcond::RunCache >, Args... >.

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

Implemented in edm::global::EDAnalyzer< T >, edm::global::EDAnalyzer< edm::RunCache< MultiTrackValidatorHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< NoCache >, edm::LuminosityBlockCache< NoCache > >, edm::global::EDAnalyzer< edm::RunCache< dtsegment2dsl::Histograms >, Args... >, edm::global::EDAnalyzer<>, edm::global::EDAnalyzer< edm::StreamCache< L1TriggerJSONMonitoringData::stream >, edm::RunCache< L1TriggerJSONMonitoringData::run >, edm::LuminosityBlockSummaryCache< L1TriggerJSONMonitoringData::lumisection > >, edm::global::EDAnalyzer< edm::RunCache< Histograms_CaloParticleValidation >, Args... >, edm::global::EDAnalyzer< edm::StreamCache< HLTriggerJSONMonitoringData::stream >, edm::RunCache< HLTriggerJSONMonitoringData::run >, edm::LuminosityBlockSummaryCache< HLTriggerJSONMonitoringData::lumisection > >, edm::global::EDAnalyzer< edm::RunCache< APVGain::APVGainHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< RunBasedHistograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtsegment2d::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtrechit::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< std::vector< TrigObjTnPHistColl > >, Args... >, edm::global::EDAnalyzer< edm::RunCache< dtsegment4d::Histograms >, Args... >, edm::global::EDAnalyzer< edm::RunCache< H >, Args... >, edm::global::EDAnalyzer< edm::RunCache< saverDetails::NoCache >, edm::LuminosityBlockCache< saverDetails::NoCache > >, edm::global::EDAnalyzer< edm::RunCache< rlec::Cache >, edm::LuminosityBlockCache< rlec::Cache > >, edm::global::EDAnalyzer< edm::RunCache< HGCalValidatorHistograms >, Args... >, and edm::global::EDAnalyzer< edm::RunCache< beamcond::RunCache >, Args... >.

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

Definition at line 113 of file EDAnalyzerBase.h.

References analyze().

113 { return "WorkerT<EDAnalyzer>"; }

Friends And Related Function Documentation

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

Definition at line 52 of file EDAnalyzerBase.h.

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

Definition at line 50 of file EDAnalyzerBase.h.

Member Data Documentation

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

Definition at line 146 of file EDAnalyzerBase.h.

Referenced by registerProductsAndCallbacks().

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