CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::LuminosityBlockPrincipal Class Reference

#include <LuminosityBlockPrincipal.h>

Inheritance diagram for edm::LuminosityBlockPrincipal:
edm::Principal edm::EDProductGetter

Public Types

typedef LuminosityBlockAuxiliary Auxiliary
 
typedef Principal Base
 
- Public Types inherited from edm::Principal
typedef std::vector< BasicHandleBasicHandleVec
 
typedef unsigned long CacheIdentifier_t
 
typedef boost::filter_iterator< FilledProductPtr, ProductResolverCollection::const_iterator > const_iterator
 
typedef ProductResolverBase const * ConstProductResolverPtr
 
typedef boost::filter_iterator< FilledProductPtr, ProductResolverCollection::iterator > iterator
 
typedef std::string ProcessName
 
typedef ProcessHistory::const_iterator ProcessNameConstIterator
 
typedef std::vector< propagate_const< std::shared_ptr< ProductResolverBase > > > ProductResolverCollection
 
typedef std::shared_ptr< ProductResolverBaseSharedProductPtr
 
typedef ProductResolverCollection::size_type size_type
 

Public Member Functions

LuminosityBlockAuxiliary const & aux () const
 
Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
void fillLuminosityBlockPrincipal (ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
 
LuminosityBlockID id () const
 
LuminosityBlockIndex index () const
 
LuminosityBlockNumber_t luminosityBlock () const
 
 LuminosityBlockPrincipal (std::shared_ptr< ProductRegistry const > reg, ProcessConfiguration const &pc, HistoryAppender *historyAppender, unsigned int index, bool isForPrimaryProcess=true)
 
void mergeAuxiliary (LuminosityBlockAuxiliary const &aux)
 
void put (BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
 
void put (ProductResolverIndex index, std::unique_ptr< WrapperBase > edp) const
 
RunNumber_t run () const
 
RunPrincipalrunPrincipal ()
 
RunPrincipal const & runPrincipal () const
 
void setAux (LuminosityBlockAuxiliary iAux)
 
void setEndTime (Timestamp const &time)
 
void setRunPrincipal (std::shared_ptr< RunPrincipal > rp)
 
 ~LuminosityBlockPrincipal () override
 
- Public Member Functions inherited from edm::Principal
void adjustIndexesAfterProductRegistryAddition ()
 
bool adjustToNewProductRegistry (ProductRegistry const &reg)
 
iterator begin ()
 
const_iterator begin () const
 
BranchType const & branchType () const
 
CacheIdentifier_t cacheIdentifier () const
 
void clearPrincipal ()
 
void deleteProduct (BranchID const &id) const
 
iterator end ()
 
const_iterator end () const
 
void fillPrincipal (DelayedReader *reader)
 
void fillPrincipal (ProcessHistoryID const &hist, ProcessHistory const *phr, DelayedReader *reader)
 
void fillPrincipal (std::string const &processNameOfBlock, DelayedReader *reader)
 
ProductData const * findProductByTag (TypeID const &typeID, InputTag const &tag, ModuleCallingContext const *mcc) const
 
void getAllProvenance (std::vector< Provenance const * > &provenances) const
 
void getAllStableProvenance (std::vector< StableProvenance const * > &provenances) const
 
BasicHandle getByLabel (KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag, EDConsumerBase const *consumes, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
 
BasicHandle getByLabel (KindOfType kindOfType, TypeID const &typeID, std::string const &label, std::string const &instance, std::string const &process, EDConsumerBase const *consumes, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
 
BasicHandle getByToken (KindOfType kindOfType, TypeID const &typeID, ProductResolverIndex index, bool skipCurrentProcess, bool &ambiguous, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
 
void getManyByType (TypeID const &typeID, BasicHandleVec &results, EDConsumerBase const *consumes, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
 
ProductResolverBasegetModifiableProductResolver (BranchID const &oid)
 
ConstProductResolverPtr getProductResolver (BranchID const &oid) const
 
ConstProductResolverPtr getProductResolverByIndex (ProductResolverIndex const &oid) const
 
Provenance getProvenance (BranchID const &bid, ModuleCallingContext const *mcc) const
 
std::vector< unsigned int > const & lookupProcessOrder () const
 
void prefetchAsync (WaitingTask *waitTask, ProductResolverIndex index, bool skipCurrentProcess, ServiceToken const &token, ModuleCallingContext const *mcc) const
 
 Principal (std::shared_ptr< ProductRegistry const > reg, std::shared_ptr< ProductResolverIndexHelper const > productLookup, ProcessConfiguration const &pc, BranchType bt, HistoryAppender *historyAppender, bool isForPrimaryProcess=true)
 
ProcessConfiguration const & processConfiguration () const
 
ProcessHistory const & processHistory () const
 
ProcessHistoryID const & processHistoryID () const
 
EDProductGetter const * prodGetter () const
 
ProductResolverIndexHelper const & productLookup () const
 
ProductRegistry const & productRegistry () const
 
void readAllFromSourceAndMergeImmediately (MergeableRunProductMetadata const *mergeableRunProductMetadata=nullptr)
 
DelayedReaderreader () const
 
void recombine (Principal &other, std::vector< BranchID > const &bids)
 
void setupUnscheduled (UnscheduledConfigurator const &)
 
size_t size () const
 
 ~Principal () override
 
- Public Member Functions inherited from edm::EDProductGetter
 EDProductGetter ()
 
 EDProductGetter (EDProductGetter const &)=delete
 
EDProductGetter const & operator= (EDProductGetter const &)=delete
 
unsigned int transitionIndex () const
 
virtual ~EDProductGetter ()
 

Private Member Functions

unsigned int transitionIndex_ () const override
 

Private Attributes

LuminosityBlockAuxiliary aux_
 
LuminosityBlockIndex index_
 
edm::propagate_const< std::shared_ptr< RunPrincipal > > runPrincipal_
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::EDProductGetter
static void assignEDProductGetter (EDProductGetter const *&)
 
static EDProductGetter const * switchProductGetter (EDProductGetter const *)
 These can only be used internally by the framework. More...
 
- Protected Member Functions inherited from edm::Principal
void addProduct_ (std::unique_ptr< ProductResolverBase > phb)
 
void addProductOrThrow (std::unique_ptr< ProductResolverBase > phb)
 
template<typename F >
void applyToResolvers (F iFunc)
 
ProductResolverBasegetExistingProduct (BranchID const &branchID)
 
ProductResolverBase const * getExistingProduct (BranchID const &branchID) const
 
ProductResolverBase const * getExistingProduct (ProductResolverBase const &phb) const
 
void putOrMerge (BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
 

Detailed Description

Definition at line 31 of file LuminosityBlockPrincipal.h.

Member Typedef Documentation

◆ Auxiliary

Definition at line 33 of file LuminosityBlockPrincipal.h.

◆ Base

Definition at line 34 of file LuminosityBlockPrincipal.h.

Constructor & Destructor Documentation

◆ LuminosityBlockPrincipal()

edm::LuminosityBlockPrincipal::LuminosityBlockPrincipal ( std::shared_ptr< ProductRegistry const >  reg,
ProcessConfiguration const &  pc,
HistoryAppender historyAppender,
unsigned int  index,
bool  isForPrimaryProcess = true 
)

Definition at line 7 of file LuminosityBlockPrincipal.cc.

12  : Base(reg, reg->productLookup(InLumi), pc, InLumi, historyAppender, isForPrimaryProcess),
13  runPrincipal_(),
14  index_(index) {}

◆ ~LuminosityBlockPrincipal()

edm::LuminosityBlockPrincipal::~LuminosityBlockPrincipal ( )
inlineoverride

Definition at line 41 of file LuminosityBlockPrincipal.h.

41 {}

Member Function Documentation

◆ aux()

LuminosityBlockAuxiliary const& edm::LuminosityBlockPrincipal::aux ( ) const
inline

◆ beginTime()

Timestamp const& edm::LuminosityBlockPrincipal::beginTime ( ) const
inline

◆ endTime()

Timestamp const& edm::LuminosityBlockPrincipal::endTime ( ) const
inline

◆ fillLuminosityBlockPrincipal()

void edm::LuminosityBlockPrincipal::fillLuminosityBlockPrincipal ( ProcessHistory const *  processHistory,
DelayedReader reader = nullptr 
)

◆ id()

LuminosityBlockID edm::LuminosityBlockPrincipal::id ( void  ) const
inline

◆ index()

LuminosityBlockIndex edm::LuminosityBlockPrincipal::index ( ) const
inline

Definition at line 51 of file LuminosityBlockPrincipal.h.

51 { return index_; }

References index_.

Referenced by edm::SubProcess::deleteLumiFromCache(), edm::EDLooperBase::doBeginLuminosityBlock(), edm::stream::EDAnalyzerAdaptor< T >::doBeginLuminosityBlock(), edm::stream::ProducingModuleAdaptor< T, M, B >::doBeginLuminosityBlock(), edm::SubProcess::doBeginLuminosityBlockAsync(), edm::EDLooperBase::doDuringLoop(), edm::EDLooperBase::doEndLuminosityBlock(), edm::stream::EDAnalyzerAdaptor< T >::doEndLuminosityBlock(), edm::stream::ProducingModuleAdaptor< T, M, B >::doEndLuminosityBlock(), edm::SubProcess::doEndLuminosityBlockAsync(), edm::stream::EDAnalyzerAdaptorBase::doStreamBeginLuminosityBlock(), edm::stream::ProducingModuleAdaptorBase< EDProducerBase >::doStreamBeginLuminosityBlock(), edm::SubProcess::doStreamBeginLuminosityBlockAsync(), edm::SubProcess::doStreamEndLuminosityBlockAsync(), edm::LuminosityBlockForOutput::index(), edm::LuminosityBlock::index(), BeautifulSoup.PageElement::insert(), edm::OccurrenceTraits< LuminosityBlockPrincipal, BranchActionGlobalBegin >::makeGlobalContext(), edm::OccurrenceTraits< LuminosityBlockPrincipal, BranchActionGlobalEnd >::makeGlobalContext(), edm::SubProcess::processAsync(), put(), edm::InputSource::readAndMergeLumi(), edm::InputSource::readLuminosityBlock(), edm::PoolSource::readLuminosityBlock_(), edm::OccurrenceTraits< LuminosityBlockPrincipal, BranchActionStreamBegin >::setStreamContext(), edm::OccurrenceTraits< LuminosityBlockPrincipal, BranchActionStreamEnd >::setStreamContext(), transitionIndex_(), edm::OutputModuleCommunicatorT< T >::writeLumiAsync(), edm::SubProcess::writeLumiAsync(), and edm::Schedule::writeLumiAsync().

◆ luminosityBlock()

LuminosityBlockNumber_t edm::LuminosityBlockPrincipal::luminosityBlock ( ) const
inline

◆ mergeAuxiliary()

void edm::LuminosityBlockPrincipal::mergeAuxiliary ( LuminosityBlockAuxiliary const &  aux)
inline

Definition at line 68 of file LuminosityBlockPrincipal.h.

68 { return aux_.mergeAuxiliary(aux); }

References aux(), aux_, and edm::LuminosityBlockAuxiliary::mergeAuxiliary().

◆ put() [1/2]

void edm::LuminosityBlockPrincipal::put ( BranchDescription const &  bd,
std::unique_ptr< WrapperBase edp 
) const

Definition at line 21 of file LuminosityBlockPrincipal.cc.

21  {
22  putOrMerge(bd, std::move(edp));
23  }

References eostools::move(), and edm::Principal::putOrMerge().

Referenced by edm::LuminosityBlock::commit_().

◆ put() [2/2]

void edm::LuminosityBlockPrincipal::put ( ProductResolverIndex  index,
std::unique_ptr< WrapperBase edp 
) const

Definition at line 25 of file LuminosityBlockPrincipal.cc.

25  {
26  auto phb = getProductResolverByIndex(index);
27  phb->putOrMergeProduct(std::move(edp));
28  }

References edm::Principal::getProductResolverByIndex(), index(), and eostools::move().

◆ run()

RunNumber_t edm::LuminosityBlockPrincipal::run ( ) const
inline

◆ runPrincipal() [1/2]

RunPrincipal& edm::LuminosityBlockPrincipal::runPrincipal ( )
inline

Definition at line 47 of file LuminosityBlockPrincipal.h.

47 { return *runPrincipal_; }

References runPrincipal_.

◆ runPrincipal() [2/2]

RunPrincipal const& edm::LuminosityBlockPrincipal::runPrincipal ( ) const
inline

◆ setAux()

void edm::LuminosityBlockPrincipal::setAux ( LuminosityBlockAuxiliary  iAux)
inline

Definition at line 63 of file LuminosityBlockPrincipal.h.

63 { aux_ = std::move(iAux); }

References aux_, and eostools::move().

◆ setEndTime()

void edm::LuminosityBlockPrincipal::setEndTime ( Timestamp const &  time)
inline

◆ setRunPrincipal()

void edm::LuminosityBlockPrincipal::setRunPrincipal ( std::shared_ptr< RunPrincipal rp)
inline

Definition at line 49 of file LuminosityBlockPrincipal.h.

49 { runPrincipal_ = rp; }

References runPrincipal_.

◆ transitionIndex_()

unsigned int edm::LuminosityBlockPrincipal::transitionIndex_ ( ) const
overrideprivatevirtual

Implements edm::EDProductGetter.

Definition at line 30 of file LuminosityBlockPrincipal.cc.

30 { return index().value(); }

References index(), and edm::LuminosityBlockIndex::value().

Member Data Documentation

◆ aux_

LuminosityBlockAuxiliary edm::LuminosityBlockPrincipal::aux_
private

◆ index_

LuminosityBlockIndex edm::LuminosityBlockPrincipal::index_
private

Definition at line 81 of file LuminosityBlockPrincipal.h.

Referenced by index().

◆ runPrincipal_

edm::propagate_const<std::shared_ptr<RunPrincipal> > edm::LuminosityBlockPrincipal::runPrincipal_
private

Definition at line 77 of file LuminosityBlockPrincipal.h.

Referenced by runPrincipal(), and setRunPrincipal().

edm::LuminosityBlockAuxiliary::run
RunNumber_t run() const
Definition: LuminosityBlockAuxiliary.h:35
edm::LuminosityBlockPrincipal::runPrincipal_
edm::propagate_const< std::shared_ptr< RunPrincipal > > runPrincipal_
Definition: LuminosityBlockPrincipal.h:77
deep_tau::DeepTauBase::BasicDiscriminator
BasicDiscriminator
Definition: DeepTauBase.h:115
edm::Principal::processHistory
ProcessHistory const & processHistory() const
Definition: Principal.h:141
edm::Principal::getProductResolverByIndex
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
Definition: Principal.cc:553
edm::LuminosityBlockPrincipal::aux
LuminosityBlockAuxiliary const & aux() const
Definition: LuminosityBlockPrincipal.h:64
edm::LuminosityBlockIndex::value
unsigned int value() const
Definition: LuminosityBlockIndex.h:47
edm::LuminosityBlockAuxiliary::mergeAuxiliary
void mergeAuxiliary(LuminosityBlockAuxiliary const &newAux)
Definition: LuminosityBlockAuxiliary.cc:15
edm::LuminosityBlockAuxiliary::setEndTime
void setEndTime(Timestamp const &time)
Definition: LuminosityBlockAuxiliary.h:44
edm::Principal::reader
DelayedReader * reader() const
Definition: Principal.h:187
edm::LuminosityBlockAuxiliary::id
LuminosityBlockID const & id() const
Definition: LuminosityBlockAuxiliary.h:36
edm::LuminosityBlockPrincipal::Base
Principal Base
Definition: LuminosityBlockPrincipal.h:34
edm::LuminosityBlockAuxiliary::processHistoryID
ProcessHistoryID const & processHistoryID() const
Definition: LuminosityBlockAuxiliary.h:32
edm::Principal::fillPrincipal
void fillPrincipal(DelayedReader *reader)
Definition: Principal.cc:393
edm::InLumi
Definition: BranchType.h:11
edm::LuminosityBlockAuxiliary::endTime
Timestamp const & endTime() const
Definition: LuminosityBlockAuxiliary.h:43
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::LuminosityBlockAuxiliary::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: LuminosityBlockAuxiliary.h:34
edm::LuminosityBlockPrincipal::index_
LuminosityBlockIndex index_
Definition: LuminosityBlockPrincipal.h:81
edm::LuminosityBlockPrincipal::aux_
LuminosityBlockAuxiliary aux_
Definition: LuminosityBlockPrincipal.h:79
edm::Principal::putOrMerge
void putOrMerge(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
Definition: Principal.cc:906
edm::LuminosityBlockPrincipal::index
LuminosityBlockIndex index() const
Definition: LuminosityBlockPrincipal.h:51
ntuplemaker.time
time
Definition: ntuplemaker.py:310
edm::LuminosityBlockAuxiliary::beginTime
Timestamp const & beginTime() const
Definition: LuminosityBlockAuxiliary.h:38