BOSS 6.6.4.p01
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
10
11 public:
12
13 // static interfaces
14 static MdcConverter* instance(int runMode = 2); //default OfflineMode
15 static void destroy();
16
17 // public interfaces
18 void init(int runFrom, int runTo);
19 void setRunId(int runId) { m_runId = runId; }
20 StatusCode convert(const BufferHolder& src, MdcDigiCol* des);
21 StatusCode convert(MdcDigiCol* src, WriteRawEvent*& des);
22
23
24 private:
25
26 // private methods
27 MdcConverter(int runMode); //get its intance via the static interface!
29
30 MdcConverter(); //stop default
31
32 // private data members
33 int m_runMode; //reference to the RunMode of RawDataInputSvc
34
35 int m_runId;
36 int m_runFrom;
37 int m_runTo;
38
39 uint32_t m_mdcTag[16384][4];
40
41 MdcBuilder m_builder;
42
43 // static data members
44 static MdcConverter* s_instance;
45};
46
47#endif
ObjectVector< MdcDigi > MdcDigiCol
Definition: MdcDigi.h:39
static MdcConverter * instance(int runMode=2)
Definition: MdcConverter.cxx:6
static void destroy()
void init(int runFrom, int runTo)
StatusCode convert(const BufferHolder &src, MdcDigiCol *des)
void setRunId(int runId)
Definition: MdcConverter.h:19