CMS 3D CMS Logo

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

#include <EDProducerBase.h>

Inheritance diagram for edm::limited::EDProducerBase:
edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper edm::limited::EDProducer< T >

Public Types

typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

unsigned int concurrencyLimit () const
 
 EDProducerBase (ParameterSet const &pset)
 
ModuleDescription const & moduleDescription () const
 
LimitedTaskQueuequeue ()
 
virtual bool wantsGlobalLuminosityBlocks () const =0
 
virtual bool wantsGlobalRuns () const =0
 
virtual bool wantsStreamLuminosityBlocks () const =0
 
virtual bool wantsStreamRuns () const =0
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

virtual void beginJob ()
 
void doBeginJob ()
 
void doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doBeginLuminosityBlock_ (LuminosityBlock const &lbp, EventSetup const &c)
 
virtual void doBeginLuminosityBlockProduce_ (LuminosityBlock &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 doBeginRunProduce_ (Run &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 doEndLuminosityBlockProduce_ (LuminosityBlock &lbp, 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 doEndRunProduce_ (Run &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 ()
 
virtual 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 preallocLumisSummary (unsigned int)
 
virtual void preallocStreams (unsigned int)
 
virtual void produce (StreamID, Event &, EventSetup const &) const =0
 
void registerProductsAndCallbacks (EDProducerBase *module, ProductRegistry *reg)
 
void setModuleDescription (ModuleDescription const &md)
 
std::string workerType () const
 

Private Attributes

ModuleDescription moduleDescription_
 
std::unique_ptr< ParentageID[]> previousParentageIds_
 
std::unique_ptr< std::vector< BranchID >[]> previousParentages_
 
LimitedTaskQueue queue_
 

Friends

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

Additional Inherited Members

- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 51 of file EDProducerBase.h.

Member Typedef Documentation

◆ ModuleType

Definition at line 57 of file EDProducerBase.h.

Constructor & Destructor Documentation

◆ EDProducerBase()

EDProducerBase::EDProducerBase ( ParameterSet const &  pset)

Definition at line 40 of file EDProducerBase.cc.

41  : ProducerBase(),
45  queue_(pset.getUntrackedParameter<unsigned int>("concurrencyLimit")) {}

◆ ~EDProducerBase()

EDProducerBase::~EDProducerBase ( )
override

Definition at line 47 of file EDProducerBase.cc.

47 {}

Member Function Documentation

◆ baseType()

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

Definition at line 236 of file EDProducerBase.cc.

236 { return kBaseType; }

References edm::limited::kBaseType().

◆ beginJob()

virtual void edm::limited::EDProducerBase::beginJob ( void  )
inlineprivatevirtual

Definition at line 124 of file EDProducerBase.h.

124 {}

Referenced by doBeginJob().

◆ concurrencyLimit()

unsigned int edm::limited::EDProducerBase::concurrencyLimit ( ) const
inline

Definition at line 76 of file EDProducerBase.h.

76 { return queue_.concurrencyLimit(); }

References edm::LimitedTaskQueue::concurrencyLimit(), and queue_.

◆ doBeginJob()

void EDProducerBase::doBeginJob ( )
private

Definition at line 74 of file EDProducerBase.cc.

74 { this->beginJob(); }

References beginJob().

◆ doBeginLuminosityBlock()

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

◆ doBeginLuminosityBlock_()

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

Definition at line 216 of file EDProducerBase.cc.

216 {}

Referenced by doBeginLuminosityBlock().

◆ doBeginLuminosityBlockProduce_()

void EDProducerBase::doBeginLuminosityBlockProduce_ ( LuminosityBlock lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 223 of file EDProducerBase.cc.

223 {}

Referenced by doBeginLuminosityBlock().

◆ doBeginLuminosityBlockSummary_()

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

Definition at line 218 of file EDProducerBase.cc.

218 {}

Referenced by doBeginLuminosityBlock().

◆ doBeginRun()

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

Definition at line 78 of file EDProducerBase.cc.

78  {
79  Run r(rp, moduleDescription_, mcc, false);
80  r.setConsumer(this);
81  Run const& cnstR = r;
82  const EventSetup c{
83  ci, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun), false};
84  this->doBeginRun_(cnstR, c);
85  this->doBeginRunSummary_(cnstR, c);
86  r.setProducer(this);
87  this->doBeginRunProduce_(r, c);
88  commit_(r);
89  }

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

◆ doBeginRun_()

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

Definition at line 211 of file EDProducerBase.cc.

211 {}

Referenced by doBeginRun().

◆ doBeginRunProduce_()

void EDProducerBase::doBeginRunProduce_ ( Run rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 221 of file EDProducerBase.cc.

221 {}

Referenced by doBeginRun().

◆ doBeginRunSummary_()

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

Definition at line 213 of file EDProducerBase.cc.

213 {}

Referenced by doBeginRun().

◆ doBeginStream()

void EDProducerBase::doBeginStream ( StreamID  id)
private

Definition at line 138 of file EDProducerBase.cc.

138 { doBeginStream_(id); }

References doBeginStream_().

◆ doBeginStream_()

void EDProducerBase::doBeginStream_ ( StreamID  id)
privatevirtual

Definition at line 200 of file EDProducerBase.cc.

200 {}

Referenced by doBeginStream().

◆ doEndJob()

void EDProducerBase::doEndJob ( )
private

Definition at line 76 of file EDProducerBase.cc.

76 { this->endJob(); }

References endJob().

◆ doEndLuminosityBlock()

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

◆ doEndLuminosityBlock_()

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

Definition at line 217 of file EDProducerBase.cc.

217 {}

Referenced by doEndLuminosityBlock().

◆ doEndLuminosityBlockProduce_()

void EDProducerBase::doEndLuminosityBlockProduce_ ( LuminosityBlock lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 224 of file EDProducerBase.cc.

224 {}

Referenced by doEndLuminosityBlock().

◆ doEndLuminosityBlockSummary_()

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

Definition at line 219 of file EDProducerBase.cc.

219 {}

Referenced by doEndLuminosityBlock().

◆ doEndRun()

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

Definition at line 91 of file EDProducerBase.cc.

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

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

◆ doEndRun_()

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

Definition at line 212 of file EDProducerBase.cc.

212 {}

Referenced by doEndRun().

◆ doEndRunProduce_()

void EDProducerBase::doEndRunProduce_ ( Run rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 222 of file EDProducerBase.cc.

222 {}

Referenced by doEndRun().

◆ doEndRunSummary_()

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

Definition at line 214 of file EDProducerBase.cc.

214 {}

Referenced by doEndRun().

◆ doEndStream()

void EDProducerBase::doEndStream ( StreamID  id)
private

Definition at line 139 of file EDProducerBase.cc.

139 { doEndStream_(id); }

References doEndStream_().

◆ doEndStream_()

void EDProducerBase::doEndStream_ ( StreamID  id)
privatevirtual

Definition at line 201 of file EDProducerBase.cc.

201 {}

Referenced by doEndStream().

◆ doEvent()

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

Definition at line 49 of file EDProducerBase.cc.

52  {
54  e.setConsumer(this);
55  const auto streamIndex = e.streamID().value();
56  e.setProducer(this, &previousParentages_[streamIndex]);
57  EventSignalsSentry sentry(act, mcc);
58  const EventSetup c{ci, static_cast<unsigned int>(Transition::Event), esGetTokenIndices(Transition::Event), false};
59  this->produce(e.streamID(), e, c);
60  commit_(e, &previousParentageIds_[streamIndex]);
61  return true;
62  }

References HltBtagPostValidation_cff::c, edm::ProducerBase::commit_(), MillePedeFileConverter_cfg::e, SiStripBadComponentsDQMServiceTemplate_cfg::ep, edm::EDConsumerBase::esGetTokenIndices(), edm::Event, moduleDescription_, previousParentageIds_, previousParentages_, produce(), and edm::Event::streamID().

◆ doPreallocate()

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

Definition at line 64 of file EDProducerBase.cc.

64  {
65  auto const nStreams = iPrealloc.numberOfStreams();
66  previousParentages_.reset(new std::vector<BranchID>[nStreams]);
67  previousParentageIds_.reset(new ParentageID[nStreams]);
68  preallocStreams(nStreams);
69  preallocLumis(iPrealloc.numberOfLuminosityBlocks());
70  preallocLumisSummary(iPrealloc.numberOfLuminosityBlocks());
71  preallocate(iPrealloc);
72  }

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

◆ doRegisterThinnedAssociations()

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

Definition at line 111 of file EDProducerBase.h.

111 {}

◆ doRespondToCloseInputFile()

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

Definition at line 192 of file EDProducerBase.cc.

192  {
193  //respondToCloseInputFile(fb);
194  }

◆ doRespondToOpenInputFile()

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

Definition at line 188 of file EDProducerBase.cc.

188  {
189  //respondToOpenInputFile(fb);
190  }

◆ doStreamBeginLuminosityBlock()

void EDProducerBase::doStreamBeginLuminosityBlock ( StreamID  id,
LuminosityBlockPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

◆ doStreamBeginLuminosityBlock_()

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

Definition at line 205 of file EDProducerBase.cc.

205 {}

Referenced by doStreamBeginLuminosityBlock().

◆ doStreamBeginRun()

void EDProducerBase::doStreamBeginRun ( StreamID  id,
RunPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 140 of file EDProducerBase.cc.

143  {
144  Run r(rp, moduleDescription_, mcc, false);
145  r.setConsumer(this);
146  const EventSetup c{
147  ci, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun), false};
148  this->doStreamBeginRun_(id, r, c);
149  }

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

◆ doStreamBeginRun_()

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

Definition at line 202 of file EDProducerBase.cc.

202 {}

Referenced by doStreamBeginRun().

◆ doStreamEndLuminosityBlock()

void EDProducerBase::doStreamEndLuminosityBlock ( StreamID  id,
LuminosityBlockPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

◆ doStreamEndLuminosityBlock_()

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

Definition at line 206 of file EDProducerBase.cc.

206 {}

Referenced by doStreamEndLuminosityBlock().

◆ doStreamEndLuminosityBlockSummary_()

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

Definition at line 207 of file EDProducerBase.cc.

209  {}

Referenced by doStreamEndLuminosityBlock().

◆ doStreamEndRun()

void EDProducerBase::doStreamEndRun ( StreamID  id,
RunPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 150 of file EDProducerBase.cc.

153  {
154  Run r(rp, moduleDescription_, mcc, true);
155  r.setConsumer(this);
156  const EventSetup c{
157  ci, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun), false};
158  this->doStreamEndRun_(id, r, c);
159  this->doStreamEndRunSummary_(id, r, c);
160  }

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

◆ doStreamEndRun_()

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

Definition at line 203 of file EDProducerBase.cc.

203 {}

Referenced by doStreamEndRun().

◆ doStreamEndRunSummary_()

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

Definition at line 204 of file EDProducerBase.cc.

204 {}

Referenced by doStreamEndRun().

◆ endJob()

virtual void edm::limited::EDProducerBase::endJob ( void  )
inlineprivatevirtual

Definition at line 125 of file EDProducerBase.h.

125 {}

Referenced by doEndJob().

◆ fillDescriptions()

void EDProducerBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 226 of file EDProducerBase.cc.

226  {
228  desc.setUnknown();
229  descriptions.addDefault(desc);
230  }

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

◆ hasAccumulator()

virtual bool edm::limited::EDProducerBase::hasAccumulator ( ) const
inlineprivatevirtual

Definition at line 154 of file EDProducerBase.h.

154 { return false; }

◆ hasAcquire()

bool edm::limited::EDProducerBase::hasAcquire ( ) const
inlineprivate

Definition at line 156 of file EDProducerBase.h.

156 { return false; }

◆ moduleDescription()

ModuleDescription const& edm::limited::EDProducerBase::moduleDescription ( ) const
inline

Definition at line 69 of file EDProducerBase.h.

69 { return moduleDescription_; }

References moduleDescription_.

◆ preActionBeforeRunEventAsync()

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

Definition at line 120 of file EDProducerBase.h.

122  {}

◆ preallocate()

void EDProducerBase::preallocate ( PreallocationConfiguration const &  )
privatevirtual

Definition at line 199 of file EDProducerBase.cc.

199 {}

Referenced by doPreallocate().

◆ preallocLumis()

void EDProducerBase::preallocLumis ( unsigned int  )
privatevirtual

Definition at line 197 of file EDProducerBase.cc.

197 {}

Referenced by doPreallocate().

◆ preallocLumisSummary()

void EDProducerBase::preallocLumisSummary ( unsigned int  )
privatevirtual

Definition at line 198 of file EDProducerBase.cc.

198 {}

Referenced by doPreallocate().

◆ preallocStreams()

void EDProducerBase::preallocStreams ( unsigned int  )
privatevirtual

Definition at line 196 of file EDProducerBase.cc.

196 {}

Referenced by doPreallocate().

◆ prevalidate()

void EDProducerBase::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 232 of file EDProducerBase.cc.

232 { edmodule_mightGet_config(iConfig); }

References edm::edmodule_mightGet_config().

◆ produce()

virtual void edm::limited::EDProducerBase::produce ( StreamID  ,
Event ,
EventSetup const &   
) const
privatepure virtual

Referenced by doEvent().

◆ queue()

LimitedTaskQueue& edm::limited::EDProducerBase::queue ( )
inline

Definition at line 78 of file EDProducerBase.h.

78 { return queue_; }

References queue_.

◆ registerProductsAndCallbacks()

void edm::limited::EDProducerBase::registerProductsAndCallbacks ( EDProducerBase module,
ProductRegistry reg 
)
inlineprivate

Definition at line 113 of file EDProducerBase.h.

113  {
115  }

References moduleDescription_, and edm::ProducerBase::registerProducts().

◆ setModuleDescription()

void edm::limited::EDProducerBase::setModuleDescription ( ModuleDescription const &  md)
inlineprivate

Definition at line 158 of file EDProducerBase.h.

158 { moduleDescription_ = md; }

References moduleDescription_.

◆ wantsGlobalLuminosityBlocks()

virtual bool edm::limited::EDProducerBase::wantsGlobalLuminosityBlocks ( ) const
pure virtual

◆ wantsGlobalRuns()

virtual bool edm::limited::EDProducerBase::wantsGlobalRuns ( ) const
pure virtual

◆ wantsStreamLuminosityBlocks()

virtual bool edm::limited::EDProducerBase::wantsStreamLuminosityBlocks ( ) const
pure virtual

◆ wantsStreamRuns()

virtual bool edm::limited::EDProducerBase::wantsStreamRuns ( ) const
pure virtual

◆ workerType()

std::string edm::limited::EDProducerBase::workerType ( ) const
inlineprivate

Definition at line 116 of file EDProducerBase.h.

116 { return "WorkerT<EDProducer>"; }

Friends And Related Function Documentation

◆ edm::GlobalSchedule

friend class edm::GlobalSchedule
friend

Definition at line 59 of file EDProducerBase.h.

◆ edm::maker::ModuleHolderT

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

Definition at line 54 of file EDProducerBase.h.

◆ edm::WorkerT

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

Definition at line 56 of file EDProducerBase.h.

Member Data Documentation

◆ moduleDescription_

ModuleDescription edm::limited::EDProducerBase::moduleDescription_
private

◆ previousParentageIds_

std::unique_ptr<ParentageID[]> edm::limited::EDProducerBase::previousParentageIds_
private

Definition at line 161 of file EDProducerBase.h.

Referenced by doEvent(), and doPreallocate().

◆ previousParentages_

std::unique_ptr<std::vector<BranchID>[]> edm::limited::EDProducerBase::previousParentages_
private

Definition at line 160 of file EDProducerBase.h.

Referenced by doEvent(), and doPreallocate().

◆ queue_

LimitedTaskQueue edm::limited::EDProducerBase::queue_
private

Definition at line 162 of file EDProducerBase.h.

Referenced by concurrencyLimit(), and queue().

edm::limited::EDProducerBase::doStreamEndLuminosityBlock_
virtual void doStreamEndLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
Definition: EDProducerBase.cc:206
edm::limited::EDProducerBase::doStreamEndRunSummary_
virtual void doStreamEndRunSummary_(StreamID id, Run const &rp, EventSetup const &c)
Definition: EDProducerBase.cc:204
edm::limited::EDProducerBase::endJob
virtual void endJob()
Definition: EDProducerBase.h:125
edm::limited::EDProducerBase::doEndRunSummary_
virtual void doEndRunSummary_(Run const &rp, EventSetup const &c)
Definition: EDProducerBase.cc:214
edm::ProducerBase::ProducerBase
ProducerBase()
Definition: ProducerBase.cc:16
edm::Transition::Event
edm::ProducerBase::commit_
void commit_(P &iPrincipal)
Definition: ProducerBase.h:115
edm::limited::EDProducerBase::previousParentageIds_
std::unique_ptr< ParentageID[]> previousParentageIds_
Definition: EDProducerBase.h:161
edm::limited::EDProducerBase::preallocLumisSummary
virtual void preallocLumisSummary(unsigned int)
Definition: EDProducerBase.cc:198
edm::limited::EDProducerBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: EDProducerBase.cc:197
edm::limited::EDProducerBase::doEndLuminosityBlockSummary_
virtual void doEndLuminosityBlockSummary_(LuminosityBlock const &lb, EventSetup const &c)
Definition: EDProducerBase.cc:219
edm::limited::EDProducerBase::produce
virtual void produce(StreamID, Event &, EventSetup const &) const =0
edm::limited::EDProducerBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlock const &lbp, EventSetup const &c)
Definition: EDProducerBase.cc:216
edm::limited::EDProducerBase::queue_
LimitedTaskQueue queue_
Definition: EDProducerBase.h:162
edm::limited::EDProducerBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlock const &lb, EventSetup const &c)
Definition: EDProducerBase.cc:217
LuminosityBlock
edm::limited::EDProducerBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: EDProducerBase.h:159
Event
edm::Transition::BeginLuminosityBlock
edm::limited::EDProducerBase::beginJob
virtual void beginJob()
Definition: EDProducerBase.h:124
edm::LimitedTaskQueue::concurrencyLimit
unsigned int concurrencyLimit() const
Definition: LimitedTaskQueue.h:116
edm::limited::EDProducerBase::doBeginRunProduce_
virtual void doBeginRunProduce_(Run &rp, EventSetup const &c)
Definition: EDProducerBase.cc:221
edm::limited::EDProducerBase::doStreamEndLuminosityBlockSummary_
virtual void doStreamEndLuminosityBlockSummary_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
Definition: EDProducerBase.cc:207
edm::limited::EDProducerBase::doEndStream_
virtual void doEndStream_(StreamID id)
Definition: EDProducerBase.cc:201
edm::limited::EDProducerBase::preallocStreams
virtual void preallocStreams(unsigned int)
Definition: EDProducerBase.cc:196
edm::limited::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::limited::EDProducerBase::doEndRunProduce_
virtual void doEndRunProduce_(Run &rp, EventSetup const &c)
Definition: EDProducerBase.cc:222
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
module
Definition: vlib.h:198
edm::limited::EDProducerBase::previousParentages_
std::unique_ptr< std::vector< BranchID >[]> previousParentages_
Definition: EDProducerBase.h:160
edm::limited::EDProducerBase::preallocate
virtual void preallocate(PreallocationConfiguration const &)
Definition: EDProducerBase.cc:199
edm::limited::EDProducerBase::doBeginRun_
virtual void doBeginRun_(Run const &rp, EventSetup const &c)
Definition: EDProducerBase.cc:211
edm::limited::EDProducerBase::doBeginLuminosityBlockProduce_
virtual void doBeginLuminosityBlockProduce_(LuminosityBlock &lbp, EventSetup const &c)
Definition: EDProducerBase.cc:223
alignCSCRings.r
r
Definition: alignCSCRings.py:93
edm::Transition::EndLuminosityBlock
edm::limited::EDProducerBase::doBeginRunSummary_
virtual void doBeginRunSummary_(Run const &rp, EventSetup const &c)
Definition: EDProducerBase.cc:213
edm::EDConsumerBase::esGetTokenIndices
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
Definition: EDConsumerBase.h:110
edm::ParentageID
Hash< ParentageType > ParentageID
Definition: ParentageID.h:8
edm::Transition::BeginRun
ParameterSetDescription
edm::limited::EDProducerBase::doStreamEndRun_
virtual void doStreamEndRun_(StreamID id, Run const &rp, EventSetup const &c)
Definition: EDProducerBase.cc:203
edm::edmodule_mightGet_config
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
Definition: edmodule_mightGet_config.cc:36
edm::limited::EDProducerBase::doEndRun_
virtual void doEndRun_(Run const &rp, EventSetup const &c)
Definition: EDProducerBase.cc:212
EventSetup
edm::limited::EDProducerBase::doBeginLuminosityBlockSummary_
virtual void doBeginLuminosityBlockSummary_(LuminosityBlock const &rp, EventSetup const &c)
Definition: EDProducerBase.cc:218
edm::limited::EDProducerBase::doEndLuminosityBlockProduce_
virtual void doEndLuminosityBlockProduce_(LuminosityBlock &lbp, EventSetup const &c)
Definition: EDProducerBase.cc:224
edm::ProducerBase::registerProducts
void registerProducts(ProducerBase *, ProductRegistry *, ModuleDescription const &)
Definition: ProducerBase.cc:57
edm::Transition::EndRun
edm::limited::EDProducerBase::doBeginStream_
virtual void doBeginStream_(StreamID id)
Definition: EDProducerBase.cc:200
edm::limited::EDProducerBase::doStreamBeginLuminosityBlock_
virtual void doStreamBeginLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
Definition: EDProducerBase.cc:205
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::limited::EDProducerBase::doStreamBeginRun_
virtual void doStreamBeginRun_(StreamID id, Run const &rp, EventSetup const &c)
Definition: EDProducerBase.cc:202
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
Run