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 &ep, ModuleDescription const &md, 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()

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

Definition at line 13 of file EventForOutput.cc.

16  : OccurrenceForOutput(ep, md, moduleCallingContext, true /*always at end*/),
17  aux_(ep.aux()),
18  luminosityBlock_(ep.luminosityBlockPrincipalPtrValid()
20  ep.luminosityBlockPrincipal(), md, moduleCallingContext, false /*not at end*/)
21  : nullptr),
22  streamID_(ep.streamID()) {}

◆ ~EventForOutput()

EventForOutput::~EventForOutput ( )
override

Definition at line 24 of file EventForOutput.cc.

24 {}

Member Function Documentation

◆ branchListIndexes()

BranchListIndexes const & EventForOutput::branchListIndexes ( ) const

Definition at line 40 of file EventForOutput.cc.

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

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

◆ event()

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

Definition at line 57 of file EventForOutput.h.

57 { 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 55 of file EventForOutput.h.

55 { return aux_; }

References aux_.

◆ eventPrincipal()

EventPrincipal const & EventForOutput::eventPrincipal ( ) const
private

Definition at line 26 of file EventForOutput.cc.

26  {
27  return dynamic_cast<EventPrincipal const&>(principal());
28  }

References edm::OccurrenceForOutput::principal().

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

◆ eventSelectionIDs()

EventSelectionIDVector const & EventForOutput::eventSelectionIDs ( ) const

Definition at line 32 of file EventForOutput.cc.

32  {
34  }

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

◆ getLuminosityBlock()

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

Definition at line 64 of file EventForOutput.h.

64 { return *luminosityBlock_; }

References luminosityBlock_.

Referenced by getRun().

◆ getRun()

RunForOutput const & EventForOutput::getRun ( ) const

Definition at line 30 of file EventForOutput.cc.

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

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

◆ id()

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

Definition at line 56 of file EventForOutput.h.

56 { return aux_.id(); }

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

Referenced by run().

◆ luminosityBlock()

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

Definition at line 58 of file EventForOutput.h.

58 { return aux_.luminosityBlock(); }

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

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

◆ productProvenanceRetrieverPtr()

ProductProvenanceRetriever const * EventForOutput::productProvenanceRetrieverPtr ( ) const

◆ run()

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

Definition at line 68 of file EventForOutput.h.

68 { 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 62 of file EventForOutput.h.

62 { return streamID_; }

References streamID_.

◆ time()

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

Definition at line 59 of file EventForOutput.h.

59 { return aux_.time(); }

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

Friends And Related Function Documentation

◆ edmtest::TestOutputModule

friend class edmtest::TestOutputModule
friend

Definition at line 77 of file EventForOutput.h.

Member Data Documentation

◆ aux_

EventAuxiliary const& edm::EventForOutput::aux_
private

Definition at line 81 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 82 of file EventForOutput.h.

Referenced by getLuminosityBlock().

◆ streamID_

StreamID edm::EventForOutput::streamID_
private

Definition at line 84 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::LuminosityBlockForOutput::getRun
RunForOutput const & getRun() const
Definition: LuminosityBlockForOutput.h:59
edm::EventPrincipal::productProvenanceRetrieverPtr
ProductProvenanceRetriever const * productProvenanceRetrieverPtr() const
Definition: EventPrincipal.h:114
edm::EventPrincipal::branchListIndexes
BranchListIndexes const & branchListIndexes() const
Definition: EventPrincipal.cc:417
LuminosityBlockForOutput
edm::EventForOutput::streamID_
StreamID streamID_
Definition: EventForOutput.h:84
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:82
edm::EventAuxiliary::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: EventAuxiliary.h:67
edm::EventForOutput::id
EventID const & id() const
Definition: EventForOutput.h:56
edm::EventPrincipal::eventSelectionIDs
EventSelectionIDVector const & eventSelectionIDs() const
Definition: EventPrincipal.cc:415
edm::EventAuxiliary::time
Timestamp const & time() const
Definition: EventAuxiliary.h:66
edm::OccurrenceForOutput::principal
Principal const & principal() const
Definition: OccurrenceForOutput.cc:24
edm::EventForOutput::eventPrincipal
EventPrincipal const & eventPrincipal() const
Definition: EventForOutput.cc:26
edm::EventForOutput::aux_
EventAuxiliary const & aux_
Definition: EventForOutput.h:81
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::EventForOutput::getLuminosityBlock
LuminosityBlockForOutput const & getLuminosityBlock() const
Definition: EventForOutput.h:64