CMS 3D CMS Logo

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

#include <LuminosityBlockForOutput.h>

Inheritance diagram for edm::LuminosityBlockForOutput:
edm::OccurrenceForOutput

Public Member Functions

Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
RunForOutput const & getRun () const
 
LuminosityBlockID const & id () const
 
LuminosityBlockIndex index () const
 
LuminosityBlockNumber_t luminosityBlock () const
 
LuminosityBlockAuxiliary const & luminosityBlockAuxiliary () const
 
 LuminosityBlockForOutput (LuminosityBlockPrincipal const &lbp, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd)
 
RunNumber_t run () const
 
 ~LuminosityBlockForOutput () 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

LuminosityBlockPrincipal const & luminosityBlockPrincipal () const
 

Private Attributes

LuminosityBlockAuxiliary const & aux_
 
const std::shared_ptr< RunForOutput const > run_
 

Friends

class edmtest::TestOutputModule
 

Additional Inherited Members

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

Detailed Description

Definition at line 40 of file LuminosityBlockForOutput.h.

Constructor & Destructor Documentation

◆ LuminosityBlockForOutput()

LuminosityBlockForOutput::LuminosityBlockForOutput ( LuminosityBlockPrincipal const &  lbp,
ModuleDescription const &  md,
ModuleCallingContext const *  moduleCallingContext,
bool  isAtEnd 
)

Definition at line 10 of file LuminosityBlockForOutput.cc.

14  : OccurrenceForOutput(lbp, md, moduleCallingContext, isAtEnd),
15  aux_(lbp.aux()),
16  run_(new RunForOutput(lbp.runPrincipal(), md, moduleCallingContext, false)) {}

◆ ~LuminosityBlockForOutput()

LuminosityBlockForOutput::~LuminosityBlockForOutput ( )
override

Definition at line 18 of file LuminosityBlockForOutput.cc.

18 {}

Member Function Documentation

◆ beginTime()

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

◆ endTime()

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

Definition at line 53 of file LuminosityBlockForOutput.h.

53 { return aux_.endTime(); }

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

Referenced by DQMRootOutputModule::writeLuminosityBlock().

◆ getRun()

RunForOutput const& edm::LuminosityBlockForOutput::getRun ( ) const
inline

Definition at line 59 of file LuminosityBlockForOutput.h.

59 { return *run_; }

References run_.

Referenced by edm::EventForOutput::getRun().

◆ id()

LuminosityBlockID const& edm::LuminosityBlockForOutput::id ( void  ) const
inline

◆ index()

LuminosityBlockIndex LuminosityBlockForOutput::index ( ) const
Returns
Reusable index which can be used to separate data for different simultaneous LuminosityBlocks.

Definition at line 26 of file LuminosityBlockForOutput.cc.

26 { return luminosityBlockPrincipal().index(); }

References edm::LuminosityBlockPrincipal::index(), and luminosityBlockPrincipal().

Referenced by evf::EvFOutputModule::globalEndLuminosityBlock(), and BeautifulSoup.PageElement::insert().

◆ luminosityBlock()

LuminosityBlockNumber_t edm::LuminosityBlockForOutput::luminosityBlock ( ) const
inline

◆ luminosityBlockAuxiliary()

LuminosityBlockAuxiliary const& edm::LuminosityBlockForOutput::luminosityBlockAuxiliary ( ) const
inline

Definition at line 48 of file LuminosityBlockForOutput.h.

48 { return aux_; }

References aux_.

Referenced by edm::RootOutputFile::writeLuminosityBlock().

◆ luminosityBlockPrincipal()

LuminosityBlockPrincipal const & LuminosityBlockForOutput::luminosityBlockPrincipal ( ) const
private

Definition at line 20 of file LuminosityBlockForOutput.cc.

20  {
21  return dynamic_cast<LuminosityBlockPrincipal const&>(principal());
22  }

References edm::OccurrenceForOutput::principal().

Referenced by index().

◆ run()

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

Definition at line 51 of file LuminosityBlockForOutput.h.

51 { return aux_.run(); }

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

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

Friends And Related Function Documentation

◆ edmtest::TestOutputModule

friend class edmtest::TestOutputModule
friend

Definition at line 62 of file LuminosityBlockForOutput.h.

Member Data Documentation

◆ aux_

LuminosityBlockAuxiliary const& edm::LuminosityBlockForOutput::aux_
private

◆ run_

const std::shared_ptr<RunForOutput const> edm::LuminosityBlockForOutput::run_
private

Definition at line 67 of file LuminosityBlockForOutput.h.

Referenced by getRun().

edm::LuminosityBlockAuxiliary::run
RunNumber_t run() const
Definition: LuminosityBlockAuxiliary.h:31
edm::OccurrenceForOutput::OccurrenceForOutput
OccurrenceForOutput(Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd)
Definition: OccurrenceForOutput.cc:14
edm::LuminosityBlockForOutput::luminosityBlockPrincipal
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
Definition: LuminosityBlockForOutput.cc:20
edm::OccurrenceForOutput::moduleCallingContext
ModuleCallingContext const * moduleCallingContext() const
Definition: OccurrenceForOutput.h:81
RunForOutput
edm::LuminosityBlockAuxiliary::id
LuminosityBlockID const & id() const
Definition: LuminosityBlockAuxiliary.h:32
edm::LuminosityBlockForOutput::aux_
LuminosityBlockAuxiliary const & aux_
Definition: LuminosityBlockForOutput.h:66
edm::LuminosityBlockAuxiliary::endTime
Timestamp const & endTime() const
Definition: LuminosityBlockAuxiliary.h:39
edm::LuminosityBlockForOutput::run_
const std::shared_ptr< RunForOutput const > run_
Definition: LuminosityBlockForOutput.h:67
edm::OccurrenceForOutput::principal
Principal const & principal() const
Definition: OccurrenceForOutput.cc:24
edm::LuminosityBlockAuxiliary::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: LuminosityBlockAuxiliary.h:30
edm::LuminosityBlockPrincipal::index
LuminosityBlockIndex index() const
Definition: LuminosityBlockPrincipal.h:51
edm::LuminosityBlockAuxiliary::beginTime
Timestamp const & beginTime() const
Definition: LuminosityBlockAuxiliary.h:34