CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
RawFileWriter Class Reference

#include <RawFileWriter.h>

Public Member Functions

 RawFileWriter (const std::string &fname)
 
virtual ~RawFileWriter ()
 
int writeEvent (const uint32_t *pevt)
 
 RawFileWriter (const std::string &fname)
 
virtual ~RawFileWriter ()
 
int writeEvent (const uint32_t *pevt)
 

Detailed Description

Constructor & Destructor Documentation

◆ RawFileWriter() [1/2]

RawFileWriter::RawFileWriter ( const std::string &  fname)

Definition at line 3 of file RawFileWriter.cxx.

4{
5 m_wfs = raw_ofstream::instance(fname);
6}
static raw_ofstream * instance(const std::string &fname)

Referenced by RawFileWriter().

◆ ~RawFileWriter() [1/2]

RawFileWriter::~RawFileWriter ( )
virtual

Definition at line 8 of file RawFileWriter.cxx.

9{
11}
static void release()

◆ RawFileWriter() [2/2]

RawFileWriter::RawFileWriter ( const std::string &  fname)

◆ ~RawFileWriter() [2/2]

virtual RawFileWriter::~RawFileWriter ( )
virtual

Member Function Documentation

◆ writeEvent() [1/2]

int RawFileWriter::writeEvent ( const uint32_t *  pevt)

Definition at line 13 of file RawFileWriter.cxx.

14{
15 const char* pbuf = reinterpret_cast<const char*>(pevt);
16 int sizeBytes = pevt[1] * 4; //unit of size is word
17
19 int nfile = m_wfs->write_event(pbuf, sizeBytes);
21
22 return nfile;
23}
int write_event(const char *pbuf, int size)

Referenced by main(), and RawDataOutputSvc::putEvent().

◆ writeEvent() [2/2]

int RawFileWriter::writeEvent ( const uint32_t *  pevt)

The documentation for this class was generated from the following files: