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
 
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::EventForOutput ( EventPrincipal const &  ep,
ModuleDescription const &  md,
ModuleCallingContext const *  moduleCallingContext 
)

Definition at line 14 of file EventForOutput.cc.

17  : OccurrenceForOutput(ep, md, moduleCallingContext, true /*always at end*/),
18  aux_(ep.aux()),
19  luminosityBlock_(ep.luminosityBlockPrincipalPtrValid()
21  ep.luminosityBlockPrincipal(), md, moduleCallingContext, false /*not at end*/)
22  : nullptr),
23  streamID_(ep.streamID()) {}
ModuleCallingContext const * moduleCallingContext() const
std::shared_ptr< LuminosityBlockForOutput const > const luminosityBlock_
OccurrenceForOutput(Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd)
EventAuxiliary const & aux_
EventForOutput::~EventForOutput ( )
override

Definition at line 25 of file EventForOutput.cc.

25 {}

Member Function Documentation

BranchListIndexes const & EventForOutput::branchListIndexes ( ) const

Definition at line 41 of file EventForOutput.cc.

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

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

41 { return eventPrincipal().branchListIndexes(); }
BranchListIndexes const & branchListIndexes() const
EventPrincipal const & eventPrincipal() const
EventNumber_t edm::EventForOutput::event ( ) const
inline

Definition at line 57 of file EventForOutput.h.

Referenced by Types.EventID::cppID().

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

Definition at line 55 of file EventForOutput.h.

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

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

Definition at line 27 of file EventForOutput.cc.

References edm::OccurrenceForOutput::principal().

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

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

Definition at line 33 of file EventForOutput.cc.

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

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

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

Definition at line 64 of file EventForOutput.h.

Referenced by getRun(), and evf::EvFOutputModule::write().

64 { return *luminosityBlock_; }
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 { return getLuminosityBlock().getRun(); }
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 37 of file EventForOutput.cc.

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

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

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

Definition at line 68 of file EventForOutput.h.

References triggerObjects_cff::id.

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

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

62 { return streamID_; }
Timestamp const& edm::EventForOutput::time ( ) const
inline

Definition at line 59 of file EventForOutput.h.

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

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

Friends And Related Function Documentation

friend class edmtest::TestOutputModule
friend

Definition at line 77 of file EventForOutput.h.

Member Data Documentation

EventAuxiliary const& edm::EventForOutput::aux_
private

Definition at line 81 of file EventForOutput.h.

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

Definition at line 82 of file EventForOutput.h.

StreamID edm::EventForOutput::streamID_
private

Definition at line 84 of file EventForOutput.h.