CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
RawFileWriter.cxx
Go to the documentation of this file.
2
3RawFileWriter::RawFileWriter(const std::string& fname)
4{
5 m_wfs = raw_ofstream::instance(fname);
6}
7
12
13int RawFileWriter::writeEvent(const uint32_t* pevt)
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 writeEvent(const uint32_t *pevt)
RawFileWriter(const std::string &fname)
virtual ~RawFileWriter()
static void release()
int write_event(const char *pbuf, int size)
static raw_ofstream * instance(const std::string &fname)
static void lock()
static void unlock()