CMS 3D CMS Logo

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

#include <ProcessBlockPrincipal.h>

Inheritance diagram for edm::ProcessBlockPrincipal:
edm::Principal edm::EDProductGetter

Public Member Functions

void fillProcessBlockPrincipal (std::string const &processName, DelayedReader *reader=nullptr)
 
unsigned int index () const
 
 ProcessBlockPrincipal (std::shared_ptr< ProductRegistry const >, ProcessConfiguration const &, bool isForPrimaryProcess=true)
 
std::string const & processName () const
 
void put (ProductResolverIndex index, std::unique_ptr< WrapperBase > edp) const
 
- 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 final
 

Private Attributes

std::string processName_
 

Additional Inherited Members

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

Author
W. David Dagenhart, created 19 March, 2020

Definition at line 22 of file ProcessBlockPrincipal.h.

Constructor & Destructor Documentation

◆ ProcessBlockPrincipal()

edm::ProcessBlockPrincipal::ProcessBlockPrincipal ( std::shared_ptr< ProductRegistry const >  reg,
ProcessConfiguration const &  pc,
bool  isForPrimaryProcess = true 
)

Definition at line 10 of file ProcessBlockPrincipal.cc.

13  : Principal(reg, reg->productLookup(InProcess), pc, InProcess, nullptr, isForPrimaryProcess) {}

Member Function Documentation

◆ fillProcessBlockPrincipal()

void edm::ProcessBlockPrincipal::fillProcessBlockPrincipal ( std::string const &  processName,
DelayedReader reader = nullptr 
)

◆ index()

unsigned int edm::ProcessBlockPrincipal::index ( ) const
inline

Definition at line 35 of file ProcessBlockPrincipal.h.

35 { return 0; }

Referenced by BeautifulSoup.PageElement::insert(), and put().

◆ processName()

std::string const& edm::ProcessBlockPrincipal::processName ( ) const
inline

Definition at line 30 of file ProcessBlockPrincipal.h.

30 { return processName_; }

References processName_.

Referenced by edm::SubProcess::doBeginProcessBlockAsync().

◆ put()

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

Definition at line 20 of file ProcessBlockPrincipal.cc.

20  {
21  auto phb = getProductResolverByIndex(index);
22  phb->putProduct(std::move(edp));
23  }

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

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

◆ transitionIndex_()

unsigned int edm::ProcessBlockPrincipal::transitionIndex_ ( ) const
finalprivatevirtual

Implements edm::EDProductGetter.

Definition at line 25 of file ProcessBlockPrincipal.cc.

25  {
26  // Concurrent ProcessBlocks does not make any sense so just always
27  // return 0 here.
28  return 0;
29  }

Member Data Documentation

◆ processName_

std::string edm::ProcessBlockPrincipal::processName_
private

Definition at line 40 of file ProcessBlockPrincipal.h.

Referenced by fillProcessBlockPrincipal(), and processName().

edm::ProcessBlockPrincipal::index
unsigned int index() const
Definition: ProcessBlockPrincipal.h:35
edm::Principal::getProductResolverByIndex
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
Definition: Principal.cc:553
edm::InProcess
Definition: BranchType.h:11
edm::Principal::reader
DelayedReader * reader() const
Definition: Principal.h:187
edm::ProcessBlockPrincipal::processName_
std::string processName_
Definition: ProcessBlockPrincipal.h:40
edm::Principal::fillPrincipal
void fillPrincipal(DelayedReader *reader)
Definition: Principal.cc:393
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::Principal::Principal
Principal(std::shared_ptr< ProductRegistry const > reg, std::shared_ptr< ProductResolverIndexHelper const > productLookup, ProcessConfiguration const &pc, BranchType bt, HistoryAppender *historyAppender, bool isForPrimaryProcess=true)
Definition: Principal.cc:121