CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
evf::EvFOutputEventWriter Class Reference

#include <EvFOutputModule.h>

Public Member Functions

void close ()
 
void doOutputEvent (EventMsgBuilder const &msg)
 
 EvFOutputEventWriter (std::string const &filePath)
 
uint32 get_adler32 () const
 
unsigned long getAccepted () const
 
std::string const & getFilePath () const
 
void incAccepted ()
 
 ~EvFOutputEventWriter ()
 

Private Attributes

unsigned long accepted_
 
std::string filePath_
 
edm::propagate_const< std::unique_ptr< StreamerOutputFile > > stream_writer_events_
 

Detailed Description

Definition at line 19 of file EvFOutputModule.h.

Constructor & Destructor Documentation

evf::EvFOutputEventWriter::EvFOutputEventWriter ( std::string const &  filePath)
inlineexplicit

Definition at line 21 of file EvFOutputModule.h.

evf::EvFOutputEventWriter::~EvFOutputEventWriter ( )
inline

Definition at line 24 of file EvFOutputModule.h.

24 {}

Member Function Documentation

void evf::EvFOutputEventWriter::close ( void  )
inline
void evf::EvFOutputEventWriter::doOutputEvent ( EventMsgBuilder const &  msg)
inline

Definition at line 28 of file EvFOutputModule.h.

References EventMsgBuilder::startAddress(), and stream_writer_events_.

28  {
29  EventMsgView eview(msg.startAddress());
30  stream_writer_events_->write(eview);
31  }
edm::propagate_const< std::unique_ptr< StreamerOutputFile > > stream_writer_events_
tuple msg
Definition: mps_check.py:285
uint32 evf::EvFOutputEventWriter::get_adler32 ( ) const
inline

Definition at line 33 of file EvFOutputModule.h.

References stream_writer_events_.

33 { return stream_writer_events_->adler32(); }
edm::propagate_const< std::unique_ptr< StreamerOutputFile > > stream_writer_events_
unsigned long evf::EvFOutputEventWriter::getAccepted ( ) const
inline

Definition at line 37 of file EvFOutputModule.h.

References accepted_.

37 { return accepted_; }
std::string const& evf::EvFOutputEventWriter::getFilePath ( ) const
inline

Definition at line 35 of file EvFOutputModule.h.

References filePath_.

35 { return filePath_; }
void evf::EvFOutputEventWriter::incAccepted ( )
inline

Definition at line 38 of file EvFOutputModule.h.

References accepted_.

38 { accepted_++; }

Member Data Documentation

unsigned long evf::EvFOutputEventWriter::accepted_
private

Definition at line 42 of file EvFOutputModule.h.

Referenced by getAccepted(), and incAccepted().

std::string evf::EvFOutputEventWriter::filePath_
private

Definition at line 41 of file EvFOutputModule.h.

Referenced by getFilePath().

edm::propagate_const<std::unique_ptr<StreamerOutputFile> > evf::EvFOutputEventWriter::stream_writer_events_
private

Definition at line 43 of file EvFOutputModule.h.

Referenced by close(), doOutputEvent(), and get_adler32().