BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RawFileWriter Class Reference

#include <RawFileWriter.h>

Public Member Functions

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

Detailed Description

Definition at line 6 of file Event/RawFile/include/RawFile/RawFileWriter.h.

Constructor & Destructor Documentation

◆ RawFileWriter() [1/3]

RawFileWriter::RawFileWriter ( const std::string & fname,
int run = 0 )

Definition at line 3 of file RawFileWriter.cxx.

3 {
4 m_wfs = raw_ofstream::instance( fname, run );
5}
static raw_ofstream * instance(const std::string &fname, int run=0)

◆ ~RawFileWriter() [1/3]

RawFileWriter::~RawFileWriter ( )
virtual

Definition at line 7 of file RawFileWriter.cxx.

static void release()

◆ RawFileWriter() [2/3]

RawFileWriter::RawFileWriter ( const std::string & fname,
int run = 0 )

◆ ~RawFileWriter() [2/3]

virtual RawFileWriter::~RawFileWriter ( )
virtual

◆ RawFileWriter() [3/3]

RawFileWriter::RawFileWriter ( const std::string & fname,
int run = 0 )

◆ ~RawFileWriter() [3/3]

virtual RawFileWriter::~RawFileWriter ( )
virtual

Member Function Documentation

◆ writeEvent() [1/3]

int RawFileWriter::writeEvent ( const uint32_t * pevt)

Definition at line 9 of file RawFileWriter.cxx.

9 {
10 const char* pbuf = reinterpret_cast<const char*>( pevt );
11 int sizeBytes = pevt[1] * 4; // unit of size is word
12
14 int nfile = m_wfs->write_event( pbuf, sizeBytes );
16
17 return nfile;
18}

Referenced by main().

◆ writeEvent() [2/3]

int RawFileWriter::writeEvent ( const uint32_t * pevt)

◆ writeEvent() [3/3]

int RawFileWriter::writeEvent ( const uint32_t * pevt)

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