#include <EventPrincipal.h>
Classes | |
class | UnscheduledSentry |
Public Types | |
typedef EventAuxiliary | Auxiliary |
typedef Principal | Base |
typedef Base::ConstProductHolderPtr | ConstProductHolderPtr |
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 |
Public Attributes | |
signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)> | postModuleDelayedGetSignal_ |
signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)> | preModuleDelayedGetSignal_ |
Static Public Attributes | |
static int const | invalidBunchXing = EventAuxiliary::invalidBunchXing |
static int const | invalidStoreNumber = EventAuxiliary::invalidStoreNumber |
Private Member Functions | |
BranchID | pidToBid (ProductID const &pid) const |
virtual void | readFromSource_ (ProductHolderBase const &phb, ModuleCallingContext const *mcc) const override |
virtual unsigned int | transitionIndex_ () const override |
virtual bool | unscheduledFill (std::string const &moduleLabel, ModuleCallingContext const *mcc) const override |
Private Attributes | |
EventAuxiliary | aux_ |
boost::shared_ptr < BranchIDListHelper const > | branchIDListHelper_ |
BranchListIndexes | branchListIndexes_ |
std::map< BranchListIndex, ProcessIndex > | branchListIndexToProcessIndex_ |
EventSelectionIDVector | eventSelectionIDs_ |
boost::shared_ptr < LuminosityBlockPrincipal > | luminosityBlockPrincipal_ |
std::vector< std::string > | moduleLabelsRunning_ |
boost::shared_ptr < ProductProvenanceRetriever > | provRetrieverPtr_ |
StreamID | streamID_ |
boost::shared_ptr < UnscheduledHandler > | unscheduledHandler_ |
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 45 of file EventPrincipal.h.
Definition at line 47 of file EventPrincipal.h.
typedef Principal edm::EventPrincipal::Base |
Definition at line 48 of file EventPrincipal.h.
Definition at line 50 of file EventPrincipal.h.
edm::EventPrincipal::EventPrincipal | ( | boost::shared_ptr< ProductRegistry const > | reg, |
boost::shared_ptr< BranchIDListHelper const > | branchIDListHelper, | ||
ProcessConfiguration const & | pc, | ||
HistoryAppender * | historyAppender, | ||
unsigned int | streamIndex = 0 |
||
) |
Definition at line 24 of file EventPrincipal.cc.
|
inline |
Definition at line 59 of file EventPrincipal.h.
|
inline |
Definition at line 119 of file EventPrincipal.h.
References aux_.
Referenced by bunchCrossing(), ExperimentType(), fillEventPrincipal(), id(), isReal(), edm::isSameEvent(), edm::SubProcess::process(), edm::StreamSerializer::serializeEvent(), storeNumber(), time(), and edm::RootOutputFile::writeOne().
Definition at line 205 of file EventPrincipal.cc.
References branchIDListHelper_, branchListIndexToProcessIndex_, edm::hlt::Exception, i, edm::BranchID::isValid(), and edm::errors::NotFound.
Referenced by fillEventPrincipal(), and edm::Event::makeProductID().
BranchListIndexes const & edm::EventPrincipal::branchListIndexes | ( | ) | const |
Definition at line 304 of file EventPrincipal.cc.
References branchListIndexes_.
Referenced by fillEventPrincipal(), edm::SubProcess::process(), edm::StreamSerializer::serializeEvent(), and edm::RootOutputFile::writeOne().
|
inline |
Definition at line 111 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::bunchCrossing().
void edm::EventPrincipal::clearEventPrincipal | ( | ) |
Definition at line 43 of file EventPrincipal.cc.
References aux_, branchListIndexToProcessIndex_, edm::Principal::clearPrincipal(), luminosityBlockPrincipal_, moduleLabelsRunning_, provRetrieverPtr_, and unscheduledHandler_.
Referenced by edm::VectorInputSource::clearEventPrincipal(), and edm::SubProcess::process().
EventSelectionIDVector const & edm::EventPrincipal::eventSelectionIDs | ( | ) | const |
Definition at line 299 of file EventPrincipal.cc.
References eventSelectionIDs_.
Referenced by edm::Event::eventSelectionIDs(), fillEventPrincipal(), edm::SubProcess::process(), edm::StreamSerializer::serializeEvent(), and edm::RootOutputFile::writeOne().
|
inline |
Definition at line 107 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::experimentType().
void edm::EventPrincipal::fillEventPrincipal | ( | EventAuxiliary const & | aux, |
ProcessHistoryRegistry const & | processHistoryRegistry, | ||
DelayedReader * | reader = nullptr |
||
) |
Definition at line 85 of file EventPrincipal.cc.
References aux(), aux_, branchIDListHelper_, branchIDToProductID(), branchListIndexes_, branchListIndexToProcessIndex_, edm::Principal::fillPrincipal(), 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::process(), edm::StreamerInputSource::read(), edm::RootFile::readCurrentEvent(), LHESource::readEvent_(), and edm::ProducerSourceBase::readEvent_().
void edm::EventPrincipal::fillEventPrincipal | ( | EventAuxiliary const & | aux, |
ProcessHistoryRegistry const & | processHistoryRegistry, | ||
EventSelectionIDVector && | eventSelectionIDs, | ||
BranchListIndexes && | branchListIndexes | ||
) |
Definition at line 71 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 & | provRetriever, | ||
DelayedReader * | reader = nullptr |
||
) |
Definition at line 54 of file EventPrincipal.cc.
References branchIDListHelper_, branchListIndexes(), branchListIndexes_, eventSelectionIDs(), eventSelectionIDs_, fillEventPrincipal(), and provRetrieverPtr_.
BasicHandle edm::EventPrincipal::getByProductID | ( | ProductID const & | oid | ) | const |
Definition at line 244 of file EventPrincipal.cc.
References edm::Principal::getProductHolder(), edm::makeHandleExceptionFactory(), pidToBid(), edm::errors::ProductNotFound, ntuplemaker::status, and edm::throwProductDeletedException().
Referenced by edm::Event::getByProductID_(), and getIt().
|
virtual |
Reimplemented from edm::Principal.
Definition at line 278 of file EventPrincipal.cc.
References getByProductID(), and edm::BasicHandle::wrapperHolder().
Provenance edm::EventPrincipal::getProvenance | ( | ProductID const & | pid, |
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 283 of file EventPrincipal.cc.
References pidToBid().
Referenced by edm::Event::getProvenance(), and edm::RootOutputFile::insertAncestors().
|
inline |
Definition at line 95 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(), edm::DataMixingPileupCopy::addPileupInfo(), edm::DataMixingSiPixelWorker::addSiPixelPileups(), edm::DataMixingSiStripWorker::addSiStripPileups(), edm::DataMixingSiStripRawWorker::addSiStripPileups(), edm::DataMixingSiStripMCDigiWorker::addSiStripPileups(), edm::EDLooperBase::doDuringLoop(), edm::SecSourceAnalyzer::getBranches(), luminosityBlock(), edm::RecordEventID< T >::operator()(), edm::MixingModule::pileAllWorkers(), edm::DataMixingModule::pileWorker(), edm::OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >::preScheduleSignal(), edm::InputSource::readEvent(), edm::PoolSource::readEvent_(), edm::StreamSchedule::reportSkipped(), run(), edm::StreamerOutputModuleBase::serializeEvent(), edm::StreamSerializer::serializeEvent(), edm::OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >::setStreamContext(), edm::AsciiOutputModule::write(), FRDEventOutputModule< Consumer >::write(), edm::GetProductCheckerOutputModule::write(), edm::PoolOutputModule::write(), and edm::RootOutputFile::writeOne().
|
inline |
Definition at line 103 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::isRealData().
|
inline |
Definition at line 125 of file EventPrincipal.h.
References id(), and edm::EventID::luminosityBlock().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::PoolSource::readEvent_(), edm::StreamerOutputModuleBase::serializeEvent(), RawEventOutputModuleForBU< Consumer >::write(), and FRDEventOutputModule< Consumer >::write().
|
inline |
Definition at line 79 of file EventPrincipal.h.
References luminosityBlockPrincipal_.
Referenced by edm::EDLooperBase::doDuringLoop(), and runPrincipal().
|
inline |
Definition at line 83 of file EventPrincipal.h.
References luminosityBlockPrincipal_.
|
inline |
Definition at line 87 of file EventPrincipal.h.
References luminosityBlockPrincipal_.
|
inline |
Definition at line 164 of file EventPrincipal.h.
References productProvenanceRetrieverPtr(), and provRetrieverPtr_.
Referenced by edm::PoolSource::readEvent_().
Definition at line 196 of file EventPrincipal.cc.
References branchIDListHelper_, branchListIndexes_, edm::hlt::Exception, edm::ProductID::isValid(), edm::productIDToBranchID(), and edm::errors::ProductNotFound.
Referenced by getByProductID(), and getProvenance().
|
inline |
Definition at line 135 of file EventPrincipal.h.
References provRetrieverPtr_.
Referenced by fillEventPrincipal(), edm::RootOutputFile::insertAncestors(), mergeProvenanceRetrievers(), edm::SubProcess::process(), put(), putOnRead(), and edm::ProvenanceCheckerOutputModule::write().
void edm::EventPrincipal::put | ( | BranchDescription const & | bd, |
WrapperOwningHolder const & | edp, | ||
ProductProvenance const & | productProvenance | ||
) |
Definition at line 132 of file EventPrincipal.cc.
References edm::BranchDescription::branchID(), edm::Principal::checkUniquenessAndType(), edm::hlt::Exception, edm::Principal::getExistingProduct(), edm::errors::InsertFailure, edm::WrapperHolder::isValid(), productProvenanceRetrieverPtr(), and edm::ProductHolderBase::putProduct().
Referenced by edm::Event::commit_aux(), FedRawDataInputSource::read(), and LHESource::readEvent_().
void edm::EventPrincipal::putOnRead | ( | BranchDescription const & | bd, |
void const * | product, | ||
ProductProvenance const & | productProvenance | ||
) |
Definition at line 153 of file EventPrincipal.cc.
References edm::BranchDescription::branchID(), edm::Principal::checkUniquenessAndType(), edm::Principal::getExistingProduct(), edm::ProductData::getInterface(), edm::BranchDescription::produced(), edm::ProductHolderBase::productData(), productProvenanceRetrieverPtr(), and edm::ProductHolderBase::putProduct().
Referenced by edm::StreamerInputSource::read().
|
overrideprivatevirtual |
Reimplemented from edm::Principal.
Definition at line 169 of file EventPrincipal.cc.
References edm::ProductHolderBase::branchDescription(), edm::Principal::checkUniquenessAndType(), edm::signalslot::Signal< T >::emit(), edm::ProductData::getInterface(), edm::getProduct(), edm::ModuleCallingContext::getStreamContext(), postModuleDelayedGetSignal_, preModuleDelayedGetSignal_, edm::BranchDescription::produced(), edm::ProductHolderBase::product(), edm::ProductHolderBase::productData(), edm::ProductHolderBase::productUnavailable(), edm::ProductHolderBase::putProduct(), and edm::Principal::reader().
|
inline |
Definition at line 129 of file EventPrincipal.h.
References id(), and edm::EventID::run().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::PoolSource::readEvent_(), and FRDEventOutputModule< Consumer >::write().
RunPrincipal const & edm::EventPrincipal::runPrincipal | ( | ) | const |
Definition at line 127 of file EventPrincipal.cc.
References luminosityBlockPrincipal(), and edm::LuminosityBlockPrincipal::runPrincipal().
void edm::EventPrincipal::setLuminosityBlockPrincipal | ( | boost::shared_ptr< LuminosityBlockPrincipal > const & | lbp | ) |
Definition at line 114 of file EventPrincipal.cc.
References luminosityBlockPrincipal_.
Referenced by edm::SubProcess::process().
void edm::EventPrincipal::setRunAndLumiNumber | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 119 of file EventPrincipal.cc.
References aux_, edm::EventID::event(), event(), edm::EventAuxiliary::id(), and luminosityBlockPrincipal_.
void edm::EventPrincipal::setUnscheduledHandler | ( | boost::shared_ptr< UnscheduledHandler > | iHandler | ) |
Definition at line 289 of file EventPrincipal.cc.
References unscheduledHandler_.
Referenced by edm::WorkerManager::setupOnDemandSystem().
|
inline |
Definition at line 115 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::storeNumber().
|
inline |
Definition at line 123 of file EventPrincipal.h.
References streamID_.
Referenced by edm::stream::EDFilterAdaptorBase::doEvent(), edm::stream::EDProducerAdaptorBase::doEvent(), edm::stream::EDAnalyzerAdaptorBase::doEvent(), edm::SubProcess::process(), and edm::PoolSource::readEvent_().
|
inline |
Definition at line 99 of file EventPrincipal.h.
References aux(), and edm::EventAuxiliary::time().
Referenced by edm::EDLooperBase::doDuringLoop(), edm::OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >::preScheduleSignal(), edm::InputSource::readEvent(), edm::OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >::setStreamContext(), and edm::AsciiOutputModule::write().
|
overrideprivatevirtual |
Implements edm::EDProductGetter.
Definition at line 229 of file EventPrincipal.cc.
References streamID_, and edm::StreamID::value().
|
overrideprivatevirtual |
Implements edm::Principal.
Definition at line 309 of file EventPrincipal.cc.
References edm::signalslot::Signal< T >::emit(), edm::hlt::Exception, edm::find_in_all(), edm::ModuleCallingContext::getStreamContext(), i, edm::errors::LogicError, moduleLabelsRunning_, postModuleDelayedGetSignal_, preModuleDelayedGetSignal_, and unscheduledHandler_.
boost::shared_ptr< UnscheduledHandler > edm::EventPrincipal::unscheduledHandler | ( | ) | const |
Definition at line 294 of file EventPrincipal.cc.
References unscheduledHandler_.
Referenced by edm::getUnscheduledHandler().
|
private |
Definition at line 200 of file EventPrincipal.h.
Referenced by aux(), clearEventPrincipal(), fillEventPrincipal(), and setRunAndLumiNumber().
|
private |
Definition at line 214 of file EventPrincipal.h.
Referenced by branchIDToProductID(), fillEventPrincipal(), and pidToBid().
|
private |
Definition at line 216 of file EventPrincipal.h.
Referenced by branchListIndexes(), fillEventPrincipal(), and pidToBid().
|
private |
Definition at line 218 of file EventPrincipal.h.
Referenced by branchIDToProductID(), clearEventPrincipal(), and fillEventPrincipal().
|
private |
Definition at line 212 of file EventPrincipal.h.
Referenced by eventSelectionIDs(), and fillEventPrincipal().
|
static |
Definition at line 51 of file EventPrincipal.h.
|
static |
Definition at line 52 of file EventPrincipal.h.
|
private |
Definition at line 202 of file EventPrincipal.h.
Referenced by clearEventPrincipal(), luminosityBlockPrincipal(), luminosityBlockPrincipalPtrValid(), setLuminosityBlockPrincipal(), and setRunAndLumiNumber().
|
mutableprivate |
Definition at line 210 of file EventPrincipal.h.
Referenced by clearEventPrincipal(), and unscheduledFill().
signalslot::Signal<void(StreamContext const&, ModuleCallingContext const&)> edm::EventPrincipal::postModuleDelayedGetSignal_ |
Definition at line 171 of file EventPrincipal.h.
Referenced by readFromSource_(), and unscheduledFill().
signalslot::Signal<void(StreamContext const&, ModuleCallingContext const&)> edm::EventPrincipal::preModuleDelayedGetSignal_ |
Definition at line 170 of file EventPrincipal.h.
Referenced by readFromSource_(), and unscheduledFill().
|
private |
Definition at line 205 of file EventPrincipal.h.
Referenced by clearEventPrincipal(), fillEventPrincipal(), mergeProvenanceRetrievers(), and productProvenanceRetrieverPtr().
|
private |
Definition at line 220 of file EventPrincipal.h.
Referenced by streamID(), and transitionIndex_().
|
private |
Definition at line 208 of file EventPrincipal.h.
Referenced by clearEventPrincipal(), setUnscheduledHandler(), unscheduledFill(), and unscheduledHandler().