#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 const int | invalidBunchXing = EventAuxiliary::invalidBunchXing |
static const int | invalidStoreNumber = EventAuxiliary::invalidStoreNumber |
Private Member Functions | |
void | changedIndexes_ () final |
void | commonFillEventPrincipal (EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader) |
edm::ThinnedAssociation const * | getThinnedAssociation (edm::BranchID const &branchID) const |
BranchID | pidToBid (ProductID const &pid) const |
std::shared_ptr< ProductProvenanceRetriever > & | provRetrieverPtr () |
std::shared_ptr< ProductProvenanceRetriever const > | provRetrieverPtr () const |
unsigned int | transitionIndex_ () const override |
void | updateBranchListIndexes (BranchListIndexes &&) |
bool | wasBranchListIndexesChangedFromInput (BranchListIndexes const &) const |
Private Attributes | |
EventAuxiliary | aux_ |
std::shared_ptr< BranchIDListHelper const > | branchIDListHelper_ |
BranchListIndexes | branchListIndexes_ |
std::vector< 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 31 of file EventPrincipal.cc.
References cms::cuda::assert(), dumpMFGeometry_cfg::prod, productProvenanceRetrieverPtr(), and thinnedAssociationsHelper_.
|
inlineoverride |
Definition at line 61 of file EventPrincipal.h.
|
inline |
Definition at line 104 of file EventPrincipal.h.
References aux_.
Referenced by bunchCrossing(), commonFillEventPrincipal(), ExperimentType(), fillEventPrincipal(), id(), isReal(), edm::SubProcess::processAsync(), storeNumber(), and time().
Definition at line 230 of file EventPrincipal.cc.
References branchIDListHelper_, branchListIndexToProcessIndex_, Exception, edm::BranchID::isValid(), SiStripPI::max, edm::errors::NotFound, FastTimerService_cff::range, and findQualityFiles::v.
Referenced by edm::Event::makeProductID(), and updateBranchListIndexes().
BranchListIndexes const & edm::EventPrincipal::branchListIndexes | ( | ) | const |
Definition at line 361 of file EventPrincipal.cc.
References branchListIndexes_.
Referenced by edm::EventForOutput::branchListIndexes(), fillEventPrincipal(), edm::SubProcess::processAsync(), and updateBranchListIndexes().
|
inline |
Definition at line 100 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::bunchCrossing().
|
finalprivatevirtual |
Reimplemented from edm::Principal.
Definition at line 256 of file EventPrincipal.cc.
References edm::Principal::productRegistry(), and provRetrieverPtr_.
void edm::EventPrincipal::clearEventPrincipal | ( | ) |
Definition at line 57 of file EventPrincipal.cc.
References aux_, edm::Principal::clearPrincipal(), and provRetrieverPtr_.
|
private |
Definition at line 117 of file EventPrincipal.cc.
References aux(), aux_, edm::EventAuxiliary::event(), Exception, edm::Principal::fillPrincipal(), edm::invalidEventNumber, edm::errors::LogicError, edm::Principal::processHistory(), edm::EventAuxiliary::processHistoryID(), edm::Principal::processHistoryID(), edm::Principal::reader(), and edm::EventAuxiliary::setProcessHistoryID().
Referenced by fillEventPrincipal().
EventSelectionIDVector const & edm::EventPrincipal::eventSelectionIDs | ( | ) | const |
Definition at line 359 of file EventPrincipal.cc.
References eventSelectionIDs_.
Referenced by edm::EventForOutput::eventSelectionIDs(), edm::Event::eventSelectionIDs(), fillEventPrincipal(), and edm::SubProcess::processAsync().
|
inline |
Definition at line 98 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::experimentType().
void edm::EventPrincipal::fillEventPrincipal | ( | EventAuxiliary const & | aux, |
ProcessHistory const * | processHistory, | ||
DelayedReader * | reader = nullptr |
||
) |
Definition at line 104 of file EventPrincipal.cc.
References aux(), branchIDListHelper_, branchListIndexes_, commonFillEventPrincipal(), eostools::move(), edm::Principal::processHistory(), edm::Principal::reader(), and updateBranchListIndexes().
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent(), edm::RawInputSource::makeEvent(), edm::StreamerInputSource::read(), edm::RootFile::readCurrentEvent(), edm::TestSource::readEvent_(), LHESource::readEvent_(), and LH5Source::readEvent_().
void edm::EventPrincipal::fillEventPrincipal | ( | EventAuxiliary const & | aux, |
ProcessHistory const * | processHistory, | ||
EventSelectionIDVector | eventSelectionIDs, | ||
BranchListIndexes | branchListIndexes | ||
) |
Definition at line 88 of file EventPrincipal.cc.
References aux(), branchIDListHelper_, branchListIndexes(), commonFillEventPrincipal(), eventSelectionIDs(), eventSelectionIDs_, eostools::move(), edm::Principal::processHistory(), updateBranchListIndexes(), and wasBranchListIndexesChangedFromInput().
void edm::EventPrincipal::fillEventPrincipal | ( | EventAuxiliary const & | aux, |
ProcessHistory const * | processHistory, | ||
EventSelectionIDVector | eventSelectionIDs, | ||
BranchListIndexes | branchListIndexes, | ||
ProductProvenanceRetriever const & | provRetriever, | ||
DelayedReader * | reader = nullptr , |
||
bool | deepCopyRetriever = true |
||
) |
Definition at line 65 of file EventPrincipal.cc.
References aux(), branchIDListHelper_, branchListIndexes(), commonFillEventPrincipal(), eventSelectionIDs(), eventSelectionIDs_, eostools::move(), edm::Principal::processHistory(), provRetrieverPtr_, edm::Principal::reader(), updateBranchListIndexes(), and wasBranchListIndexesChangedFromInput().
BasicHandle edm::EventPrincipal::getByProductID | ( | ProductID const & | oid | ) | const |
Definition at line 268 of file EventPrincipal.cc.
References data, edm::Principal::getProductResolver(), edm::makeHandleExceptionFactory(), pidToBid(), edm::errors::ProductNotFound, L1TObjectsTimingClient_cff::resolution, and edm::throwProductDeletedException().
Referenced by edm::Event::getByProductID_(), and getIt().
|
overridevirtual |
Implements edm::EDProductGetter.
Definition at line 302 of file EventPrincipal.cc.
References getByProductID(), and edm::BasicHandle::wrapper().
Referenced by getThinnedProduct(), and getThinnedProducts().
Provenance edm::Principal::getProvenance |
Definition at line 824 of file Principal.cc.
Provenance edm::EventPrincipal::getProvenance | ( | ProductID const & | pid, |
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 354 of file EventPrincipal.cc.
References pidToBid().
Referenced by edm::Event::getProvenance().
|
private |
Definition at line 363 of file EventPrincipal.cc.
References watchdog::const, data, edm::WrapperBase::dynamicTypeInfo(), Exception, edm::Principal::getProductResolver(), edm::errors::LogicError, edm::ProductData::wrapper(), and wrapper.
Referenced by getThinnedKeyFrom(), getThinnedProduct(), and getThinnedProducts().
|
overridevirtual |
Implements edm::EDProductGetter.
Definition at line 328 of file EventPrincipal.cc.
References cms::Exception::addContext(), TrackCollections2monitor_cff::func, getThinnedAssociation(), edm::detail::getThinnedKeyFrom_implementation(), crabWrapper::key, class-composition::parent, pidToBid(), runTheMatrix::ret, and thinnedAssociationsHelper_.
|
overridevirtual |
Implements edm::EDProductGetter.
Definition at line 304 of file EventPrincipal.cc.
References b, getIt(), getThinnedAssociation(), edm::detail::getThinnedProduct(), crabWrapper::key, AlCaHLTBitMon_ParallelJobs::p, pidToBid(), and thinnedAssociationsHelper_.
|
overridevirtual |
Implements edm::EDProductGetter.
Definition at line 315 of file EventPrincipal.cc.
References b, getIt(), getThinnedAssociation(), edm::detail::getThinnedProducts(), relativeConstraints::keys, AlCaHLTBitMon_ParallelJobs::p, pidToBid(), and thinnedAssociationsHelper_.
|
inline |
Definition at line 92 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::id().
Referenced by sistrip::SpyEventMatcher::addNextEventToMap(), edm::PreMixingPileupCopy::addPileupInfo(), PreMixingTrackingParticleWorker::addPileups(), PreMixingEcalWorker::addPileups(), PreMixingSiPixelWorker::addPileups(), PreMixingSiStripWorker::addPileups(), edm::EDLooperBase::doDuringLoop(), luminosityBlock(), edm::RecordEventID< T >::operator()(), edm::MixingModule::pileAllWorkers(), edm::PoolSource::readEvent_(), run(), edm::OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >::setStreamContext(), and edm::Path::workerFinished().
|
inline |
Definition at line 96 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::isRealData().
|
inline |
Definition at line 108 of file EventPrincipal.h.
References id(), and edm::EventID::luminosityBlock().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), and edm::PoolSource::readEvent_().
|
inline |
|
inline |
Definition at line 81 of file EventPrincipal.h.
References luminosityBlockPrincipal_.
Referenced by edm::EDLooperBase::doDuringLoop(), edm::SubProcess::processAsync(), and runPrincipal().
|
inline |
|
inline |
Definition at line 146 of file EventPrincipal.h.
References trackingPlots::other, and provRetrieverPtr_.
Referenced by edm::PoolSource::readEvent_().
Definition at line 223 of file EventPrincipal.cc.
References branchIDListHelper_, branchListIndexes_, Exception, edm::ProductID::isValid(), edm::productIDToBranchID(), and edm::errors::ProductNotFound.
Referenced by getByProductID(), getProvenance(), getThinnedKeyFrom(), getThinnedProduct(), and getThinnedProducts().
|
inline |
Definition at line 114 of file EventPrincipal.h.
References provRetrieverPtr_.
Referenced by EventPrincipal(), edm::SubProcess::processAsync(), edm::EventForOutput::productProvenanceRetrieverPtr(), put(), and putOnRead().
|
inlineprivate |
Definition at line 163 of file EventPrincipal.h.
References edm::get_underlying_safe(), and provRetrieverPtr_.
|
inlineprivate |
Definition at line 160 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 179 of file EventPrincipal.cc.
References cms::cuda::assert(), Exception, edm::Principal::getExistingProduct(), edm::errors::InsertFailure, edm::ProductProvenanceRetriever::insertIntoSet(), eostools::move(), and productProvenanceRetrieverPtr().
Referenced by FedRawDataInputSource::read(), LHESource::readEvent_(), and LH5Source::readEvent_().
void edm::EventPrincipal::put | ( | ProductResolverIndex | index, |
std::unique_ptr< WrapperBase > | edp, | ||
ParentageID | productProvenance | ||
) | const |
Definition at line 195 of file EventPrincipal.cc.
References cms::cuda::assert(), 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, | ||
std::optional< ProductProvenance > | productProvenance | ||
) | const |
Definition at line 210 of file EventPrincipal.cc.
References cms::cuda::assert(), edm::Principal::getExistingProduct(), edm::ProductProvenanceRetriever::insertIntoSet(), eostools::move(), and productProvenanceRetrieverPtr().
Referenced by edm::StreamerInputSource::read().
|
inline |
Definition at line 110 of file EventPrincipal.h.
References id(), and edm::EventID::run().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::OneLumiPoolSource::readEvent_(), edm::PoolSource::readEvent_(), and setRunAndLumiNumber().
RunPrincipal const & edm::EventPrincipal::runPrincipal | ( | ) | const |
Definition at line 177 of file EventPrincipal.cc.
References luminosityBlockPrincipal(), and edm::LuminosityBlockPrincipal::runPrincipal().
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
void edm::EventPrincipal::setLuminosityBlockPrincipal | ( | LuminosityBlockPrincipal * | lbp | ) |
void edm::EventPrincipal::setRunAndLumiNumber | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 170 of file EventPrincipal.cc.
References cms::cuda::assert(), aux_, edm::EventID::event(), edm::EventAuxiliary::id(), luminosityBlockPrincipal_, and run().
Referenced by edm::OneLumiPoolSource::readEvent_().
|
inline |
Definition at line 102 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::storeNumber().
|
inline |
Definition at line 106 of file EventPrincipal.h.
References streamID_.
Referenced by PreMixingDigiAccumulatorWorker::addPileups(), edm::SubProcess::processAsync(), edm::EventProcessor::processEventWithLooper(), FedRawDataInputSource::read(), edm::StreamerInputSource::read(), edm::RootFile::readCurrentEvent(), and edm::PoolSource::readEvent_().
|
inline |
Definition at line 94 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::time().
Referenced by edm::EDLooperBase::doDuringLoop(), and edm::OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >::setStreamContext().
|
overrideprivatevirtual |
Implements edm::EDProductGetter.
Definition at line 254 of file EventPrincipal.cc.
References streamID_, and edm::StreamID::value().
|
private |
Definition at line 140 of file EventPrincipal.cc.
References branchIDToProductID(), branchListIndexes(), branchListIndexes_, branchListIndexToProcessIndex_, SiStripPI::max, eostools::move(), and dumpMFGeometry_cfg::prod.
Referenced by fillEventPrincipal().
|
private |
Definition at line 130 of file EventPrincipal.cc.
References branchIDListHelper_, branchListIndexes_, edm::Principal::end(), and cond::serialization::equal().
Referenced by fillEventPrincipal().
|
private |
Definition at line 172 of file EventPrincipal.h.
Referenced by aux(), clearEventPrincipal(), commonFillEventPrincipal(), and setRunAndLumiNumber().
|
private |
Definition at line 181 of file EventPrincipal.h.
Referenced by branchIDToProductID(), fillEventPrincipal(), pidToBid(), and wasBranchListIndexesChangedFromInput().
|
private |
Definition at line 184 of file EventPrincipal.h.
Referenced by branchListIndexes(), fillEventPrincipal(), pidToBid(), updateBranchListIndexes(), and wasBranchListIndexesChangedFromInput().
|
private |
Definition at line 186 of file EventPrincipal.h.
Referenced by branchIDToProductID(), and updateBranchListIndexes().
|
private |
Definition at line 179 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 174 of file EventPrincipal.h.
Referenced by luminosityBlockPrincipal(), luminosityBlockPrincipalPtrValid(), setLuminosityBlockPrincipal(), and setRunAndLumiNumber().
|
private |
Definition at line 177 of file EventPrincipal.h.
Referenced by changedIndexes_(), clearEventPrincipal(), fillEventPrincipal(), mergeProvenanceRetrievers(), productProvenanceRetrieverPtr(), and provRetrieverPtr().
|
private |
Definition at line 188 of file EventPrincipal.h.
Referenced by streamID(), and transitionIndex_().
|
private |
Definition at line 182 of file EventPrincipal.h.
Referenced by EventPrincipal(), getThinnedKeyFrom(), getThinnedProduct(), and getThinnedProducts().