BOSS 7.0.8
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)
 

Detailed Description

Definition at line 6 of file RawFileWriter.h.

Constructor & Destructor Documentation

◆ RawFileWriter()

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

RawFileWriter::~RawFileWriter ( )
virtual

Definition at line 8 of file RawFileWriter.cxx.

9{
11}
static void release()

Member Function Documentation

◆ writeEvent()

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)
static void lock()
Definition: raw_ofstream.h:18
static void unlock()
Definition: raw_ofstream.h:22

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


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