#include <EventPrincipal.h>
Public Types | |
typedef EventAuxiliary | Auxiliary |
typedef Principal | Base |
typedef Base::ConstProductResolverPtr | ConstProductResolverPtr |
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 |
Static Public Attributes | |
static int const | invalidBunchXing = EventAuxiliary::invalidBunchXing |
static int const | invalidStoreNumber = EventAuxiliary::invalidStoreNumber |
Private Member Functions | |
edm::ThinnedAssociation const * | getThinnedAssociation (edm::BranchID const &branchID) const |
BranchID | pidToBid (ProductID const &pid) const |
std::shared_ptr< ProductProvenanceRetriever const > | provRetrieverPtr () const |
std::shared_ptr< ProductProvenanceRetriever > & | provRetrieverPtr () |
unsigned int | transitionIndex_ () const override |
Private Attributes | |
EventAuxiliary | aux_ |
std::shared_ptr< BranchIDListHelper const > | branchIDListHelper_ |
BranchListIndexes | branchListIndexes_ |
std::map< BranchListIndex, ProcessIndex > | branchListIndexToProcessIndex_ |
EventSelectionIDVector | eventSelectionIDs_ |
edm::propagate_const< LuminosityBlockPrincipal * > | luminosityBlockPrincipal_ |
edm::propagate_const< std::shared_ptr< ProductProvenanceRetriever > > | provRetrieverPtr_ |
StreamID | streamID_ |
std::shared_ptr< ThinnedAssociationsHelper const > | thinnedAssociationsHelper_ |
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 | putOrMerge (BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const |
Definition at line 46 of file EventPrincipal.h.
Definition at line 48 of file EventPrincipal.h.
typedef Principal edm::EventPrincipal::Base |
Definition at line 49 of file EventPrincipal.h.
Definition at line 51 of file EventPrincipal.h.
edm::EventPrincipal::EventPrincipal | ( | std::shared_ptr< ProductRegistry const > | reg, |
std::shared_ptr< BranchIDListHelper const > | branchIDListHelper, | ||
std::shared_ptr< ThinnedAssociationsHelper const > | thinnedAssociationsHelper, | ||
ProcessConfiguration const & | pc, | ||
HistoryAppender * | historyAppender, | ||
unsigned int | streamIndex = 0 , |
||
bool | isForPrimaryProcess = true |
||
) |
Definition at line 30 of file EventPrincipal.cc.
References thinnedAssociationsHelper_.
|
inlineoverride |
Definition at line 62 of file EventPrincipal.h.
References aux(), branchListIndexes(), clearEventPrincipal(), eventSelectionIDs(), fillEventPrincipal(), and edm::Principal::reader().
|
inline |
Definition at line 124 of file EventPrincipal.h.
References aux_.
Referenced by bunchCrossing(), ExperimentType(), fillEventPrincipal(), id(), isReal(), edm::isSameEvent(), edm::SubProcess::processAsync(), storeNumber(), time(), and ~EventPrincipal().
Definition at line 222 of file EventPrincipal.cc.
References branchIDListHelper_, branchListIndexToProcessIndex_, Exception, mps_fire::i, edm::BranchID::isValid(), and edm::errors::NotFound.
Referenced by fillEventPrincipal(), edm::Event::makeProductID(), and productProvenanceRetrieverPtr().
BranchListIndexes const & edm::EventPrincipal::branchListIndexes | ( | ) | const |
Definition at line 420 of file EventPrincipal.cc.
References branchListIndexes_.
Referenced by edm::EventForOutput::branchListIndexes(), fillEventPrincipal(), edm::SubProcess::processAsync(), productProvenanceRetrieverPtr(), and ~EventPrincipal().
|
inline |
Definition at line 116 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::bunchCrossing().
void edm::EventPrincipal::clearEventPrincipal | ( | ) |
Definition at line 52 of file EventPrincipal.cc.
References aux_, branchListIndexToProcessIndex_, edm::Principal::clearPrincipal(), and provRetrieverPtr_.
Referenced by edm::VectorInputSource::clearEventPrincipal(), edm::SubProcess::processAsync(), and ~EventPrincipal().
EventSelectionIDVector const & edm::EventPrincipal::eventSelectionIDs | ( | ) | const |
Definition at line 415 of file EventPrincipal.cc.
References eventSelectionIDs_.
Referenced by edm::EventForOutput::eventSelectionIDs(), edm::Event::eventSelectionIDs(), fillEventPrincipal(), edm::SubProcess::processAsync(), productProvenanceRetrieverPtr(), and ~EventPrincipal().
|
inline |
Definition at line 112 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::experimentType().
void edm::EventPrincipal::fillEventPrincipal | ( | EventAuxiliary const & | aux, |
ProcessHistoryRegistry const & | processHistoryRegistry, | ||
DelayedReader * | reader = 0 |
||
) |
Definition at line 98 of file EventPrincipal.cc.
References aux(), aux_, branchIDListHelper_, branchIDToProductID(), branchListIndexes_, branchListIndexToProcessIndex_, edm::EventAuxiliary::event(), Exception, edm::Principal::fillPrincipal(), edm::invalidEventNumber, edm::errors::LogicError, edm::Principal::processHistory(), edm::EventAuxiliary::processHistoryID(), edm::Principal::processHistoryID(), parseEventContent::prod, productProvenanceRetrieverPtr(), edm::Principal::reader(), and edm::EventAuxiliary::setProcessHistoryID().
Referenced by fillEventPrincipal(), edm::RawInputSource::makeEvent(), edm::SubProcess::processAsync(), edm::StreamerInputSource::read(), edm::RootFile::readCurrentEvent(), edm::TestSource::readEvent_(), LHESource::readEvent_(), edm::ProducerSourceBase::readEvent_(), and ~EventPrincipal().
void edm::EventPrincipal::fillEventPrincipal | ( | EventAuxiliary const & | aux, |
ProcessHistoryRegistry const & | processHistoryRegistry, | ||
EventSelectionIDVector && | eventSelectionIDs, | ||
BranchListIndexes && | branchListIndexes | ||
) |
Definition at line 84 of file EventPrincipal.cc.
References branchIDListHelper_, branchListIndexes(), branchListIndexes_, eventSelectionIDs(), eventSelectionIDs_, and fillEventPrincipal().
void edm::EventPrincipal::fillEventPrincipal | ( | EventAuxiliary const & | aux, |
ProcessHistoryRegistry const & | processHistoryRegistry, | ||
EventSelectionIDVector && | eventSelectionIDs, | ||
BranchListIndexes && | branchListIndexes, | ||
ProductProvenanceRetriever const & | provRetriever, | ||
DelayedReader * | reader = 0 , |
||
bool | deepCopyRetriever = true |
||
) |
Definition at line 62 of file EventPrincipal.cc.
References branchIDListHelper_, branchListIndexes(), branchListIndexes_, eventSelectionIDs(), eventSelectionIDs_, fillEventPrincipal(), and provRetrieverPtr_.
BasicHandle edm::EventPrincipal::getByProductID | ( | ProductID const & | oid | ) | const |
Definition at line 261 of file EventPrincipal.cc.
References data, edm::Principal::getProductResolver(), edm::makeHandleExceptionFactory(), pidToBid(), edm::errors::ProductNotFound, fftjetproducer_cfi::resolution, and edm::throwProductDeletedException().
Referenced by edm::Event::getByProductID_(), getIt(), getThinnedProduct(), getThinnedProducts(), and productProvenanceRetrieverPtr().
|
overridevirtual |
Implements edm::EDProductGetter.
Definition at line 298 of file EventPrincipal.cc.
References getByProductID(), and edm::BasicHandle::wrapper().
Referenced by edm::StreamerInputSource::EventPrincipalHolder::getIt(), and productProvenanceRetrieverPtr().
Provenance edm::EventPrincipal::getProvenance | ( | ProductID const & | pid, |
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 409 of file EventPrincipal.cc.
References pidToBid().
Referenced by edm::Event::getProvenance(), and productProvenanceRetrieverPtr().
|
private |
Definition at line 425 of file EventPrincipal.cc.
References data, edm::WrapperBase::dynamicTypeInfo(), Exception, edm::Principal::getProductResolver(), edm::errors::LogicError, edm::Wrapper< T >::product(), edm::ProductData::wrapper(), and wrapper.
Referenced by getThinnedProduct(), getThinnedProducts(), and mergeProvenanceRetrievers().
|
overridevirtual |
Implements edm::EDProductGetter.
Definition at line 303 of file EventPrincipal.cc.
References getByProductID(), getThinnedAssociation(), edm::ThinnedAssociation::hasParentIndex(), edm::BasicHandle::isValid(), class-composition::parent, edm::ThinnedAssociation::parentCollectionID(), pidToBid(), thinnedAssociationsHelper_, edm::ThinnedAssociation::thinnedCollectionID(), and edm::BasicHandle::wrapper().
Referenced by edm::StreamerInputSource::EventPrincipalHolder::getThinnedProduct(), and productProvenanceRetrieverPtr().
|
overridevirtual |
Implements edm::EDProductGetter.
Definition at line 347 of file EventPrincipal.cc.
References getByProductID(), getThinnedAssociation(), edm::ThinnedAssociation::hasParentIndex(), edm::BasicHandle::isValid(), gen::k, SiStripPI::max, class-composition::parent, edm::ThinnedAssociation::parentCollectionID(), pidToBid(), thinnedAssociationsHelper_, edm::ThinnedAssociation::thinnedCollectionID(), and edm::BasicHandle::wrapper().
Referenced by edm::StreamerInputSource::EventPrincipalHolder::getThinnedProducts(), and productProvenanceRetrieverPtr().
|
inline |
Definition at line 100 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::id().
Referenced by edm::DataMixingEMWorker::addEMPileups(), edm::DataMixingEMDigiWorker::addEMPileups(), edm::DataMixingGeneralTrackWorker::addGeneralTrackPileups(), edm::DataMixingHcalWorker::addHcalPileups(), edm::DataMixingHcalDigiWorker::addHcalPileups(), edm::DataMixingHcalDigiWorkerProd::addHcalPileups(), edm::DataMixingMuonWorker::addMuonPileups(), sistrip::SpyEventMatcher::addNextEventToMap(), edm::PreMixingPileupCopy::addPileupInfo(), edm::DataMixingPileupCopy::addPileupInfo(), PreMixingTrackingParticleWorker::addPileups(), PreMixingEcalWorker::addPileups(), PreMixingSiPixelWorker::addPileups(), PreMixingSiStripWorker::addPileups(), edm::DataMixingSiPixelWorker::addSiPixelPileups(), edm::DataMixingSiStripWorker::addSiStripPileups(), edm::DataMixingSiStripRawWorker::addSiStripPileups(), edm::EDLooperBase::doDuringLoop(), edm::StreamSchedule::finishedPaths(), edm::SecSourceAnalyzer::getBranches(), luminosityBlock(), edm::RecordEventID< T >::operator()(), edm::MixingModule::pileAllWorkers(), edm::PreMixingModule::pileWorker(), edm::DataMixingModule::pileWorker(), edm::InputSource::readEvent(), edm::PoolSource::readEvent_(), edm::StreamSchedule::reportSkipped(), run(), edm::OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >::setStreamContext(), and edm::Path::workerFinished().
|
inline |
Definition at line 108 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::isRealData().
|
inline |
Definition at line 130 of file EventPrincipal.h.
References id(), and edm::EventID::luminosityBlock().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), and edm::PoolSource::readEvent_().
|
inline |
Definition at line 83 of file EventPrincipal.h.
References luminosityBlockPrincipal_.
Referenced by edm::EDLooperBase::doDuringLoop(), edm::SubProcess::processAsync(), and runPrincipal().
|
inline |
Definition at line 87 of file EventPrincipal.h.
References luminosityBlockPrincipal_.
|
inline |
Definition at line 91 of file EventPrincipal.h.
References luminosityBlockPrincipal_, run(), setLuminosityBlockPrincipal(), and setRunAndLumiNumber().
|
inline |
Definition at line 174 of file EventPrincipal.h.
References edm::Principal::getProvenance(), getThinnedAssociation(), pidToBid(), provRetrieverPtr(), provRetrieverPtr_, and transitionIndex_().
Referenced by edm::PoolSource::readEvent_().
Definition at line 213 of file EventPrincipal.cc.
References branchIDListHelper_, branchListIndexes_, Exception, edm::ProductID::isValid(), edm::productIDToBranchID(), and edm::errors::ProductNotFound.
Referenced by getByProductID(), getProvenance(), getThinnedProduct(), getThinnedProducts(), and mergeProvenanceRetrievers().
|
inline |
Definition at line 140 of file EventPrincipal.h.
References branchIDToProductID(), branchListIndexes(), eventSelectionIDs(), getByProductID(), getIt(), getProvenance(), getThinnedProduct(), getThinnedProducts(), crabWrapper::key, relativeConstraints::keys, sysUtil::pid, provRetrieverPtr_, put(), and putOnRead().
Referenced by fillEventPrincipal(), edm::PoolOutputModule::preActionBeforeRunEventAsync(), edm::SubProcess::processAsync(), edm::EventForOutput::productProvenanceRetrieverPtr(), put(), and putOnRead().
|
inlineprivate |
Definition at line 188 of file EventPrincipal.h.
References edm::get_underlying_safe(), and provRetrieverPtr_.
Referenced by mergeProvenanceRetrievers().
|
inlineprivate |
Definition at line 189 of file EventPrincipal.h.
References edm::get_underlying_safe(), and provRetrieverPtr_.
void edm::EventPrincipal::put | ( | BranchDescription const & | bd, |
std::unique_ptr< WrapperBase > | edp, | ||
ProductProvenance const & | productProvenance | ||
) | const |
Definition at line 157 of file EventPrincipal.cc.
References edm::BranchDescription::branchID(), Exception, edm::Principal::getExistingProduct(), edm::errors::InsertFailure, edm::ProductProvenanceRetriever::insertIntoSet(), eostools::move(), and productProvenanceRetrieverPtr().
Referenced by productProvenanceRetrieverPtr(), FedRawDataInputSource::read(), and LHESource::readEvent_().
void edm::EventPrincipal::put | ( | ProductResolverIndex | index, |
std::unique_ptr< WrapperBase > | edp, | ||
ParentageID | productProvenance | ||
) | const |
Definition at line 177 of file EventPrincipal.cc.
References Exception, edm::Principal::getProductResolverByIndex(), edm::errors::InsertFailure, edm::ProductProvenanceRetriever::insertIntoSet(), eostools::move(), and productProvenanceRetrieverPtr().
void edm::EventPrincipal::putOnRead | ( | BranchDescription const & | bd, |
std::unique_ptr< WrapperBase > | edp, | ||
ProductProvenance const * | productProvenance | ||
) | const |
Definition at line 197 of file EventPrincipal.cc.
References edm::BranchDescription::branchID(), edm::Principal::getExistingProduct(), edm::ProductProvenanceRetriever::insertIntoSet(), eostools::move(), edm::BranchDescription::produced(), and productProvenanceRetrieverPtr().
Referenced by productProvenanceRetrieverPtr(), and edm::StreamerInputSource::read().
|
inline |
Definition at line 134 of file EventPrincipal.h.
References id(), edm::EventID::run(), and runPrincipal().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), luminosityBlockPrincipalPtrValid(), edm::OneLumiPoolSource::readEvent_(), and edm::PoolSource::readEvent_().
RunPrincipal const & edm::EventPrincipal::runPrincipal | ( | ) | const |
Definition at line 152 of file EventPrincipal.cc.
References luminosityBlockPrincipal(), and edm::LuminosityBlockPrincipal::runPrincipal().
Referenced by run().
void edm::EventPrincipal::setLuminosityBlockPrincipal | ( | LuminosityBlockPrincipal * | lbp | ) |
Definition at line 139 of file EventPrincipal.cc.
References luminosityBlockPrincipal_.
Referenced by luminosityBlockPrincipalPtrValid(), and edm::SubProcess::processAsync().
void edm::EventPrincipal::setRunAndLumiNumber | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 144 of file EventPrincipal.cc.
References aux_, edm::EventID::event(), edm::EventAuxiliary::id(), and luminosityBlockPrincipal_.
Referenced by luminosityBlockPrincipalPtrValid(), and edm::OneLumiPoolSource::readEvent_().
|
inline |
Definition at line 120 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::storeNumber().
|
inline |
Definition at line 128 of file EventPrincipal.h.
References streamID_.
Referenced by PreMixingDigiAccumulatorWorker::addPileups(), edm::stream::EDProducerAdaptorBase::doAcquire(), edm::stream::EDFilterAdaptorBase::doAcquire(), edm::stream::EDFilterAdaptorBase::doEvent(), edm::stream::EDProducerAdaptorBase::doEvent(), edm::stream::EDAnalyzerAdaptorBase::doEvent(), edm::SubProcess::processAsync(), edm::EventProcessor::processEventWithLooper(), FedRawDataInputSource::read(), edm::StreamerInputSource::read(), edm::RootFile::readCurrentEvent(), edm::InputSource::readEvent(), and edm::PoolSource::readEvent_().
|
inline |
Definition at line 104 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::time().
Referenced by edm::EDLooperBase::doDuringLoop(), edm::InputSource::readEvent(), and edm::OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >::setStreamContext().
|
overrideprivatevirtual |
Implements edm::EDProductGetter.
Definition at line 246 of file EventPrincipal.cc.
References streamID_, and edm::StreamID::value().
Referenced by mergeProvenanceRetrievers().
|
private |
Definition at line 193 of file EventPrincipal.h.
Referenced by aux(), clearEventPrincipal(), fillEventPrincipal(), and setRunAndLumiNumber().
|
private |
Definition at line 202 of file EventPrincipal.h.
Referenced by branchIDToProductID(), fillEventPrincipal(), and pidToBid().
|
private |
Definition at line 205 of file EventPrincipal.h.
Referenced by branchListIndexes(), fillEventPrincipal(), and pidToBid().
|
private |
Definition at line 207 of file EventPrincipal.h.
Referenced by branchIDToProductID(), clearEventPrincipal(), and fillEventPrincipal().
|
private |
Definition at line 200 of file EventPrincipal.h.
Referenced by eventSelectionIDs(), and fillEventPrincipal().
|
static |
Definition at line 52 of file EventPrincipal.h.
|
static |
Definition at line 53 of file EventPrincipal.h.
|
private |
Definition at line 195 of file EventPrincipal.h.
Referenced by luminosityBlockPrincipal(), luminosityBlockPrincipalPtrValid(), setLuminosityBlockPrincipal(), and setRunAndLumiNumber().
|
private |
Definition at line 198 of file EventPrincipal.h.
Referenced by clearEventPrincipal(), fillEventPrincipal(), mergeProvenanceRetrievers(), productProvenanceRetrieverPtr(), and provRetrieverPtr().
|
private |
Definition at line 209 of file EventPrincipal.h.
Referenced by streamID(), and transitionIndex_().
|
private |
Definition at line 203 of file EventPrincipal.h.
Referenced by EventPrincipal(), getThinnedProduct(), and getThinnedProducts().