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

◆ ~EvFOutputEventWriter()

evf::EvFOutputEventWriter::~EvFOutputEventWriter ( )
inline

Definition at line 25 of file EvFOutputModule.h.

25 {}

Member Function Documentation

◆ close()

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

◆ doOutputEvent()

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

Definition at line 29 of file EvFOutputModule.h.

29  {
30  EventMsgView eview(msg.startAddress());
31  stream_writer_events_->write(eview);
32  }

References mps_check::msg, and stream_writer_events_.

◆ get_adler32()

uint32 evf::EvFOutputEventWriter::get_adler32 ( ) const
inline

Definition at line 34 of file EvFOutputModule.h.

34 { return stream_writer_events_->adler32(); }

References stream_writer_events_.

◆ getAccepted()

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

Definition at line 38 of file EvFOutputModule.h.

38 { return accepted_; }

References accepted_.

◆ getFilePath()

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

Definition at line 36 of file EvFOutputModule.h.

36 { return filePath_; }

References filePath_.

◆ incAccepted()

void evf::EvFOutputEventWriter::incAccepted ( )
inline

Definition at line 39 of file EvFOutputModule.h.

39 { accepted_++; }

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

evf::EvFOutputEventWriter::accepted_
unsigned long accepted_
Definition: EvFOutputModule.h:43
evf::EvFOutputEventWriter::filePath_
std::string filePath_
Definition: EvFOutputModule.h:42
mps_check.msg
tuple msg
Definition: mps_check.py:285
EventMsgView
Definition: EventMessage.h:72
StreamerOutputFile
Definition: StreamerOutputFile.h:23
dt4ml_dqm_sourceclient-live_cfg.filePath
filePath
CUSTOMIZE FOR ML.
Definition: dt4ml_dqm_sourceclient-live_cfg.py:39
evf::EvFOutputEventWriter::stream_writer_events_
edm::propagate_const< std::unique_ptr< StreamerOutputFile > > stream_writer_events_
Definition: EvFOutputModule.h:44