#include <OccurrenceForOutput.h>
Public Member Functions | |
void | getAllProvenance (std::vector< Provenance const * > &provenances) const |
void | getAllStableProvenance (std::vector< StableProvenance const * > &provenances) const |
bool | getByToken (EDGetToken token, TypeID const &typeID, BasicHandle &result) const |
template<typename PROD > | |
bool | getByToken (EDGetToken token, Handle< PROD > &result) const |
template<typename PROD > | |
bool | getByToken (EDGetTokenT< PROD > token, Handle< PROD > &result) const |
Provenance | getProvenance (BranchID const &theID) const |
OccurrenceForOutput (Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *) | |
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.
OccurrenceForOutput::OccurrenceForOutput | ( | Principal const & | ep, |
ModuleDescription const & | md, | ||
ModuleCallingContext const * | moduleCallingContext | ||
) |
Definition at line 15 of file OccurrenceForOutput.cc.
|
virtual |
Definition at line 21 of file OccurrenceForOutput.cc.
void OccurrenceForOutput::getAllProvenance | ( | std::vector< Provenance const * > & | provenances | ) | const |
Definition at line 45 of file OccurrenceForOutput.cc.
References edm::Principal::getAllProvenance(), edm::PrincipalGetAdapter::principal(), and provRecorder_.
Referenced by edm::AsciiOutputModule::write().
void OccurrenceForOutput::getAllStableProvenance | ( | std::vector< StableProvenance const * > & | provenances | ) | const |
Definition at line 50 of file OccurrenceForOutput.cc.
References edm::Principal::getAllStableProvenance(), edm::PrincipalGetAdapter::principal(), and provRecorder_.
bool OccurrenceForOutput::getByToken | ( | EDGetToken | token, |
TypeID const & | typeID, | ||
BasicHandle & | result | ||
) | const |
Definition at line 65 of file OccurrenceForOutput.cc.
References edm::BasicHandle::clear(), edm::BasicHandle::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), edm::PrincipalGetAdapter::isComplete(), edm::WrapperBase::isMergeable(), moduleCallingContext_, edm::PRODUCT_TYPE, provRecorder_, edm::principal_get_adapter_detail::throwOnPrematureRead(), and edm::BasicHandle::wrapper().
Referenced by edm::RootOutputFile::fillBranches(), edm::StreamerOutputModuleBase::getTriggerResults(), edm::OutputModule::getTriggerResults(), edm::detail::TriggerResultsBasedEventSelector::wantEvent(), RawEventOutputModuleForBU< Consumer >::write(), and edm::ProvenanceCheckerOutputModule::write().
bool OccurrenceForOutput::getByToken | ( | EDGetToken | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 96 of file OccurrenceForOutput.h.
References edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), eostools::move(), PROD, edm::PRODUCT_TYPE, and edm::principal_get_adapter_detail::throwOnPrematureRead().
bool OccurrenceForOutput::getByToken | ( | EDGetTokenT< PROD > | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 111 of file OccurrenceForOutput.h.
References edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), eostools::move(), PROD, edm::PRODUCT_TYPE, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Provenance OccurrenceForOutput::getProvenance | ( | BranchID const & | theID | ) | const |
Definition at line 40 of file OccurrenceForOutput.cc.
References edm::Principal::getProvenance(), moduleCallingContext_, edm::PrincipalGetAdapter::principal(), and provRecorder_.
Referenced by edm::ProvenanceCheckerOutputModule::write(), and edm::ProvenanceCheckerOutputModule::~ProvenanceCheckerOutputModule().
|
inlineprivate |
Definition at line 87 of file OccurrenceForOutput.h.
|
protected |
Definition at line 30 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 55 of file OccurrenceForOutput.cc.
References edm::PrincipalGetAdapter::processHistory(), and provRecorder_.
Referenced by edm::AsciiOutputModule::write(), edm::RootOutputFile::writeLuminosityBlock(), DQMRootOutputModule::writeLuminosityBlock(), edm::RootOutputFile::writeOne(), edm::RootOutputFile::writeRun(), and DQMRootOutputModule::writeRun().
ProcessHistoryID const & OccurrenceForOutput::processHistoryID | ( | ) | const |
Definition at line 35 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 OccurrenceForOutput::setConsumer | ( | EDConsumerBase const * | iConsumer | ) |
Definition at line 25 of file OccurrenceForOutput.cc.
References provRecorder_, and edm::PrincipalGetAdapter::setConsumer().
Referenced by edm::OutputModule::doBeginLuminosityBlock(), edm::one::OutputModuleBase::doBeginLuminosityBlock(), edm::global::OutputModuleBase::doBeginLuminosityBlock(), edm::OutputModule::doBeginRun(), edm::one::OutputModuleBase::doBeginRun(), edm::global::OutputModuleBase::doBeginRun(), edm::OutputModule::doEndLuminosityBlock(), edm::one::OutputModuleBase::doEndLuminosityBlock(), edm::global::OutputModuleBase::doEndLuminosityBlock(), edm::OutputModule::doEndRun(), edm::one::OutputModuleBase::doEndRun(), edm::global::OutputModuleBase::doEndRun(), edm::OutputModule::doEvent(), edm::one::OutputModuleBase::doEvent(), edm::global::OutputModuleBase::doEvent(), edm::SubProcess::doEventAsync(), edm::OutputModule::doWriteLuminosityBlock(), edm::one::OutputModuleBase::doWriteLuminosityBlock(), edm::global::OutputModuleBase::doWriteLuminosityBlock(), edm::OutputModule::doWriteRun(), edm::one::OutputModuleBase::doWriteRun(), edm::global::OutputModuleBase::doWriteRun(), edm::OutputModule::prePrefetchSelection(), edm::one::OutputModuleBase::prePrefetchSelection(), and edm::global::OutputModuleBase::prePrefetchSelection().
size_t OccurrenceForOutput::size | ( | void | ) | const |
Definition at line 60 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 86 of file OccurrenceForOutput.h.
|
private |
Definition at line 91 of file OccurrenceForOutput.h.
Referenced by getByToken(), and getProvenance().
|
private |
Definition at line 89 of file OccurrenceForOutput.h.
Referenced by getAllProvenance(), getAllStableProvenance(), getByToken(), getProvenance(), principal(), processHistory(), setConsumer(), and size().