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 (LumiTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd)
 
 LuminosityBlockForOutput (LuminosityBlockPrincipal const &, ModuleDescription const &, 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
 
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< 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_
 
std::shared_ptr< RunForOutput const > 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() [1/2]

LuminosityBlockForOutput::LuminosityBlockForOutput ( LumiTransitionInfo const &  info,
ModuleDescription const &  md,
ModuleCallingContext const *  mcc,
bool  isAtEnd 
)

Definition at line 11 of file LuminosityBlockForOutput.cc.

15  : LuminosityBlockForOutput(info.principal(), md, mcc, isAtEnd) {}
LuminosityBlockForOutput(LumiTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd)
static const TGPicture * info(bool iBackgroundIsBlack)

◆ LuminosityBlockForOutput() [2/2]

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

Definition at line 17 of file LuminosityBlockForOutput.cc.

21  : OccurrenceForOutput(lbp, md, moduleCallingContext, isAtEnd),
22  aux_(lbp.aux()),
23  run_(new RunForOutput(lbp.runPrincipal(), md, moduleCallingContext, false)) {}
ModuleCallingContext const * moduleCallingContext() const
OccurrenceForOutput(Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd)
LuminosityBlockAuxiliary const & aux_
std::shared_ptr< RunForOutput const > const run_

◆ ~LuminosityBlockForOutput()

LuminosityBlockForOutput::~LuminosityBlockForOutput ( )
override

Definition at line 25 of file LuminosityBlockForOutput.cc.

25 {}

Member Function Documentation

◆ beginTime()

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

Definition at line 56 of file LuminosityBlockForOutput.h.

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

Referenced by DQMRootOutputModule::writeLuminosityBlock().

56 { return aux_.beginTime(); }
LuminosityBlockAuxiliary const & aux_
Timestamp const & beginTime() const

◆ endTime()

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

Definition at line 57 of file LuminosityBlockForOutput.h.

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

Referenced by DQMRootOutputModule::writeLuminosityBlock().

57 { return aux_.endTime(); }
LuminosityBlockAuxiliary const & aux_
Timestamp const & endTime() const

◆ getRun()

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

Definition at line 63 of file LuminosityBlockForOutput.h.

References run_.

Referenced by edm::EventForOutput::getRun(), and evf::GlobalEvFOutputModule::globalEndLuminosityBlock().

63 { return *run_; }
std::shared_ptr< RunForOutput const > const run_

◆ 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 33 of file LuminosityBlockForOutput.cc.

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

Referenced by evf::GlobalEvFOutputModule::globalEndLuminosityBlock().

33 { return luminosityBlockPrincipal().index(); }
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
LuminosityBlockIndex index() const

◆ luminosityBlock()

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

◆ luminosityBlockAuxiliary()

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

Definition at line 52 of file LuminosityBlockForOutput.h.

References aux_.

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

52 { return aux_; }
LuminosityBlockAuxiliary const & aux_

◆ luminosityBlockPrincipal()

LuminosityBlockPrincipal const & LuminosityBlockForOutput::luminosityBlockPrincipal ( ) const
private

Definition at line 27 of file LuminosityBlockForOutput.cc.

References runTheMatrix::const, and edm::OccurrenceForOutput::principal().

Referenced by index().

27  {
28  return dynamic_cast<LuminosityBlockPrincipal const&>(principal());
29  }
Principal const & principal() const

◆ run()

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

Friends And Related Function Documentation

◆ edmtest::TestOutputModule

friend class edmtest::TestOutputModule
friend

Definition at line 66 of file LuminosityBlockForOutput.h.

Member Data Documentation

◆ aux_

LuminosityBlockAuxiliary const& edm::LuminosityBlockForOutput::aux_
private

◆ run_

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

Definition at line 71 of file LuminosityBlockForOutput.h.

Referenced by getRun().