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 &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd)
 
 LuminosityBlockForOutput (LumiTransitionInfo 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
 
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() [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() [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)) {}

◆ ~LuminosityBlockForOutput()

LuminosityBlockForOutput::~LuminosityBlockForOutput ( )
override

Definition at line 25 of file LuminosityBlockForOutput.cc.

25 {}

Member Function Documentation

◆ beginTime()

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

◆ endTime()

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

Definition at line 57 of file LuminosityBlockForOutput.h.

57 { return aux_.endTime(); }

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

Referenced by DQMRootOutputModule::writeLuminosityBlock().

◆ getRun()

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

Definition at line 63 of file LuminosityBlockForOutput.h.

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

33 { 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 52 of file LuminosityBlockForOutput.h.

52 { return aux_; }

References aux_.

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

◆ luminosityBlockPrincipal()

LuminosityBlockPrincipal const & LuminosityBlockForOutput::luminosityBlockPrincipal ( ) const
private

Definition at line 27 of file LuminosityBlockForOutput.cc.

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

References edm::OccurrenceForOutput::principal().

Referenced by index().

◆ run()

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

Definition at line 55 of file LuminosityBlockForOutput.h.

55 { 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 66 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 71 of file LuminosityBlockForOutput.h.

Referenced by getRun().

edm::LuminosityBlockAuxiliary::run
RunNumber_t run() const
Definition: LuminosityBlockAuxiliary.h:35
edm::LuminosityBlockForOutput::LuminosityBlockForOutput
LuminosityBlockForOutput(LumiTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd)
Definition: LuminosityBlockForOutput.cc:11
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:27
edm::OccurrenceForOutput::moduleCallingContext
ModuleCallingContext const * moduleCallingContext() const
Definition: OccurrenceForOutput.h:81
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
RunForOutput
edm::LuminosityBlockAuxiliary::id
LuminosityBlockID const & id() const
Definition: LuminosityBlockAuxiliary.h:36
edm::LuminosityBlockForOutput::aux_
LuminosityBlockAuxiliary const & aux_
Definition: LuminosityBlockForOutput.h:70
edm::LuminosityBlockAuxiliary::endTime
Timestamp const & endTime() const
Definition: LuminosityBlockAuxiliary.h:43
edm::LuminosityBlockForOutput::run_
const std::shared_ptr< RunForOutput const > run_
Definition: LuminosityBlockForOutput.h:71
edm::OccurrenceForOutput::principal
Principal const & principal() const
Definition: OccurrenceForOutput.cc:24
edm::LuminosityBlockAuxiliary::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: LuminosityBlockAuxiliary.h:34
edm::LuminosityBlockPrincipal::index
LuminosityBlockIndex index() const
Definition: LuminosityBlockPrincipal.h:51
edm::LuminosityBlockAuxiliary::beginTime
Timestamp const & beginTime() const
Definition: LuminosityBlockAuxiliary.h:38