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 (EventTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *)
 
 EventForOutput (EventPrincipal const &, ModuleDescription const &, ModuleCallingContext const *)
 
EventSelectionIDVector const & eventSelectionIDs () const
 
EventToProcessBlockIndexes const & eventToProcessBlockIndexes () 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
 
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

EventPrincipal const & eventPrincipal () const
 

Private Attributes

EventAuxiliary const & aux_
 
std::shared_ptr< LuminosityBlockForOutput const > 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) {}
static const TGPicture * info(bool iBackgroundIsBlack)
EventForOutput(EventTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *)

◆ 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()) {}
ModuleCallingContext const * moduleCallingContext() const
OccurrenceForOutput(Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd)
std::shared_ptr< LuminosityBlockForOutput const > const luminosityBlock_
EventAuxiliary const & aux_

◆ ~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.

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

46 { return eventPrincipal().branchListIndexes(); }
EventPrincipal const & eventPrincipal() const
BranchListIndexes const & branchListIndexes() const

◆ event()

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

Definition at line 58 of file EventForOutput.h.

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

Referenced by Types.EventID::cppID().

58 { return aux_.event(); }
EventNumber_t event() const
EventAuxiliary const & aux_

◆ eventAuxiliary()

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

Definition at line 56 of file EventForOutput.h.

References aux_.

56 { return aux_; }
EventAuxiliary const & aux_

◆ eventPrincipal()

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

Definition at line 32 of file EventForOutput.cc.

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

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

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

◆ eventSelectionIDs()

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

Definition at line 38 of file EventForOutput.cc.

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

38  {
40  }
EventPrincipal const & eventPrincipal() const
EventSelectionIDVector const & eventSelectionIDs() const

◆ eventToProcessBlockIndexes()

EventToProcessBlockIndexes const & edm::EventForOutput::eventToProcessBlockIndexes ( ) const

Definition at line 48 of file EventForOutput.cc.

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

48  {
50  }
EventToProcessBlockIndexes const & eventToProcessBlockIndexes() const
EventPrincipal const & eventPrincipal() const

◆ getLuminosityBlock()

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

Definition at line 65 of file EventForOutput.h.

References luminosityBlock_.

Referenced by getRun().

65 { return *luminosityBlock_; }
std::shared_ptr< LuminosityBlockForOutput const > const luminosityBlock_

◆ getRun()

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

Definition at line 36 of file EventForOutput.cc.

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

36 { return getLuminosityBlock().getRun(); }
RunForOutput const & getRun() const
LuminosityBlockForOutput const & getLuminosityBlock() const

◆ id()

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

Definition at line 57 of file EventForOutput.h.

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

Referenced by run().

57 { return aux_.id(); }
EventID const & id() const
EventAuxiliary const & aux_

◆ luminosityBlock()

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

Definition at line 59 of file EventForOutput.h.

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

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

59 { return aux_.luminosityBlock(); }
LuminosityBlockNumber_t luminosityBlock() const
EventAuxiliary const & aux_

◆ productProvenanceRetrieverPtr()

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

Definition at line 42 of file EventForOutput.cc.

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

42  {
44  }
EventPrincipal const & eventPrincipal() const
ProductProvenanceRetriever const * productProvenanceRetrieverPtr() const

◆ run()

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

Definition at line 69 of file EventForOutput.h.

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

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

69 { return id().run(); }
RunNumber_t run() const
Definition: EventID.h:38
EventID const & id() const

◆ 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.

References streamID_.

Referenced by edm::global::OutputModuleBase::doAcquire().

63 { return streamID_; }

◆ time()

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

Definition at line 60 of file EventForOutput.h.

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

60 { return aux_.time(); }
Timestamp const & time() const
EventAuxiliary const & aux_

Friends And Related Function Documentation

◆ edmtest::TestOutputModule

friend class edmtest::TestOutputModule
friend

Definition at line 80 of file EventForOutput.h.

Member Data Documentation

◆ aux_

EventAuxiliary const& edm::EventForOutput::aux_
private

Definition at line 84 of file EventForOutput.h.

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

◆ luminosityBlock_

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

Definition at line 85 of file EventForOutput.h.

Referenced by getLuminosityBlock().

◆ streamID_

StreamID edm::EventForOutput::streamID_
private

Definition at line 87 of file EventForOutput.h.

Referenced by streamID().