CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends
edm::RunForOutput Class Reference

#include <RunForOutput.h>

Inheritance diagram for edm::RunForOutput:
edm::OccurrenceForOutput

Public Member Functions

Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
RunID const & id () const
 
MergeableRunProductMetadata const * mergeableRunProductMetadata () const
 
RunNumber_t run () const
 
RunAuxiliary const & runAuxiliary () const
 
 RunForOutput (RunPrincipal const &rp, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd, MergeableRunProductMetadata const *=nullptr)
 
 ~RunForOutput () override
 
- Public Member Functions inherited from edm::OccurrenceForOutput
void getAllProvenance (std::vector< Provenance const * > &provenances) const
 
void getAllStableProvenance (std::vector< StableProvenance const * > &provenances) const
 
template<typename PROD >
bool getByToken (EDGetToken token, Handle< PROD > &result) const
 
BasicHandle getByToken (EDGetToken token, TypeID const &typeID) const
 
template<typename PROD >
bool getByToken (EDGetTokenT< PROD > token, Handle< PROD > &result) const
 
template<typename PROD >
Handle< PRODgetHandle (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 ()
 

Private Member Functions

RunPrincipal const & runPrincipal () const
 

Private Attributes

RunAuxiliary const & aux_
 
MergeableRunProductMetadata const * mergeableRunProductMetadata_
 

Static Private Attributes

static const std::string emptyString_
 

Friends

class edmtest::TestOutputModule
 

Additional Inherited Members

- Protected Member Functions inherited from edm::OccurrenceForOutput
Principal const & principal () const
 

Detailed Description

Definition at line 39 of file RunForOutput.h.

Constructor & Destructor Documentation

◆ RunForOutput()

RunForOutput::RunForOutput ( RunPrincipal const &  rp,
ModuleDescription const &  md,
ModuleCallingContext const *  moduleCallingContext,
bool  isAtEnd,
MergeableRunProductMetadata const *  mrpm = nullptr 
)

Definition at line 9 of file RunForOutput.cc.

14  : OccurrenceForOutput(rp, md, moduleCallingContext, isAtEnd),
15  aux_(rp.aux()),

◆ ~RunForOutput()

RunForOutput::~RunForOutput ( )
override

Definition at line 18 of file RunForOutput.cc.

18 {}

Member Function Documentation

◆ beginTime()

Timestamp const& edm::RunForOutput::beginTime ( ) const
inline

Definition at line 51 of file RunForOutput.h.

51 { return aux_.beginTime(); }

References aux_, and edm::RunAuxiliary::beginTime().

Referenced by DQMRootOutputModule::writeRun().

◆ endTime()

Timestamp const& edm::RunForOutput::endTime ( ) const
inline

Definition at line 52 of file RunForOutput.h.

52 { return aux_.endTime(); }

References aux_, and edm::RunAuxiliary::endTime().

Referenced by DQMRootOutputModule::writeRun().

◆ id()

RunID const& edm::RunForOutput::id ( void  ) const
inline

Definition at line 49 of file RunForOutput.h.

49 { return aux_.id(); }

References aux_, and edm::RunAuxiliary::id().

Referenced by NanoAODOutputModule::writeRun(), and DQMRootOutputModule::writeRun().

◆ mergeableRunProductMetadata()

MergeableRunProductMetadata const* edm::RunForOutput::mergeableRunProductMetadata ( ) const
inline

Definition at line 53 of file RunForOutput.h.

References mergeableRunProductMetadata_.

◆ run()

RunNumber_t edm::RunForOutput::run ( ) const
inline

Definition at line 50 of file RunForOutput.h.

50 { return aux_.run(); }

References aux_, and edm::RunAuxiliary::run().

Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().

◆ runAuxiliary()

RunAuxiliary const& edm::RunForOutput::runAuxiliary ( ) const
inline

Definition at line 48 of file RunForOutput.h.

48 { return aux_; }

References aux_.

◆ runPrincipal()

RunPrincipal const & RunForOutput::runPrincipal ( ) const
private

Definition at line 20 of file RunForOutput.cc.

20 { return dynamic_cast<RunPrincipal const&>(principal()); }

References edm::OccurrenceForOutput::principal().

Friends And Related Function Documentation

◆ edmtest::TestOutputModule

friend class edmtest::TestOutputModule
friend

Definition at line 56 of file RunForOutput.h.

Member Data Documentation

◆ aux_

RunAuxiliary const& edm::RunForOutput::aux_
private

Definition at line 60 of file RunForOutput.h.

Referenced by beginTime(), endTime(), id(), run(), and runAuxiliary().

◆ emptyString_

const std::string edm::RunForOutput::emptyString_
staticprivate

Definition at line 64 of file RunForOutput.h.

◆ mergeableRunProductMetadata_

MergeableRunProductMetadata const* edm::RunForOutput::mergeableRunProductMetadata_
private

Definition at line 62 of file RunForOutput.h.

Referenced by mergeableRunProductMetadata().

edm::OccurrenceForOutput::OccurrenceForOutput
OccurrenceForOutput(Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd)
Definition: OccurrenceForOutput.cc:14
edm::OccurrenceForOutput::moduleCallingContext
ModuleCallingContext const * moduleCallingContext() const
Definition: OccurrenceForOutput.h:81
edm::RunForOutput::mergeableRunProductMetadata_
MergeableRunProductMetadata const * mergeableRunProductMetadata_
Definition: RunForOutput.h:62
edm::RunAuxiliary::beginTime
Timestamp const & beginTime() const
Definition: RunAuxiliary.h:29
edm::RunAuxiliary::endTime
Timestamp const & endTime() const
Definition: RunAuxiliary.h:30
edm::OccurrenceForOutput::principal
Principal const & principal() const
Definition: OccurrenceForOutput.cc:24
edm::RunAuxiliary::run
RunNumber_t run() const
Definition: RunAuxiliary.h:31
edm::RunAuxiliary::id
RunID const & id() const
Definition: RunAuxiliary.h:27
edm::RunForOutput::aux_
RunAuxiliary const & aux_
Definition: RunForOutput.h:60