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 23 of file EvFOutputModule.h.

23  :
24  filePath_(filePath),
25  accepted_(0),
27  {
28  }
edm::propagate_const< std::unique_ptr< StreamerOutputFile > > stream_writer_events_
evf::EvFOutputEventWriter::~EvFOutputEventWriter ( )
inline

Definition at line 30 of file EvFOutputModule.h.

30  {
31  }

Member Function Documentation

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

Definition at line 37 of file EvFOutputModule.h.

References EventMsgBuilder::startAddress(), and stream_writer_events_.

37  {
38  EventMsgView eview(msg.startAddress());
39  stream_writer_events_->write(eview);
40  }
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 42 of file EvFOutputModule.h.

References stream_writer_events_.

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

Definition at line 48 of file EvFOutputModule.h.

References accepted_.

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

Definition at line 46 of file EvFOutputModule.h.

References filePath_.

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

Definition at line 49 of file EvFOutputModule.h.

References accepted_.

49 {accepted_++;}

Member Data Documentation

unsigned long evf::EvFOutputEventWriter::accepted_
private

Definition at line 53 of file EvFOutputModule.h.

Referenced by getAccepted(), and incAccepted().

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

Definition at line 52 of file EvFOutputModule.h.

Referenced by getFilePath().

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

Definition at line 54 of file EvFOutputModule.h.

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