#include <OccurrenceForOutput.h>
Public Member Functions | |
void | getAllProvenance (std::vector< Provenance const * > &provenances) const |
void | getAllStableProvenance (std::vector< StableProvenance const * > &provenances) const |
BasicHandle | getByToken (EDGetToken token, TypeID const &typeID) const |
template<typename PROD > | |
bool | getByToken (EDGetToken token, Handle< PROD > &result) const |
template<typename PROD > | |
bool | getByToken (EDGetTokenT< PROD > token, Handle< PROD > &result) const |
template<typename PROD > | |
Handle< PROD > | getHandle (EDGetTokenT< PROD > token) const |
Provenance | getProvenance (BranchID const &theID) const |
OccurrenceForOutput (Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd) | |
virtual ProcessHistory const & | processHistory () const |
ProcessHistoryID const & | processHistoryID () const |
void | setConsumer (EDConsumerBase const *iConsumer) |
size_t | size () const |
virtual | ~OccurrenceForOutput () |
Protected Member Functions | |
Principal const & | principal () const |
Private Member Functions | |
ModuleCallingContext const * | moduleCallingContext () const |
Private Attributes | |
ModuleCallingContext const * | moduleCallingContext_ |
PrincipalGetAdapter | provRecorder_ |
Friends | |
class | edmtest::TestOutputModule |
Definition at line 45 of file OccurrenceForOutput.h.
edm::OccurrenceForOutput::OccurrenceForOutput | ( | Principal const & | ep, |
ModuleDescription const & | md, | ||
ModuleCallingContext const * | moduleCallingContext, | ||
bool | isAtEnd | ||
) |
Definition at line 14 of file OccurrenceForOutput.cc.
|
virtual |
Definition at line 20 of file OccurrenceForOutput.cc.
void edm::OccurrenceForOutput::getAllProvenance | ( | std::vector< Provenance const * > & | provenances | ) | const |
Definition at line 32 of file OccurrenceForOutput.cc.
References edm::Principal::getAllProvenance(), edm::PrincipalGetAdapter::principal(), and provRecorder_.
void edm::OccurrenceForOutput::getAllStableProvenance | ( | std::vector< StableProvenance const * > & | provenances | ) | const |
Definition at line 36 of file OccurrenceForOutput.cc.
References edm::Principal::getAllStableProvenance(), edm::PrincipalGetAdapter::principal(), and provRecorder_.
BasicHandle edm::OccurrenceForOutput::getByToken | ( | EDGetToken | token, |
TypeID const & | typeID | ||
) | const |
Definition at line 44 of file OccurrenceForOutput.cc.
References edm::PrincipalGetAdapter::getByToken_(), edm::PrincipalGetAdapter::isComplete(), moduleCallingContext_, edm::PRODUCT_TYPE, provRecorder_, mps_fire::result, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Referenced by SummaryTableOutputBranches::fill(), EventStringOutputBranches::fill(), TriggerOutputBranches::fill(), TableOutputBranches::fill(), edm::RootOutputFile::fillBranches(), edm::StreamerOutputModuleBase::getTriggerResults(), evf::EvFOutputModule::getTriggerResults(), evf::GlobalEvFOutputModule::getTriggerResults(), edm::detail::TriggerResultsBasedEventSelector::wantEvent(), FRDOutputModule::write(), edm::ProvenanceCheckerOutputModule::write(), RawEventOutputModuleForBU< Consumer >::write(), and NanoAODOutputModule::writeRun().
bool edm::OccurrenceForOutput::getByToken | ( | EDGetToken | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 89 of file OccurrenceForOutput.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), PROD, edm::PRODUCT_TYPE, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().
bool edm::OccurrenceForOutput::getByToken | ( | EDGetTokenT< PROD > | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 102 of file OccurrenceForOutput.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), PROD, edm::PRODUCT_TYPE, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Handle< PROD > edm::OccurrenceForOutput::getHandle | ( | EDGetTokenT< PROD > | token | ) | const |
Definition at line 115 of file OccurrenceForOutput.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), PROD, edm::PRODUCT_TYPE, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Referenced by edm::StreamerOutputModuleBase::beginRun(), evf::EvFOutputModule::beginRun(), and evf::GlobalEvFOutputModule::globalBeginRun().
Provenance edm::OccurrenceForOutput::getProvenance | ( | BranchID const & | theID | ) | const |
Definition at line 28 of file OccurrenceForOutput.cc.
References edm::Principal::getProvenance(), edm::PrincipalGetAdapter::principal(), and provRecorder_.
Referenced by edm::AsciiOutputModule::write(), and edm::ProvenanceCheckerOutputModule::write().
|
inlineprivate |
Definition at line 81 of file OccurrenceForOutput.h.
References moduleCallingContext_.
|
protected |
Definition at line 24 of file OccurrenceForOutput.cc.
References edm::PrincipalGetAdapter::principal(), and provRecorder_.
Referenced by edm::EventForOutput::eventPrincipal(), edm::LuminosityBlockForOutput::luminosityBlockPrincipal(), processHistoryID(), and edm::RunForOutput::runPrincipal().
|
virtual |
Definition at line 40 of file OccurrenceForOutput.cc.
References edm::PrincipalGetAdapter::processHistory(), and provRecorder_.
Referenced by edm::AsciiOutputModule::write(), NanoAODOutputModule::write(), edm::RootOutputFile::writeLuminosityBlock(), NanoAODOutputModule::writeLuminosityBlock(), DQMRootOutputModule::writeLuminosityBlock(), edm::RootOutputFile::writeOne(), NanoAODOutputModule::writeRun(), edm::RootOutputFile::writeRun(), and DQMRootOutputModule::writeRun().
ProcessHistoryID const & edm::OccurrenceForOutput::processHistoryID | ( | ) | const |
Definition at line 26 of file OccurrenceForOutput.cc.
References principal(), and edm::Principal::processHistoryID().
Referenced by edm::RootOutputFile::writeLuminosityBlock(), DQMRootOutputModule::writeLuminosityBlock(), edm::RootOutputFile::writeOne(), edm::RootOutputFile::writeRun(), and DQMRootOutputModule::writeRun().
void edm::OccurrenceForOutput::setConsumer | ( | EDConsumerBase const * | iConsumer | ) |
Definition at line 22 of file OccurrenceForOutput.cc.
References provRecorder_, and edm::PrincipalGetAdapter::setConsumer().
Referenced by edm::global::OutputModuleBase::doAcquire(), edm::core::OutputModuleCore::doBeginLuminosityBlock(), edm::core::OutputModuleCore::doBeginRun(), edm::core::OutputModuleCore::doEndLuminosityBlock(), edm::core::OutputModuleCore::doEndRun(), edm::core::OutputModuleCore::doEvent_(), edm::SubProcess::doEventAsync(), edm::core::OutputModuleCore::doWriteLuminosityBlock(), edm::core::OutputModuleCore::doWriteProcessBlock(), edm::core::OutputModuleCore::doWriteRun(), and edm::core::OutputModuleCore::prePrefetchSelection().
size_t edm::OccurrenceForOutput::size | ( | void | ) | const |
Definition at line 42 of file OccurrenceForOutput.cc.
References edm::PrincipalGetAdapter::principal(), provRecorder_, and edm::Principal::size().
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
|
friend |
Definition at line 80 of file OccurrenceForOutput.h.
|
private |
Definition at line 85 of file OccurrenceForOutput.h.
Referenced by getByToken(), getHandle(), and moduleCallingContext().
|
private |
Definition at line 83 of file OccurrenceForOutput.h.
Referenced by getAllProvenance(), getAllStableProvenance(), getByToken(), getHandle(), getProvenance(), principal(), processHistory(), setConsumer(), and size().