#include <RunPrincipal.h>
Public Types | |
typedef RunAuxiliary | Auxiliary |
typedef Principal | Base |
Public Types inherited from edm::Principal | |
typedef std::vector< BasicHandle > | BasicHandleVec |
typedef unsigned long | CacheIdentifier_t |
typedef boost::filter_iterator < FilledProductPtr, ProductHolderCollection::const_iterator > | const_iterator |
typedef ProductHolderBase const * | ConstProductHolderPtr |
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 |
Private Member Functions | |
virtual bool | isComplete_ () const override |
void | resolveProductImmediate (ProductHolderBase const &phb) const |
virtual unsigned int | transitionIndex_ () const override |
virtual bool | unscheduledFill (std::string const &, ModuleCallingContext const *mcc) const override |
Private Attributes | |
boost::shared_ptr< RunAuxiliary > | aux_ |
bool | complete_ |
RunIndex | index_ |
ProcessHistoryID | m_reducedHistoryID |
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 31 of file RunPrincipal.h.
Definition at line 33 of file RunPrincipal.h.
typedef Principal edm::RunPrincipal::Base |
Definition at line 34 of file RunPrincipal.h.
edm::RunPrincipal::RunPrincipal | ( | boost::shared_ptr< RunAuxiliary > | aux, |
boost::shared_ptr< ProductRegistry const > | reg, | ||
ProcessConfiguration const & | pc, | ||
HistoryAppender * | historyAppender, | ||
unsigned int | iRunIndex | ||
) |
Definition at line 11 of file RunPrincipal.cc.
|
inline |
Definition at line 42 of file RunPrincipal.h.
|
inline |
Definition at line 57 of file RunPrincipal.h.
References aux_.
Referenced by edm::SubProcess::beginRun(), beginTime(), endTime(), id(), edm::PoolSource::readRun_(), run(), and edm::RootOutputFile::writeRun().
|
inline |
Definition at line 73 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::beginTime().
Referenced by edm::EventProcessor::beginRun(), edm::EDLooperBase::doBeginRun(), edm::OccurrenceTraits< RunPrincipal, BranchActionGlobalBegin >::makeGlobalContext(), edm::OccurrenceTraits< RunPrincipal, BranchActionStreamBegin >::setStreamContext(), and DQMRootOutputModule::writeRun().
|
inline |
Definition at line 77 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::endTime().
Referenced by edm::EDLooperBase::doEndRun(), edm::EventProcessor::endRun(), edm::OccurrenceTraits< RunPrincipal, BranchActionGlobalEnd >::makeGlobalContext(), edm::OccurrenceTraits< RunPrincipal, BranchActionStreamEnd >::setStreamContext(), edm::OutputModuleCommunicatorT< T >::writeRun(), and DQMRootOutputModule::writeRun().
void edm::RunPrincipal::fillRunPrincipal | ( | ProcessHistoryRegistry const & | processHistoryRegistry, |
DelayedReader * | reader = 0 |
||
) |
Definition at line 22 of file RunPrincipal.cc.
References aux_, complete_, edm::Principal::fillPrincipal(), m_reducedHistoryID, edm::Principal::processHistory(), parseEventContent::prod, edm::Principal::reader(), and edm::ProcessHistoryRegistry::reducedProcessHistoryID().
Referenced by dqmservices::DQMProtobufReader::readRun_(), LHESource::readRun_(), edm::RootFile::readRun_(), DQMRootSource::readRun_(), and edm::InputSource::readRun_().
|
inline |
Definition at line 69 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::id().
Referenced by DQMRootSource::readRun_(), edm::GetProductCheckerOutputModule::writeRun(), and DQMRootOutputModule::writeRun().
|
inline |
Multiple Runs may be processed simultaneously. The return value can be used to identify a particular Run. The value will range from 0 to one less than the maximum number of allowed simultaneous Runs. A particular value will be reused once the processing of the previous Run using that index has been completed.
Definition at line 53 of file RunPrincipal.h.
References index_.
Referenced by BeautifulSoup.PageElement::_invert(), edm::SubProcess::beginRun(), edm::EDLooperBase::doBeginLuminosityBlock(), edm::EDLooperBase::doBeginRun(), edm::EDLooperBase::doDuringLoop(), edm::EDLooperBase::doEndLuminosityBlock(), edm::EDLooperBase::doEndRun(), edm::stream::EDAnalyzerAdaptorBase::doStreamBeginRun(), edm::stream::ProducingModuleAdaptorBase< T >::doStreamBeginRun(), edm::Run::index(), edm::OccurrenceTraits< RunPrincipal, BranchActionGlobalBegin >::makeGlobalContext(), edm::OccurrenceTraits< RunPrincipal, BranchActionGlobalEnd >::makeGlobalContext(), edm::OccurrenceTraits< LuminosityBlockPrincipal, BranchActionGlobalBegin >::makeGlobalContext(), edm::OccurrenceTraits< LuminosityBlockPrincipal, BranchActionGlobalEnd >::makeGlobalContext(), edm::PoolSource::readRun_(), edm::OccurrenceTraits< RunPrincipal, BranchActionStreamBegin >::setStreamContext(), edm::OccurrenceTraits< RunPrincipal, BranchActionStreamEnd >::setStreamContext(), edm::OccurrenceTraits< LuminosityBlockPrincipal, BranchActionStreamBegin >::setStreamContext(), edm::OccurrenceTraits< LuminosityBlockPrincipal, BranchActionStreamEnd >::setStreamContext(), transitionIndex_(), edm::OutputModuleCommunicatorT< T >::writeLumi(), and edm::OutputModuleCommunicatorT< T >::writeRun().
|
inlineoverrideprivatevirtual |
Reimplemented from edm::Principal.
Definition at line 103 of file RunPrincipal.h.
References complete_.
|
inline |
void edm::RunPrincipal::put | ( | BranchDescription const & | bd, |
WrapperOwningHolder const & | edp | ||
) |
Definition at line 34 of file RunPrincipal.cc.
References edm::BranchDescription::branchID(), edm::hlt::Exception, edm::Principal::getExistingProduct(), edm::errors::InsertFailure, edm::WrapperHolder::isValid(), and edm::Principal::putOrMerge().
Referenced by LHESource::beginRun(), edm::Run::commit_(), and LHESource::endRun().
void edm::RunPrincipal::readImmediate | ( | ) | const |
Definition at line 52 of file RunPrincipal.cc.
References edm::ProductHolderBase::branchDescription(), parseEventContent::prod, edm::BranchDescription::produced(), edm::ProductHolderBase::productUnavailable(), resolveProductImmediate(), and edm::ProductHolderBase::singleProduct().
Referenced by edm::RootFile::readRun_().
|
inline |
Definition at line 65 of file RunPrincipal.h.
References m_reducedHistoryID.
Referenced by edm::SubProcess::beginRun().
|
private |
Definition at line 64 of file RunPrincipal.cc.
References edm::ProductHolderBase::branchDescription(), edm::ProductData::getInterface(), edm::getProduct(), edm::BranchDescription::produced(), edm::ProductHolderBase::productData(), edm::Principal::putOrMerge(), and edm::Principal::reader().
Referenced by readImmediate().
|
inline |
Definition at line 61 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::run().
Referenced by edm::EventProcessor::beginRun(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::EDLooperBase::doBeginRun(), edm::EDLooperBase::doEndRun(), edm::EventProcessor::endRun(), edm::OccurrenceTraits< RunPrincipal, BranchActionGlobalBegin >::makeGlobalContext(), edm::OccurrenceTraits< RunPrincipal, BranchActionGlobalEnd >::makeGlobalContext(), edm::PoolSource::readRun_(), edm::OccurrenceTraits< RunPrincipal, BranchActionStreamBegin >::setStreamContext(), edm::OccurrenceTraits< RunPrincipal, BranchActionStreamEnd >::setStreamContext(), edm::OutputModuleCommunicatorT< T >::writeRun(), and edm::RootOutputFile::writeRun().
|
inline |
Definition at line 97 of file RunPrincipal.h.
References complete_.
Referenced by edm::InputSource::doEndRun().
|
inline |
Definition at line 81 of file RunPrincipal.h.
References aux_.
Referenced by edm::InputSource::doEndRun().
|
inline |
Definition at line 89 of file RunPrincipal.h.
|
overrideprivatevirtual |
Implements edm::EDProductGetter.
Definition at line 79 of file RunPrincipal.cc.
References index(), and edm::RunIndex::value().
|
inlineoverrideprivatevirtual |
|
private |
Definition at line 112 of file RunPrincipal.h.
Referenced by aux(), fillRunPrincipal(), mergeAuxiliary(), and setEndTime().
|
private |
Definition at line 116 of file RunPrincipal.h.
Referenced by fillRunPrincipal(), isComplete_(), and setComplete().
|
private |
Definition at line 114 of file RunPrincipal.h.
Referenced by index().
|
private |
Definition at line 113 of file RunPrincipal.h.
Referenced by fillRunPrincipal(), and reducedProcessHistoryID().