#include <RunPrincipal.h>
Public Types | |
typedef RunAuxiliary | Auxiliary |
typedef Principal | Base |
enum | ShouldWriteRun { kUninitialized, kNo, kYes } |
Public Types inherited from edm::Principal | |
typedef std::vector< BasicHandle > | BasicHandleVec |
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< ProductResolverBase > | SharedProductPtr |
typedef ProductResolverCollection::size_type | size_type |
Private Member Functions | |
unsigned int | transitionIndex_ () const override |
Private Attributes | |
RunAuxiliary | aux_ |
RunIndex | index_ |
ProcessHistoryID | m_reducedHistoryID |
edm::propagate_const< std::unique_ptr< MergeableRunProductMetadata > > | mergeableRunProductMetadataPtr_ |
ShouldWriteRun | shouldWriteRun_ = kUninitialized |
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) |
ProductResolverBase * | getExistingProduct (BranchID const &branchID) |
ProductResolverBase const * | getExistingProduct (BranchID const &branchID) const |
ProductResolverBase const * | getExistingProduct (ProductResolverBase const &phb) const |
void | put_ (BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const |
Definition at line 34 of file RunPrincipal.h.
Definition at line 36 of file RunPrincipal.h.
typedef Principal edm::RunPrincipal::Base |
Definition at line 37 of file RunPrincipal.h.
Enumerator | |
---|---|
kUninitialized | |
kNo | |
kYes |
Definition at line 85 of file RunPrincipal.h.
edm::RunPrincipal::RunPrincipal | ( | std::shared_ptr< ProductRegistry const > | reg, |
ProcessConfiguration const & | pc, | ||
HistoryAppender * | historyAppender, | ||
unsigned int | iRunIndex, | ||
bool | isForPrimaryProcess = true , |
||
MergeableRunProductProcesses const * | mergeableRunProductProcesses = nullptr |
||
) |
Definition at line 11 of file RunPrincipal.cc.
References mergeableRunProductMetadataPtr_.
|
override |
Definition at line 23 of file RunPrincipal.cc.
|
inline |
Definition at line 59 of file RunPrincipal.h.
References aux_.
Referenced by beginTime(), edm::SubProcess::doBeginRunAsync(), endTime(), id(), mergeAuxiliary(), edm::PoolSource::readRun_(), and run().
|
inline |
Definition at line 67 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::beginTime().
Referenced by edm::EDLooperBase::doBeginRun(), EcalSignalGenerator< EEDigitizerTraits >::initializeEvent(), edm::OccurrenceTraits< RunPrincipal, BranchActionGlobalBegin >::makeGlobalContext(), and edm::OccurrenceTraits< RunPrincipal, BranchActionStreamBegin >::setStreamContext().
|
inline |
Definition at line 69 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::endTime().
Referenced by edm::EDLooperBase::doEndRun(), edm::EventProcessor::endRunAsync(), edm::OccurrenceTraits< RunPrincipal, BranchActionGlobalEnd >::makeGlobalContext(), edm::OccurrenceTraits< RunPrincipal, BranchActionStreamEnd >::setStreamContext(), edm::OutputModuleCommunicatorT< T >::writeRunAsync(), and edm::Schedule::writeRunAsync().
void edm::RunPrincipal::fillRunPrincipal | ( | ProcessHistoryRegistry const & | processHistoryRegistry, |
DelayedReader * | reader = nullptr |
||
) |
Definition at line 25 of file RunPrincipal.cc.
References aux_, edm::Principal::fillPrincipal(), edm::ProcessHistoryRegistry::getMapped(), m_reducedHistoryID, mergeableRunProductMetadataPtr_, edm::RunAuxiliary::processHistoryID(), dumpMFGeometry_cfg::prod, edm::Principal::reader(), and edm::ProcessHistoryRegistry::reducedProcessHistoryID().
Referenced by dqmservices::DQMProtobufReader::readRun_(), edmtest::PutOrMergeTestSource::readRun_(), LH5Source::readRun_(), LHESource::readRun_(), edm::RootFile::readRun_(), DQMRootSource::readRun_(), and edm::InputSource::readRun_().
|
inline |
Definition at line 65 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::id().
Referenced by DQMRootSource::readRun_().
|
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 56 of file RunPrincipal.h.
References index_.
Referenced by edm::SubProcess::clearRunPrincipal(), edm::EDLooperBase::doBeginLuminosityBlock(), edm::stream::EDAnalyzerAdaptor< T >::doBeginLuminosityBlock(), edm::stream::ProducingModuleAdaptor< T, M, B >::doBeginLuminosityBlock(), edm::SubProcess::doBeginLuminosityBlockAsync(), edm::EDLooperBase::doBeginRun(), edm::stream::EDAnalyzerAdaptor< T >::doBeginRun(), edm::stream::ProducingModuleAdaptor< T, M, B >::doBeginRun(), edm::SubProcess::doBeginRunAsync(), edm::EDLooperBase::doDuringLoop(), edm::EDLooperBase::doEndLuminosityBlock(), edm::stream::EDAnalyzerAdaptor< T >::doEndLuminosityBlock(), edm::stream::ProducingModuleAdaptor< T, M, B >::doEndLuminosityBlock(), edm::EDLooperBase::doEndRun(), edm::stream::EDAnalyzerAdaptor< T >::doEndRun(), edm::stream::ProducingModuleAdaptor< T, M, B >::doEndRun(), edm::SubProcess::doEndRunAsync(), edm::stream::EDAnalyzerAdaptorBase::doStreamBeginRun(), edm::stream::ProducingModuleAdaptorBase< EDProducerBase >::doStreamBeginRun(), edm::SubProcess::doStreamBeginRunAsync(), edm::SubProcess::doStreamEndRunAsync(), edm::RunForOutput::index(), edm::Run::index(), edm::OccurrenceTraits< RunPrincipal, BranchActionGlobalBegin >::makeGlobalContext(), edm::OccurrenceTraits< RunPrincipal, BranchActionGlobalEnd >::makeGlobalContext(), edm::OccurrenceTraits< LuminosityBlockPrincipal, BranchActionGlobalBegin >::makeGlobalContext(), edm::OccurrenceTraits< LuminosityBlockPrincipal, BranchActionGlobalEnd >::makeGlobalContext(), put(), edm::InputSource::readAndMergeRun(), edm::InputSource::readRun(), 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 >::writeLumiAsync(), edm::Schedule::writeLumiAsync(), edm::OutputModuleCommunicatorT< T >::writeRunAsync(), edm::SubProcess::writeRunAsync(), and edm::Schedule::writeRunAsync().
|
inline |
Definition at line 81 of file RunPrincipal.h.
References mergeableRunProductMetadataPtr_.
Referenced by edm::RootFile::readRun_(), and edm::EventProcessor::writeLumiAsync().
|
inline |
Definition at line 73 of file RunPrincipal.h.
References aux(), aux_, and edm::RunAuxiliary::mergeAuxiliary().
Referenced by edm::EventProcessor::readAndMergeRun().
void edm::RunPrincipal::preReadFile | ( | ) |
Definition at line 57 of file RunPrincipal.cc.
References mergeableRunProductMetadataPtr_.
void edm::RunPrincipal::put | ( | BranchDescription const & | bd, |
std::unique_ptr< WrapperBase > | edp | ||
) | const |
Definition at line 35 of file RunPrincipal.cc.
References eostools::move(), and edm::Principal::put_().
Referenced by edm::Run::commit_(), and LH5Source::putRunInfoProduct().
void edm::RunPrincipal::put | ( | ProductResolverIndex | index, |
std::unique_ptr< WrapperBase > | edp | ||
) | const |
Definition at line 39 of file RunPrincipal.cc.
References runTheMatrix::const, edm::Principal::getProductResolverByIndex(), index(), and eostools::move().
void edm::RunPrincipal::putOrMerge | ( | BranchDescription const & | bd, |
std::unique_ptr< WrapperBase > | edp | ||
) | const |
Definition at line 44 of file RunPrincipal.cc.
References cms::cuda::assert(), edm::BranchDescription::branchID(), runTheMatrix::const, Exception, edm::Principal::getExistingProduct(), edm::errors::InsertFailure, eostools::move(), and dumpMFGeometry_cfg::prod.
Referenced by LHESource::putRunInfoProduct(), and edmtest::PutOrMergeTestSource::readRun_().
|
inline |
Definition at line 63 of file RunPrincipal.h.
References m_reducedHistoryID.
|
inline |
Definition at line 61 of file RunPrincipal.h.
References aux(), and edm::RunAuxiliary::run().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::EDLooperBase::doBeginRun(), edm::EDLooperBase::doEndRun(), edm::EventProcessor::endRunAsync(), 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 >::writeRunAsync(), and edm::Schedule::writeRunAsync().
|
inline |
|
inline |
Definition at line 71 of file RunPrincipal.h.
References aux_, edm::RunAuxiliary::setEndTime(), and hcalRecHitTable_cff::time.
Referenced by edm::EventProcessor::endRunAsync().
|
inline |
Definition at line 87 of file RunPrincipal.h.
References shouldWriteRun_, and relativeConstraints::value.
Referenced by edm::RootFile::readRun_().
|
inline |
Definition at line 86 of file RunPrincipal.h.
References shouldWriteRun_.
Referenced by edm::RootFile::readRun_(), and edm::EventProcessor::writeRunAsync().
|
overrideprivatevirtual |
Implements edm::EDProductGetter.
Definition at line 55 of file RunPrincipal.cc.
References index(), and edm::RunIndex::value().
|
private |
Definition at line 92 of file RunPrincipal.h.
Referenced by aux(), fillRunPrincipal(), mergeAuxiliary(), setAux(), and setEndTime().
|
private |
Definition at line 94 of file RunPrincipal.h.
Referenced by index().
|
private |
Definition at line 93 of file RunPrincipal.h.
Referenced by fillRunPrincipal(), and reducedProcessHistoryID().
|
private |
Definition at line 99 of file RunPrincipal.h.
Referenced by fillRunPrincipal(), mergeableRunProductMetadata(), preReadFile(), and RunPrincipal().
|
private |
Definition at line 101 of file RunPrincipal.h.
Referenced by setShouldWriteRun(), and shouldWriteRun().