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
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
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 wantsInputProcessBlocks () const =0
 
virtual bool wantsProcessBlocks () 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

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

Private Member Functions

virtual void 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 doBeginLuminosityBlockProduce_ (LuminosityBlock &lbp, EventSetup const &c)
 
virtual void doBeginLuminosityBlockSummary_ (LuminosityBlock const &rp, EventSetup const &c)
 
void doBeginProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
virtual void doBeginProcessBlock_ (ProcessBlock const &)
 
virtual void doBeginProcessBlockProduce_ (ProcessBlock &)
 
void doBeginRun (RunTransitionInfo const &, 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 (LumiTransitionInfo const &, 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 doEndProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
virtual void doEndProcessBlock_ (ProcessBlock const &)
 
virtual void doEndProcessBlockProduce_ (ProcessBlock &)
 
void doEndRun (RunTransitionInfo const &, 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 (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)
 
void doTransformAsync (WaitingTaskHolder iTask, size_t iTransformIndex, EventPrincipal const &iEvent, ActivityRegistry *, ModuleCallingContext const *, ServiceWeakToken const &)
 
virtual void endJob ()
 
virtual bool hasAccumulator () const
 
bool hasAcquire () const
 
void preActionBeforeRunEventAsync (WaitingTaskHolder 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 preallocRuns (unsigned int)
 
virtual void preallocRunsSummary (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)
 
virtual void transformAsync_ (WaitingTaskHolder iTask, std::size_t iIndex, edm::EventForTransformer &iEvent, ServiceWeakToken const &iToken) const
 
virtual size_t transformIndex_ (edm::BranchDescription const &iBranch) const
 
virtual ProductResolverIndex transformPrefetch_ (std::size_t iIndex) const
 
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<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
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)
 
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 ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 52 of file EDProducerBase.h.

Member Typedef Documentation

◆ ModuleType

Definition at line 58 of file EDProducerBase.h.

Constructor & Destructor Documentation

◆ EDProducerBase()

EDProducerBase::EDProducerBase ( ParameterSet const &  pset)

Definition at line 46 of file EDProducerBase.cc.

47  : ProducerBase(),
51  queue_(pset.getUntrackedParameter<unsigned int>("concurrencyLimit")) {}
ModuleDescription moduleDescription_
std::unique_ptr< ParentageID[]> previousParentageIds_
std::unique_ptr< std::vector< BranchID >[]> previousParentages_

◆ ~EDProducerBase()

EDProducerBase::~EDProducerBase ( )
override

Definition at line 53 of file EDProducerBase.cc.

53 {}

Member Function Documentation

◆ baseType()

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

Definition at line 286 of file EDProducerBase.cc.

References edm::limited::kBaseType().

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

◆ beginJob()

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

Definition at line 127 of file EDProducerBase.h.

Referenced by doBeginJob().

127 {}

◆ clearInputProcessBlockCaches()

void EDProducerBase::clearInputProcessBlockCaches ( )
privatevirtual

Definition at line 274 of file EDProducerBase.cc.

Referenced by doRespondToCloseOutputFile().

274 {}

◆ concurrencyLimit()

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

Definition at line 79 of file EDProducerBase.h.

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

79 { return queue_.concurrencyLimit(); }
unsigned int concurrencyLimit() const

◆ doAccessInputProcessBlock()

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

Definition at line 114 of file EDProducerBase.cc.

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

114  {
115  ProcessBlock processBlock(pbp, moduleDescription_, mcc, false);
116  processBlock.setConsumer(this);
117  ProcessBlock const& constProcessBlock = processBlock;
118  this->doAccessInputProcessBlock_(constProcessBlock);
119  }
ModuleDescription moduleDescription_
virtual void doAccessInputProcessBlock_(ProcessBlock const &)

◆ doAccessInputProcessBlock_()

void EDProducerBase::doAccessInputProcessBlock_ ( ProcessBlock const &  )
privatevirtual

Definition at line 255 of file EDProducerBase.cc.

Referenced by doAccessInputProcessBlock().

255 {}

◆ doBeginJob()

void EDProducerBase::doBeginJob ( )
private

Definition at line 100 of file EDProducerBase.cc.

References beginJob().

100 { this->beginJob(); }

◆ doBeginLuminosityBlock()

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

Definition at line 159 of file EDProducerBase.cc.

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

159  {
160  LuminosityBlock lb(info, moduleDescription_, mcc, false);
161  lb.setConsumer(this);
162  LuminosityBlock const& cnstLb = lb;
163  ESParentContext parentC(mcc);
164  const EventSetup c{info,
165  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
167  parentC};
168  this->doBeginLuminosityBlock_(cnstLb, c);
169  this->doBeginLuminosityBlockSummary_(cnstLb, c);
170  lb.setProducer(this);
172  commit_(lb);
173  }
static const TGPicture * info(bool iBackgroundIsBlack)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
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 commit_(P &iPrincipal)
Definition: ProducerBase.h:122

◆ doBeginLuminosityBlock_()

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

Definition at line 262 of file EDProducerBase.cc.

Referenced by doBeginLuminosityBlock().

262 {}

◆ doBeginLuminosityBlockProduce_()

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

Definition at line 271 of file EDProducerBase.cc.

Referenced by doBeginLuminosityBlock().

271 {}

◆ doBeginLuminosityBlockSummary_()

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

Definition at line 264 of file EDProducerBase.cc.

Referenced by doBeginLuminosityBlock().

264 {}

◆ doBeginProcessBlock()

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

Definition at line 104 of file EDProducerBase.cc.

References edm::ProducerBase::commit_(), doBeginProcessBlock_(), doBeginProcessBlockProduce_(), moduleDescription_, edm::ProcessBlock::setConsumer(), and edm::ProcessBlock::setProducer().

104  {
105  ProcessBlock processBlock(pbp, moduleDescription_, mcc, false);
106  processBlock.setConsumer(this);
107  ProcessBlock const& constProcessBlock = processBlock;
108  this->doBeginProcessBlock_(constProcessBlock);
109  processBlock.setProducer(this);
110  this->doBeginProcessBlockProduce_(processBlock);
111  commit_(processBlock);
112  }
ModuleDescription moduleDescription_
virtual void doBeginProcessBlockProduce_(ProcessBlock &)
virtual void doBeginProcessBlock_(ProcessBlock const &)
void commit_(P &iPrincipal)
Definition: ProducerBase.h:122

◆ doBeginProcessBlock_()

void EDProducerBase::doBeginProcessBlock_ ( ProcessBlock const &  )
privatevirtual

Definition at line 254 of file EDProducerBase.cc.

Referenced by doBeginProcessBlock().

254 {}

◆ doBeginProcessBlockProduce_()

void EDProducerBase::doBeginProcessBlockProduce_ ( ProcessBlock )
privatevirtual

Definition at line 267 of file EDProducerBase.cc.

Referenced by doBeginProcessBlock().

267 {}

◆ doBeginRun()

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

Definition at line 131 of file EDProducerBase.cc.

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

131  {
132  Run r(info, moduleDescription_, mcc, false);
133  r.setConsumer(this);
134  Run const& cnstR = r;
135  ESParentContext parentC(mcc);
136  const EventSetup c{
137  info, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun), parentC};
138  this->doBeginRun_(cnstR, c);
139  this->doBeginRunSummary_(cnstR, c);
140  r.setProducer(this);
141  this->doBeginRunProduce_(r, c);
142  commit_(r);
143  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doBeginRun_(Run const &rp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
virtual void doBeginRunSummary_(Run const &rp, EventSetup const &c)
virtual void doBeginRunProduce_(Run &rp, EventSetup const &c)
void commit_(P &iPrincipal)
Definition: ProducerBase.h:122

◆ doBeginRun_()

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

Definition at line 257 of file EDProducerBase.cc.

Referenced by doBeginRun().

257 {}

◆ doBeginRunProduce_()

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

Definition at line 269 of file EDProducerBase.cc.

Referenced by doBeginRun().

269 {}

◆ doBeginRunSummary_()

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

Definition at line 259 of file EDProducerBase.cc.

Referenced by doBeginRun().

259 {}

◆ doBeginStream()

void EDProducerBase::doBeginStream ( StreamID  id)
private

Definition at line 191 of file EDProducerBase.cc.

References doBeginStream_().

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

◆ doBeginStream_()

void EDProducerBase::doBeginStream_ ( StreamID  id)
privatevirtual

Definition at line 243 of file EDProducerBase.cc.

Referenced by doBeginStream().

243 {}

◆ doEndJob()

void EDProducerBase::doEndJob ( )
private

Definition at line 102 of file EDProducerBase.cc.

References endJob().

102 { this->endJob(); }

◆ doEndLuminosityBlock()

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

Definition at line 175 of file EDProducerBase.cc.

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

175  {
176  LuminosityBlock lb(info, moduleDescription_, mcc, true);
177  lb.setConsumer(this);
178  lb.setProducer(this);
179  LuminosityBlock const& cnstLb = lb;
180  ESParentContext parentC(mcc);
181  const EventSetup c{info,
182  static_cast<unsigned int>(Transition::EndLuminosityBlock),
184  parentC};
185  this->doEndLuminosityBlockSummary_(cnstLb, c);
186  this->doEndLuminosityBlockProduce_(lb, c);
187  this->doEndLuminosityBlock_(cnstLb, c);
188  commit_(lb);
189  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doEndLuminosityBlock_(LuminosityBlock const &lb, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
virtual void doEndLuminosityBlockSummary_(LuminosityBlock const &lb, EventSetup const &c)
virtual void doEndLuminosityBlockProduce_(LuminosityBlock &lbp, EventSetup const &c)
void commit_(P &iPrincipal)
Definition: ProducerBase.h:122

◆ doEndLuminosityBlock_()

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

Definition at line 263 of file EDProducerBase.cc.

Referenced by doEndLuminosityBlock().

263 {}

◆ doEndLuminosityBlockProduce_()

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

Definition at line 272 of file EDProducerBase.cc.

Referenced by doEndLuminosityBlock().

272 {}

◆ doEndLuminosityBlockSummary_()

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

Definition at line 265 of file EDProducerBase.cc.

Referenced by doEndLuminosityBlock().

265 {}

◆ doEndProcessBlock()

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

Definition at line 121 of file EDProducerBase.cc.

References edm::ProducerBase::commit_(), doEndProcessBlock_(), doEndProcessBlockProduce_(), moduleDescription_, edm::ProcessBlock::setConsumer(), and edm::ProcessBlock::setProducer().

121  {
122  ProcessBlock processBlock(pbp, moduleDescription_, mcc, true);
123  processBlock.setConsumer(this);
124  ProcessBlock const& constProcessBlock = processBlock;
125  this->doEndProcessBlock_(constProcessBlock);
126  processBlock.setProducer(this);
127  this->doEndProcessBlockProduce_(processBlock);
128  commit_(processBlock);
129  }
ModuleDescription moduleDescription_
virtual void doEndProcessBlockProduce_(ProcessBlock &)
void commit_(P &iPrincipal)
Definition: ProducerBase.h:122
virtual void doEndProcessBlock_(ProcessBlock const &)

◆ doEndProcessBlock_()

void EDProducerBase::doEndProcessBlock_ ( ProcessBlock const &  )
privatevirtual

Definition at line 256 of file EDProducerBase.cc.

Referenced by doEndProcessBlock().

256 {}

◆ doEndProcessBlockProduce_()

void EDProducerBase::doEndProcessBlockProduce_ ( ProcessBlock )
privatevirtual

Definition at line 268 of file EDProducerBase.cc.

Referenced by doEndProcessBlock().

268 {}

◆ doEndRun()

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

Definition at line 145 of file EDProducerBase.cc.

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

145  {
146  Run r(info, moduleDescription_, mcc, true);
147  r.setConsumer(this);
148  r.setProducer(this);
149  Run const& cnstR = r;
150  ESParentContext parentC(mcc);
151  const EventSetup c{
152  info, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun), parentC};
153  this->doEndRunSummary_(r, c);
154  this->doEndRunProduce_(r, c);
155  this->doEndRun_(cnstR, c);
156  commit_(r);
157  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doEndRunSummary_(Run const &rp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
void commit_(P &iPrincipal)
Definition: ProducerBase.h:122
virtual void doEndRunProduce_(Run &rp, EventSetup const &c)
virtual void doEndRun_(Run const &rp, EventSetup const &c)

◆ doEndRun_()

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

Definition at line 258 of file EDProducerBase.cc.

Referenced by doEndRun().

258 {}

◆ doEndRunProduce_()

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

Definition at line 270 of file EDProducerBase.cc.

Referenced by doEndRun().

270 {}

◆ doEndRunSummary_()

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

Definition at line 260 of file EDProducerBase.cc.

Referenced by doEndRun().

260 {}

◆ doEndStream()

void EDProducerBase::doEndStream ( StreamID  id)
private

Definition at line 192 of file EDProducerBase.cc.

References doEndStream_().

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

◆ doEndStream_()

void EDProducerBase::doEndStream_ ( StreamID  id)
privatevirtual

Definition at line 244 of file EDProducerBase.cc.

Referenced by doEndStream().

244 {}

◆ doEvent()

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

Definition at line 55 of file EDProducerBase.cc.

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

57  {
59  e.setConsumer(this);
60  const auto streamIndex = e.streamID().value();
61  e.setProducer(this, &previousParentages_[streamIndex]);
62  EventSignalsSentry sentry(act, mcc);
63  ESParentContext parentC(mcc);
64  const EventSetup c{
65  info, static_cast<unsigned int>(Transition::Event), esGetTokenIndices(Transition::Event), parentC};
66  this->produce(e.streamID(), e, c);
67  commit_(e, &previousParentageIds_[streamIndex]);
68  return true;
69  }
static const TGPicture * info(bool iBackgroundIsBlack)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
std::unique_ptr< ParentageID[]> previousParentageIds_
virtual void produce(StreamID, Event &, EventSetup const &) const =0
void commit_(P &iPrincipal)
Definition: ProducerBase.h:122
std::unique_ptr< std::vector< BranchID >[]> previousParentages_

◆ doPreallocate()

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

Definition at line 88 of file EDProducerBase.cc.

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

88  {
89  auto const nStreams = iPrealloc.numberOfStreams();
90  previousParentages_ = std::make_unique<std::vector<BranchID>[]>(nStreams);
91  previousParentageIds_ = std::make_unique<ParentageID[]>(nStreams);
92  preallocStreams(nStreams);
93  preallocRuns(iPrealloc.numberOfRuns());
94  preallocRunsSummary(iPrealloc.numberOfRuns());
95  preallocLumis(iPrealloc.numberOfLuminosityBlocks());
96  preallocLumisSummary(iPrealloc.numberOfLuminosityBlocks());
97  preallocate(iPrealloc);
98  }
virtual void preallocLumis(unsigned int)
std::unique_ptr< ParentageID[]> previousParentageIds_
virtual void preallocRunsSummary(unsigned int)
virtual void preallocate(PreallocationConfiguration const &)
virtual void preallocStreams(unsigned int)
std::unique_ptr< std::vector< BranchID >[]> previousParentages_
virtual void preallocLumisSummary(unsigned int)
virtual void preallocRuns(unsigned int)

◆ doRegisterThinnedAssociations()

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

Definition at line 114 of file EDProducerBase.h.

114 {}

◆ doRespondToCloseInputFile()

void edm::limited::EDProducerBase::doRespondToCloseInputFile ( FileBlock const &  )
inlineprivate

Definition at line 112 of file EDProducerBase.h.

112 {}

◆ doRespondToCloseOutputFile()

void edm::limited::EDProducerBase::doRespondToCloseOutputFile ( )
inlineprivate

Definition at line 113 of file EDProducerBase.h.

References clearInputProcessBlockCaches().

◆ doRespondToOpenInputFile()

void edm::limited::EDProducerBase::doRespondToOpenInputFile ( FileBlock const &  )
inlineprivate

Definition at line 111 of file EDProducerBase.h.

111 {}

◆ doStreamBeginLuminosityBlock()

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

Definition at line 210 of file EDProducerBase.cc.

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

212  {
213  LuminosityBlock lb(info, moduleDescription_, mcc, false);
214  lb.setConsumer(this);
215  ESParentContext parentC(mcc);
216  const EventSetup c{info,
217  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
219  parentC};
220  this->doStreamBeginLuminosityBlock_(id, lb, c);
221  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doStreamBeginLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_

◆ doStreamBeginLuminosityBlock_()

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

Definition at line 248 of file EDProducerBase.cc.

Referenced by doStreamBeginLuminosityBlock().

248 {}

◆ doStreamBeginRun()

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

Definition at line 193 of file EDProducerBase.cc.

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

193  {
194  Run r(info, moduleDescription_, mcc, false);
195  r.setConsumer(this);
196  ESParentContext parentC(mcc);
197  const EventSetup c{
198  info, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun), parentC};
199  this->doStreamBeginRun_(id, r, c);
200  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doStreamBeginRun_(StreamID id, Run const &rp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_

◆ doStreamBeginRun_()

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

Definition at line 245 of file EDProducerBase.cc.

Referenced by doStreamBeginRun().

245 {}

◆ doStreamEndLuminosityBlock()

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

Definition at line 223 of file EDProducerBase.cc.

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

225  {
226  LuminosityBlock lb(info, moduleDescription_, mcc, true);
227  lb.setConsumer(this);
228  ESParentContext parentC(mcc);
229  const EventSetup c{info,
230  static_cast<unsigned int>(Transition::EndLuminosityBlock),
232  parentC};
233  this->doStreamEndLuminosityBlock_(id, lb, c);
234  this->doStreamEndLuminosityBlockSummary_(id, lb, c);
235  }
static const TGPicture * info(bool iBackgroundIsBlack)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_
virtual void doStreamEndLuminosityBlockSummary_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
virtual void doStreamEndLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)

◆ doStreamEndLuminosityBlock_()

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

Definition at line 249 of file EDProducerBase.cc.

Referenced by doStreamEndLuminosityBlock().

249 {}

◆ doStreamEndLuminosityBlockSummary_()

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

Definition at line 250 of file EDProducerBase.cc.

Referenced by doStreamEndLuminosityBlock().

252  {}

◆ doStreamEndRun()

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

Definition at line 201 of file EDProducerBase.cc.

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

201  {
202  Run r(info, moduleDescription_, mcc, true);
203  r.setConsumer(this);
204  ESParentContext parentC(mcc);
205  const EventSetup c{
206  info, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun), parentC};
207  this->doStreamEndRun_(id, r, c);
208  this->doStreamEndRunSummary_(id, r, c);
209  }
static const TGPicture * info(bool iBackgroundIsBlack)
virtual void doStreamEndRunSummary_(StreamID id, Run const &rp, EventSetup const &c)
virtual void doStreamEndRun_(StreamID id, Run const &rp, EventSetup const &c)
ESResolverIndex const * esGetTokenIndices(edm::Transition iTrans) const
ModuleDescription moduleDescription_

◆ doStreamEndRun_()

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

Definition at line 246 of file EDProducerBase.cc.

Referenced by doStreamEndRun().

246 {}

◆ doStreamEndRunSummary_()

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

Definition at line 247 of file EDProducerBase.cc.

Referenced by doStreamEndRun().

247 {}

◆ doTransformAsync()

void EDProducerBase::doTransformAsync ( WaitingTaskHolder  iTask,
size_t  iTransformIndex,
EventPrincipal const &  iEvent,
ActivityRegistry ,
ModuleCallingContext const *  iMCC,
ServiceWeakToken const &  iToken 
)
private

Definition at line 71 of file EDProducerBase.cc.

References makeMEIFBenchmarkPlots::ev, iEvent, and transformAsync_().

76  {
77  EventForTransformer ev(iEvent, iMCC);
78  transformAsync_(iTask, iTransformIndex, ev, iToken);
79  }
int iEvent
Definition: GenABIO.cc:224
virtual void transformAsync_(WaitingTaskHolder iTask, std::size_t iIndex, edm::EventForTransformer &iEvent, ServiceWeakToken const &iToken) const

◆ endJob()

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

Definition at line 128 of file EDProducerBase.h.

Referenced by doEndJob().

128 {}

◆ fillDescriptions()

void EDProducerBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 276 of file EDProducerBase.cc.

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

276  {
278  desc.setUnknown();
279  descriptions.addDefault(desc);
280  }

◆ hasAccumulator()

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

Definition at line 172 of file EDProducerBase.h.

172 { return false; }

◆ hasAcquire()

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

Definition at line 174 of file EDProducerBase.h.

174 { return false; }

◆ moduleDescription()

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

Definition at line 70 of file EDProducerBase.h.

References moduleDescription_.

70 { return moduleDescription_; }
ModuleDescription moduleDescription_

◆ preActionBeforeRunEventAsync()

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

Definition at line 123 of file EDProducerBase.h.

125  {}

◆ preallocate()

void EDProducerBase::preallocate ( PreallocationConfiguration const &  )
privatevirtual

Definition at line 242 of file EDProducerBase.cc.

Referenced by doPreallocate().

242 {}

◆ preallocLumis()

void EDProducerBase::preallocLumis ( unsigned  int)
privatevirtual

Definition at line 240 of file EDProducerBase.cc.

Referenced by doPreallocate().

240 {}

◆ preallocLumisSummary()

void EDProducerBase::preallocLumisSummary ( unsigned  int)
privatevirtual

Definition at line 241 of file EDProducerBase.cc.

Referenced by doPreallocate().

241 {}

◆ preallocRuns()

void EDProducerBase::preallocRuns ( unsigned  int)
privatevirtual

Definition at line 238 of file EDProducerBase.cc.

Referenced by doPreallocate().

238 {}

◆ preallocRunsSummary()

void EDProducerBase::preallocRunsSummary ( unsigned  int)
privatevirtual

Definition at line 239 of file EDProducerBase.cc.

Referenced by doPreallocate().

239 {}

◆ preallocStreams()

void EDProducerBase::preallocStreams ( unsigned  int)
privatevirtual

Definition at line 237 of file EDProducerBase.cc.

Referenced by doPreallocate().

237 {}

◆ prevalidate()

void EDProducerBase::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 282 of file EDProducerBase.cc.

References edm::edmodule_mightGet_config().

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

◆ 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 81 of file EDProducerBase.h.

References queue_.

81 { return queue_; }

◆ registerProductsAndCallbacks()

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

Definition at line 116 of file EDProducerBase.h.

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

116  {
118  }
void registerProducts(ProducerBase *, ProductRegistry *, ModuleDescription const &)
Definition: ProducerBase.cc:57
ModuleDescription moduleDescription_

◆ setModuleDescription()

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

Definition at line 176 of file EDProducerBase.h.

References moduleDescription_.

176 { moduleDescription_ = md; }
ModuleDescription moduleDescription_

◆ transformAsync_()

void EDProducerBase::transformAsync_ ( WaitingTaskHolder  iTask,
std::size_t  iIndex,
edm::EventForTransformer iEvent,
ServiceWeakToken const &  iToken 
) const
privatevirtual

Definition at line 83 of file EDProducerBase.cc.

Referenced by doTransformAsync().

86  {}

◆ transformIndex_()

size_t EDProducerBase::transformIndex_ ( edm::BranchDescription const &  iBranch) const
privatevirtual

Definition at line 81 of file EDProducerBase.cc.

81 { return -1; }

◆ transformPrefetch_()

ProductResolverIndex EDProducerBase::transformPrefetch_ ( std::size_t  iIndex) const
privatevirtual

Definition at line 82 of file EDProducerBase.cc.

82 { return 0; }

◆ wantsGlobalLuminosityBlocks()

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

◆ wantsGlobalRuns()

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

◆ wantsInputProcessBlocks()

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

◆ wantsProcessBlocks()

virtual bool edm::limited::EDProducerBase::wantsProcessBlocks ( ) 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 119 of file EDProducerBase.h.

119 { return "WorkerT<EDProducer>"; }

Friends And Related Function Documentation

◆ edm::GlobalSchedule

friend class edm::GlobalSchedule
friend

Definition at line 60 of file EDProducerBase.h.

◆ edm::maker::ModuleHolderT

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

Definition at line 55 of file EDProducerBase.h.

◆ edm::WorkerT

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

Definition at line 57 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 179 of file EDProducerBase.h.

Referenced by doEvent(), and doPreallocate().

◆ previousParentages_

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

Definition at line 178 of file EDProducerBase.h.

Referenced by doEvent(), and doPreallocate().

◆ queue_

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

Definition at line 180 of file EDProducerBase.h.

Referenced by concurrencyLimit(), and queue().