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

Constructor & Destructor Documentation

◆ EvFOutputEventWriter()

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

Definition at line 22 of file EvFOutputModule.h.

◆ ~EvFOutputEventWriter()

evf::EvFOutputEventWriter::~EvFOutputEventWriter ( )
inline

Definition at line 25 of file EvFOutputModule.h.

25 {}

Member Function Documentation

◆ close()

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_

◆ doOutputEvent()

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

Definition at line 29 of file EvFOutputModule.h.

References mps_check::msg, 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

◆ get_adler32()

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_

◆ getAccepted()

unsigned long evf::EvFOutputEventWriter::getAccepted ( ) const
inline

Definition at line 38 of file EvFOutputModule.h.

References accepted_.

38 { return accepted_; }

◆ getFilePath()

std::string const& evf::EvFOutputEventWriter::getFilePath ( ) const
inline

Definition at line 36 of file EvFOutputModule.h.

References filePath_.

36 { return filePath_; }

◆ incAccepted()

void evf::EvFOutputEventWriter::incAccepted ( )
inline

Definition at line 39 of file EvFOutputModule.h.

References accepted_.

39 { accepted_++; }

Member Data Documentation

◆ accepted_

unsigned long evf::EvFOutputEventWriter::accepted_
private

Definition at line 43 of file EvFOutputModule.h.

Referenced by getAccepted(), and incAccepted().

◆ filePath_

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

Definition at line 42 of file EvFOutputModule.h.

Referenced by getFilePath().

◆ stream_writer_events_

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().