BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawDataCnv/include/RawDataCnv/Util/ZddConverter.h
Go to the documentation of this file.
1#ifndef ZDD_CONVERTER_H
2#define ZDD_CONVERTER_H
3
4#include "ZddEvent/ZddEvent.h"
5#include <stdint.h>
6
7class ZddChannel;
8
9class ZddConverter {
10public:
11 static ZddConverter* instance( int runMode = 2 ); // default OfflineMode
12 static void destroy();
13
14 bool convert( uint32_t* pdata, int size, Event::ZddEvent* evt );
15
16private:
17 uint32_t* decodeBoard( uint32_t* pevt, Event::ZddEvent* evt );
18 uint32_t* decodeChannel( uint32_t* pch, ZddChannel* evt );
19
20 ZddConverter( int runMode );
21 ~ZddConverter();
22
23 ZddConverter(); // not support
24
25private: // data members
26 int m_runMode;
27
28 static ZddConverter* s_instance;
29};
30
31#endif
static ZddConverter * instance(int runMode=2)
static void destroy()
bool convert(uint32_t *pdata, int size, Event::ZddEvent *evt)