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
 
bool getByToken (EDGetToken token, TypeID const &typeID, BasicHandle &result) const
 
template<typename PROD >
bool getByToken (EDGetToken token, Handle< PROD > &result) const
 
template<typename PROD >
bool getByToken (EDGetTokenT< PROD > token, Handle< PROD > &result) const
 
Provenance getProvenance (BranchID const &theID) const
 
 OccurrenceForOutput (Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *)
 
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::EventForOutput ( EventPrincipal const &  ep,
ModuleDescription const &  md,
ModuleCallingContext const *  moduleCallingContext 
)

Definition at line 14 of file EventForOutput.cc.

14  :
16  aux_(ep.aux()),
17  luminosityBlock_(ep.luminosityBlockPrincipalPtrValid() ? new LuminosityBlockForOutput(ep.luminosityBlockPrincipal(), md, moduleCallingContext) : nullptr),
18  streamID_(ep.streamID())
19  {
20  }
ModuleCallingContext const * moduleCallingContext() const
std::shared_ptr< LuminosityBlockForOutput const > const luminosityBlock_
OccurrenceForOutput(Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *)
EventAuxiliary const & aux_
EventForOutput::~EventForOutput ( )
override

Definition at line 22 of file EventForOutput.cc.

22  {
23  }

Member Function Documentation

BranchListIndexes const & EventForOutput::branchListIndexes ( ) const

Definition at line 46 of file EventForOutput.cc.

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

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

46  {
48  }
BranchListIndexes const & branchListIndexes() const
EventPrincipal const & eventPrincipal() const
EventNumber_t edm::EventForOutput::event ( ) const
inline

Definition at line 58 of file EventForOutput.h.

Referenced by Types.EventID::cppID().

58 {return aux_.event();}
EventNumber_t event() const
EventAuxiliary const & aux_
EventAuxiliary const& edm::EventForOutput::eventAuxiliary ( ) const
inline

Definition at line 56 of file EventForOutput.h.

Referenced by edm::StreamSerializer::serializeEvent(), and edm::RootOutputFile::writeOne().

56 {return aux_;}
EventAuxiliary const & aux_
EventPrincipal const & EventForOutput::eventPrincipal ( ) const
private

Definition at line 26 of file EventForOutput.cc.

References edm::OccurrenceForOutput::principal().

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

26  {
27  return dynamic_cast<EventPrincipal const&>(principal());
28  }
Principal const & principal() const
EventSelectionIDVector const & EventForOutput::eventSelectionIDs ( ) const

Definition at line 36 of file EventForOutput.cc.

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

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

36  {
38  }
EventSelectionIDVector const & eventSelectionIDs() const
EventPrincipal const & eventPrincipal() const
LuminosityBlockForOutput const& edm::EventForOutput::getLuminosityBlock ( ) const
inline

Definition at line 68 of file EventForOutput.h.

Referenced by getRun().

68  {
69  return *luminosityBlock_;
70  }
std::shared_ptr< LuminosityBlockForOutput const > const luminosityBlock_
RunForOutput const & EventForOutput::getRun ( ) const

Definition at line 31 of file EventForOutput.cc.

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

31  {
32  return getLuminosityBlock().getRun();
33  }
LuminosityBlockForOutput const & getLuminosityBlock() const
RunForOutput const & getRun() const
EventID const& edm::EventForOutput::id ( void  ) const
inline
LuminosityBlockNumber_t edm::EventForOutput::luminosityBlock ( ) const
inline
ProductProvenanceRetriever const * EventForOutput::productProvenanceRetrieverPtr ( ) const

Definition at line 41 of file EventForOutput.cc.

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

Referenced by edm::PoolOutputModule::updateBranchParents(), and edm::RootOutputFile::writeOne().

41  {
43  }
ProductProvenanceRetriever const * productProvenanceRetrieverPtr() const
EventPrincipal const & eventPrincipal() const
RunNumber_t edm::EventForOutput::run ( ) const
inline

Definition at line 76 of file EventForOutput.h.

References triggerObjects_cff::id.

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

76 {return id().run();}
RunNumber_t run() const
Definition: EventID.h:39
EventID const & id() const
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  {
64  return streamID_;
65  }
Timestamp const& edm::EventForOutput::time ( ) const
inline

Definition at line 60 of file EventForOutput.h.

Referenced by edm::AsciiOutputModule::write().

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

Friends And Related Function Documentation

friend class edmtest::TestOutputModule
friend

Definition at line 85 of file EventForOutput.h.

Member Data Documentation

EventAuxiliary const& edm::EventForOutput::aux_
private

Definition at line 90 of file EventForOutput.h.

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

Definition at line 91 of file EventForOutput.h.

StreamID edm::EventForOutput::streamID_
private

Definition at line 93 of file EventForOutput.h.