CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 20 of file EvFOutputModule.h.

Constructor & Destructor Documentation

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

Definition at line 22 of file EvFOutputModule.h.

edm::propagate_const< std::unique_ptr< StreamerOutputFile > > stream_writer_events_
evf::EvFOutputEventWriter::~EvFOutputEventWriter ( )
inline

Definition at line 25 of file EvFOutputModule.h.

25 {}

Member Function Documentation

void evf::EvFOutputEventWriter::close ( void  )
inline

Definition at line 27 of file EvFOutputModule.h.

References stream_writer_events_.

Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), and esMonitoring.FDJsonServer::handle_close().

27 { stream_writer_events_->close(); }
edm::propagate_const< std::unique_ptr< StreamerOutputFile > > stream_writer_events_
void evf::EvFOutputEventWriter::doOutputEvent ( EventMsgBuilder const &  msg)
inline

Definition at line 29 of file EvFOutputModule.h.

References EventMsgBuilder::startAddress(), and stream_writer_events_.

29  {
30  EventMsgView eview(msg.startAddress());
31  stream_writer_events_->write(eview);
32  }
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 34 of file EvFOutputModule.h.

References stream_writer_events_.

34 { 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 38 of file EvFOutputModule.h.

References accepted_.

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

Definition at line 36 of file EvFOutputModule.h.

References filePath_.

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

Definition at line 39 of file EvFOutputModule.h.

References accepted_.

39 { accepted_++; }

Member Data Documentation

unsigned long evf::EvFOutputEventWriter::accepted_
private

Definition at line 43 of file EvFOutputModule.h.

Referenced by getAccepted(), and incAccepted().

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

Definition at line 42 of file EvFOutputModule.h.

Referenced by getFilePath().

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

Definition at line 44 of file EvFOutputModule.h.

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