CMS 3D CMS Logo

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

#include <EventForOutput.h>

Inheritance diagram for edm::EventForOutput:
edm::OccurrenceForOutput

Public Member Functions

BranchListIndexes const & branchListIndexes () const
 
EventNumber_t event () const
 
EventAuxiliary const & eventAuxiliary () const
 
 EventForOutput (EventPrincipal const &, ModuleDescription const &, ModuleCallingContext const *)
 
 EventForOutput (EventTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *)
 
EventSelectionIDVector const & eventSelectionIDs () const
 
LuminosityBlockForOutput const & getLuminosityBlock () const
 
RunForOutput const & getRun () const
 
EventID const & id () const
 
LuminosityBlockNumber_t luminosityBlock () const
 
ProductProvenanceRetriever const * productProvenanceRetrieverPtr () const
 
RunNumber_t run () const
 
StreamID streamID () const
 
Timestamp const & time () const
 
 ~EventForOutput () 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

EventPrincipal const & eventPrincipal () const
 

Private Attributes

EventAuxiliary const & aux_
 
const std::shared_ptr< LuminosityBlockForOutput const > luminosityBlock_
 
StreamID streamID_
 

Friends

class edmtest::TestOutputModule
 

Additional Inherited Members

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

Detailed Description

Definition at line 50 of file EventForOutput.h.

Constructor & Destructor Documentation

◆ EventForOutput() [1/2]

edm::EventForOutput::EventForOutput ( EventTransitionInfo const &  info,
ModuleDescription const &  md,
ModuleCallingContext const *  mcc 
)

Definition at line 14 of file EventForOutput.cc.

17  : EventForOutput(info.principal(), md, mcc) {}

◆ EventForOutput() [2/2]

edm::EventForOutput::EventForOutput ( EventPrincipal const &  ep,
ModuleDescription const &  md,
ModuleCallingContext const *  moduleCallingContext 
)

Definition at line 19 of file EventForOutput.cc.

22  : OccurrenceForOutput(ep, md, moduleCallingContext, true /*always at end*/),
23  aux_(ep.aux()),
24  luminosityBlock_(ep.luminosityBlockPrincipalPtrValid()
26  ep.luminosityBlockPrincipal(), md, moduleCallingContext, false /*not at end*/)
27  : nullptr),
28  streamID_(ep.streamID()) {}

◆ ~EventForOutput()

edm::EventForOutput::~EventForOutput ( )
override

Definition at line 30 of file EventForOutput.cc.

30 {}

Member Function Documentation

◆ branchListIndexes()

BranchListIndexes const & edm::EventForOutput::branchListIndexes ( ) const

Definition at line 46 of file EventForOutput.cc.

46 { return eventPrincipal().branchListIndexes(); }

References edm::EventPrincipal::branchListIndexes(), and eventPrincipal().

◆ event()

EventNumber_t edm::EventForOutput::event ( ) const
inline

Definition at line 58 of file EventForOutput.h.

58 { return aux_.event(); }

References aux_, and edm::EventAuxiliary::event().

Referenced by Types.EventID::cppID().

◆ eventAuxiliary()

EventAuxiliary const& edm::EventForOutput::eventAuxiliary ( ) const
inline

Definition at line 56 of file EventForOutput.h.

56 { return aux_; }

References aux_.

◆ eventPrincipal()

EventPrincipal const & edm::EventForOutput::eventPrincipal ( ) const
private

Definition at line 32 of file EventForOutput.cc.

32  {
33  return dynamic_cast<EventPrincipal const&>(principal());
34  }

References edm::OccurrenceForOutput::principal().

Referenced by branchListIndexes(), eventSelectionIDs(), and productProvenanceRetrieverPtr().

◆ eventSelectionIDs()

EventSelectionIDVector const & edm::EventForOutput::eventSelectionIDs ( ) const

Definition at line 38 of file EventForOutput.cc.

38  {
40  }

References eventPrincipal(), and edm::EventPrincipal::eventSelectionIDs().

◆ getLuminosityBlock()

LuminosityBlockForOutput const& edm::EventForOutput::getLuminosityBlock ( ) const
inline

Definition at line 65 of file EventForOutput.h.

65 { return *luminosityBlock_; }

References luminosityBlock_.

Referenced by getRun().

◆ getRun()

RunForOutput const & edm::EventForOutput::getRun ( ) const

Definition at line 36 of file EventForOutput.cc.

36 { return getLuminosityBlock().getRun(); }

