BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawDataCnv/RawDataCnv-00-04-37/RawDataCnv/EventManagement/EmcBuilder.h
Go to the documentation of this file.
1#ifndef EMCBUILDER_H
2#define EMCBUILDER_H
3
4#include "RawDataCnv/EventManagement/Builder.h"
5#include "EmcRawEvent/EmcDigi.h"
6
7using namespace std;
8
9class EmcBuilder: public Builder
10{
11
12public:
13 EmcBuilder ();
14 virtual ~EmcBuilder();
15 StatusCode initialize(string &initFile);
16 uint32_t getTEID(uint32_t reid) { return m_re2te[reid]; }
17 uint32_t getREID(uint32_t teid);
18 void unPack (uint32_t reDigi, uint32_t &REId, uint32_t &TETDC, uint32_t &TEADC, uint32_t &measure);
19 StatusCode pack(EmcDigiCol* digiCol, WriteRawEvent*& re);
20
21private:
22 //string initFile;
23 uint32_t m_idIndex;
24 uint32_t m_idMask;
25 uint32_t m_overflowIndex;
26 uint32_t m_overflowMask;
27 uint32_t m_TQIndex;
28 uint32_t m_TQMask;
29 uint32_t m_tdcIndex;
30 uint32_t m_tdcMask;
31 uint32_t m_measureIndex;
32 uint32_t m_measureMask;
33 uint32_t m_adcIndex;
34 uint32_t m_adcMask;
35
36 uint32_t* m_re2te;
37 TE2REMAP m_te2reMap;
38
39 PropertyMgr m_propMgr;
40};
41#endif
StatusCode initialize(string &initFile)
Definition: EmcBuilder.cxx:68
StatusCode pack(EmcDigiCol *digiCol, WriteRawEvent *&re)
Definition: EmcBuilder.cxx:33
virtual ~EmcBuilder()
Definition: EmcBuilder.cxx:17
void unPack(uint32_t reDigi, uint32_t &REId, uint32_t &TETDC, uint32_t &TEADC, uint32_t &measure)
Definition: EmcBuilder.cxx:22
uint32_t getREID(uint32_t teid)
Definition: EmcBuilder.cxx:182