#include <RunPrincipal.h>
Public Types | |
typedef RunAuxiliary | Auxiliary |
typedef Principal | Base |
Public Types inherited from edm::Principal | |
typedef std::vector< BasicHandle > | BasicHandleVec |
typedef boost::filter_iterator < FilledProductPtr, ProductHolderCollection::const_iterator > | const_iterator |
typedef ProductHolderBase const * | ConstProductPtr |
typedef std::string | ProcessName |
typedef ProcessHistory::const_iterator | ProcessNameConstIterator |
typedef std::vector < boost::shared_ptr < ProductHolderBase > > | ProductHolderCollection |
typedef boost::shared_ptr < ProductHolderBase > | SharedProductPtr |
typedef ProductHolderCollection::size_type | size_type |
Public Member Functions | |
RunAuxiliary const & | aux () const |
Timestamp const & | beginTime () const |
Timestamp const & | endTime () const |
void | fillRunPrincipal (DelayedReader *reader=0) |
RunID const & | id () const |
void | mergeAuxiliary (RunAuxiliary const &aux) |
void | put (ConstBranchDescription const &bd, WrapperOwningHolder const &edp) |
void | readImmediate () const |
RunNumber_t | run () const |
RunPrincipal (boost::shared_ptr< RunAuxiliary > aux, boost::shared_ptr< ProductRegistry const > reg, ProcessConfiguration const &pc, HistoryAppender *historyAppender) | |
void | setComplete () |
void | setEndTime (Timestamp const &time) |
void | setUnscheduledHandler (boost::shared_ptr< UnscheduledHandler >) |
~RunPrincipal () | |
Public Member Functions inherited from edm::Principal | |
void | addAliasedProduct (boost::shared_ptr< ConstBranchDescription > bd) |
void | addInputProduct (boost::shared_ptr< ConstBranchDescription > bd) |
void | addScheduledProduct (boost::shared_ptr< ConstBranchDescription > bd) |
void | addSourceProduct (boost::shared_ptr< ConstBranchDescription > bd) |
void | addUnscheduledProduct (boost::shared_ptr< ConstBranchDescription > bd) |
void | adjustIndexesAfterProductRegistryAddition () |
bool | adjustToNewProductRegistry (ProductRegistry const ®) |
const_iterator | begin () const |
BranchType const & | branchType () const |
void | clearPrincipal () |
void | deleteProduct (BranchID const &id) |
const_iterator | end () const |
void | fillPrincipal (ProcessHistoryID const &hist, DelayedReader *reader) |
ProductData const * | findProductByTag (TypeID const &typeID, InputTag const &tag) const |
void | getAllProvenance (std::vector< Provenance const * > &provenances) const |
BasicHandle | getByLabel (KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag) const |
BasicHandle | getByLabel (KindOfType kindOfType, TypeID const &typeID, std::string const &label, std::string const &instance, std::string const &process) const |
BasicHandle | getByToken (KindOfType kindOfType, TypeID const &typeID, ProductHolderIndex index, bool skipCurrentProcess, bool &ambiguous) const |
OutputHandle | getForOutput (BranchID const &bid, bool getProd) const |
void | getManyByType (TypeID const &typeID, BasicHandleVec &results) const |
ConstProductPtr | getProductByIndex (ProductHolderIndex const &oid, bool resolveProd, bool fillOnDemand) const |
ConstProductPtr | getProductHolder (BranchID const &oid, bool resolveProd, bool fillOnDemand) const |
Provenance | getProvenance (BranchID const &bid) const |
bool | isComplete () const |
std::vector< unsigned int > const & | lookupProcessOrder () const |
Principal (boost::shared_ptr< ProductRegistry const > reg, boost::shared_ptr< ProductHolderIndexHelper const > productLookup, ProcessConfiguration const &pc, BranchType bt, HistoryAppender *historyAppender) | |
ProcessConfiguration const & | processConfiguration () const |
ProcessHistory const & | processHistory () const |
ProcessHistoryID const & | processHistoryID () const |
EDProductGetter const * | prodGetter () const |
ProductHolderIndexHelper const & | productLookup () const |
ProductRegistry const & | productRegistry () const |
DelayedReader * | reader () const |
void | recombine (Principal &other, std::vector< BranchID > const &bids) |
void | resolveProduct (ProductHolderBase const &phb, bool fillOnDemand) const |
size_t | size () const |
virtual | ~Principal () |
Public Member Functions inherited from edm::EDProductGetter | |
EDProductGetter () | |
virtual | ~EDProductGetter () |
Private Member Functions | |
virtual bool | isComplete_ () const override |
void | resolveProductImmediate (ProductHolderBase const &phb) const |
virtual bool | unscheduledFill (std::string const &) const override |
Private Attributes | |
boost::shared_ptr< RunAuxiliary > | aux_ |
bool | complete_ |
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::auto_ptr< ProductHolderBase > phb) |
void | addProductOrThrow (std::auto_ptr< ProductHolderBase > phb) |
void | checkUniquenessAndType (WrapperOwningHolder const &prod, ProductHolderBase const *productHolder) const |
ProductHolderBase * | getExistingProduct (BranchID const &branchID) |
ProductHolderBase * | getExistingProduct (ProductHolderBase const &phb) |
void | putOrMerge (WrapperOwningHolder const &prod, ProductHolderBase const *productHolder) const |
void | putOrMerge (WrapperOwningHolder const &prod, ProductProvenance &prov, ProductHolderBase *productHolder) |
Definition at line 28 of file RunPrincipal.h.
Definition at line 30 of file RunPrincipal.h.
typedef Principal edm::RunPrincipal::Base |
Definition at line 31 of file RunPrincipal.h.
edm::RunPrincipal::RunPrincipal | ( | boost::shared_ptr< RunAuxiliary > | aux, |
boost::shared_ptr< ProductRegistry const > | reg, | ||
ProcessConfiguration const & | pc, | ||
HistoryAppender * | historyAppender | ||
) |
Definition at line 11 of file RunPrincipal.cc.
|
inline |
Definition at line 38 of file RunPrincipal.h.
|
inline |
Definition at line 42 of file RunPrincipal.h.
References aux_.
Referenced by edm::SubProcess::beginRun(), beginTime(), endTime(), id(), run(), and edm::RootOutputFile::writeRun().
|
inline |
Definition at line 54 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::beginTime().
Referenced by edm::EventProcessor::beginRun(), edm::OccurrenceTraits< RunPrincipal, BranchActionBegin >::preScheduleSignal(), and DQMRootOutputModule::writeRun().
|
inline |
Definition at line 58 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::endTime().
Referenced by edm::EventProcessor::endRun(), edm::OccurrenceTraits< RunPrincipal, BranchActionEnd >::preScheduleSignal(), and DQMRootOutputModule::writeRun().
void edm::RunPrincipal::fillRunPrincipal | ( | DelayedReader * | reader = 0 | ) |
Definition at line 21 of file RunPrincipal.cc.
References aux_, complete_, edm::Principal::fillPrincipal(), edm::Principal::processHistoryID(), parseEventContent::prod, and edm::Principal::reader().
|
inline |
Definition at line 50 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::id().
Referenced by edm::OccurrenceTraits< RunPrincipal, BranchActionBegin >::preScheduleSignal(), edm::OccurrenceTraits< RunPrincipal, BranchActionEnd >::preScheduleSignal(), edm::GetProductCheckerOutputModule::writeRun(), and DQMRootOutputModule::writeRun().
|
inlineoverrideprivatevirtual |
Reimplemented from edm::Principal.
Definition at line 84 of file RunPrincipal.h.
References complete_.
|
inline |
void edm::RunPrincipal::put | ( | ConstBranchDescription const & | bd, |
WrapperOwningHolder const & | edp | ||
) |
Definition at line 32 of file RunPrincipal.cc.
References edm::ConstBranchDescription::branchID(), edm::hlt::Exception, edm::Principal::getExistingProduct(), edm::errors::InsertFailure, edm::WrapperHolder::isValid(), and edm::Principal::putOrMerge().
Referenced by edm::Run::commit_().
void edm::RunPrincipal::readImmediate | ( | ) | const |
Definition at line 50 of file RunPrincipal.cc.
References edm::ProductHolderBase::branchDescription(), parseEventContent::prod, edm::ConstBranchDescription::produced(), edm::ProductHolderBase::productUnavailable(), resolveProductImmediate(), and edm::ProductHolderBase::singleProduct().
|
private |
Definition at line 62 of file RunPrincipal.cc.
References edm::ProductHolderBase::branchDescription(), edm::ProductData::getInterface(), edm::getProduct(), edm::ConstBranchDescription::produced(), edm::ProductHolderBase::productData(), edm::Principal::putOrMerge(), and edm::Principal::reader().
Referenced by readImmediate().
|
inline |
Definition at line 46 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::run().
Referenced by edm::EventProcessor::beginRun(), Types.LuminosityBlockID::cppID(), edm::EventProcessor::endRun(), and edm::PoolOutputModule::writeRun().
|
inline |
Definition at line 78 of file RunPrincipal.h.
References complete_.
Referenced by edm::InputSource::doEndRun().
|
inline |
Definition at line 62 of file RunPrincipal.h.
References aux_.
Referenced by edm::InputSource::doEndRun().
|
inline |
Definition at line 70 of file RunPrincipal.h.
|
inlineoverrideprivatevirtual |
|
private |
Definition at line 91 of file RunPrincipal.h.
Referenced by aux(), fillRunPrincipal(), mergeAuxiliary(), and setEndTime().
|
private |
Definition at line 93 of file RunPrincipal.h.
Referenced by fillRunPrincipal(), isComplete_(), and setComplete().