References getLuminosityBlock(), and edm::LuminosityBlockForOutput::getRun().

◆ id()

EventID const& edm::EventForOutput::id ( void  ) const
inline

Definition at line 57 of file EventForOutput.h.

57 { return aux_.id(); }

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

Referenced by run().

◆ luminosityBlock()

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

Definition at line 59 of file EventForOutput.h.

59 { return aux_.luminosityBlock(); }

References aux_, and edm::EventAuxiliary::luminosityBlock().

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

◆ productProvenanceRetrieverPtr()

ProductProvenanceRetriever const * edm::EventForOutput::productProvenanceRetrieverPtr ( ) const

◆ run()

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

Definition at line 69 of file EventForOutput.h.

69 { return id().run(); }

References id(), and edm::EventID::run().

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

◆ streamID()

StreamID edm::EventForOutput::streamID ( ) const
inline
Returns
The id for the particular Stream processing the Event

Definition at line 63 of file EventForOutput.h.

63 { return streamID_; }

References streamID_.

◆ time()

Timestamp const& edm::EventForOutput::time ( ) const
inline

Definition at line 60 of file EventForOutput.h.

60 { return aux_.time(); }

References aux_, and edm::EventAuxiliary::time().

Friends And Related Function Documentation

◆ edmtest::TestOutputModule

friend class edmtest::TestOutputModule
friend

Definition at line 78 of file EventForOutput.h.

Member Data Documentation

◆ aux_

EventAuxiliary const& edm::EventForOutput::aux_
private

Definition at line 82 of file EventForOutput.h.

Referenced by event(), eventAuxiliary(), id(), luminosityBlock(), and time().

◆ luminosityBlock_

const std::shared_ptr<LuminosityBlockForOutput const> edm::EventForOutput::luminosityBlock_
private

Definition at line 83 of file EventForOutput.h.

Referenced by getLuminosityBlock().

◆ streamID_

StreamID edm::EventForOutput::streamID_
private

Definition at line 85 of file EventForOutput.h.

Referenced by streamID().

edm::OccurrenceForOutput::OccurrenceForOutput
OccurrenceForOutput(Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd)
Definition: OccurrenceForOutput.cc:14
edm::EventAuxiliary::event
EventNumber_t event() const
Definition: EventAuxiliary.h:72
edm::OccurrenceForOutput::moduleCallingContext
ModuleCallingContext const * moduleCallingContext() const
Definition: OccurrenceForOutput.h:81
edm::EventForOutput::eventPrincipal
EventPrincipal const & eventPrincipal() const
Definition: EventForOutput.cc:32
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
edm::LuminosityBlockForOutput::getRun
RunForOutput const & getRun() const
Definition: LuminosityBlockForOutput.h:63
edm::EventForOutput::EventForOutput
EventForOutput(EventTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *)
Definition: EventForOutput.cc:14
edm::EventPrincipal::productProvenanceRetrieverPtr
ProductProvenanceRetriever const * productProvenanceRetrieverPtr() const
Definition: EventPrincipal.h:114
edm::EventPrincipal::branchListIndexes
BranchListIndexes const & branchListIndexes() const
Definition: EventPrincipal.cc:361
LuminosityBlockForOutput
edm::EventForOutput::streamID_
StreamID streamID_
Definition: EventForOutput.h:85
edm::EventAuxiliary::id
EventID const & id() const
Definition: EventAuxiliary.h:63
edm::EventID::run
RunNumber_t run() const
Definition: EventID.h:38
edm::EventForOutput::luminosityBlock_
const std::shared_ptr< LuminosityBlockForOutput const > luminosityBlock_
Definition: EventForOutput.h:83
edm::EventAuxiliary::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: EventAuxiliary.h:67
edm::EventForOutput::id
EventID const & id() const
Definition: EventForOutput.h:57
edm::EventPrincipal::eventSelectionIDs
EventSelectionIDVector const & eventSelectionIDs() const
Definition: EventPrincipal.cc:359
edm::EventAuxiliary::time
Timestamp const & time() const
Definition: EventAuxiliary.h:66
edm::OccurrenceForOutput::principal
Principal const & principal() const
Definition: OccurrenceForOutput.cc:24
edm::EventForOutput::aux_
EventAuxiliary const & aux_
Definition: EventForOutput.h:82
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::EventForOutput::getLuminosityBlock
LuminosityBlockForOutput const & getLuminosityBlock() const
Definition: EventForOutput.h:65