BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcConverter.h
Go to the documentation of this file.
1#ifndef MDC_CONVERTER_H
2#define MDC_CONVERTER_H
3
4#include "GaudiKernel/StatusCode.h"
8
9class SniperJSON;
10
12
13 public:
14
15 // static interfaces
16 static MdcConverter* instance(int runMode = 2); //default OfflineMode
17 static void destroy();
18
19 // public interfaces
20 void init(const SniperJSON& config);
21 void setRunId(int runId) { m_runId = runId; }
22 StatusCode convert(const BufferHolder& src, MdcDigiCol* des);
23 StatusCode convert(MdcDigiCol* src, WriteRawEvent*& des);
24
25
26 private:
27
28 // private methods
29 MdcConverter(int runMode); //get its intance via the static interface!
31
32 MdcConverter(); //stop default
33
34 // private data members
35 int m_runMode; //reference to the RunMode of RawDataInputSvc
36
37 int m_runId;
38
39 uint32_t m_mdcTag[16384][4];
40
41 MdcBuilder m_builder;
42
43 struct IdFixRule {
44 int run_from;
45 int run_to;
46 uint32_t mask;
47 uint32_t reverse_mask;
48 uint32_t value1;
49 uint32_t value2;
50 };
51
52 std::vector<IdFixRule> m_idFixRules;
53
54 // static data members
55 static MdcConverter* s_instance;
56};
57
58#endif
ObjectVector< MdcDigi > MdcDigiCol
Definition: MdcDigi.h:39
static MdcConverter * instance(int runMode=2)
Definition: MdcConverter.cxx:7
static void destroy()
StatusCode convert(const BufferHolder &src, MdcDigiCol *des)
void setRunId(int runId)
Definition: MdcConverter.h:21
void init(const SniperJSON &config)