BOSS
7.1.2
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"
5
#include "
RawDataCnv/EventManagement/MdcBuilder.h
"
6
#include "
RawDataCnv/Util/BufferHolder.h
"
7
#include "
MdcRawEvent/MdcDigi.h
"
8
9
class
SniperJSON
;
10
11
class
MdcConverter
{
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!
30
~MdcConverter
();
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
BufferHolder.h
MdcBuilder.h
MdcDigi.h
MdcDigiCol
ObjectVector< MdcDigi > MdcDigiCol
Definition
MdcDigi.h:39
BufferHolder
Definition
BufferHolder.h:8
MdcBuilder
Definition
MdcBuilder.h:10
MdcConverter
Definition
MdcConverter.h:11
MdcConverter::instance
static MdcConverter * instance(int runMode=2)
Definition
MdcConverter.cxx:7
MdcConverter::destroy
static void destroy()
Definition
MdcConverter.cxx:16
MdcConverter::convert
StatusCode convert(const BufferHolder &src, MdcDigiCol *des)
Definition
MdcConverter.cxx:41
MdcConverter::setRunId
void setRunId(int runId)
Definition
MdcConverter.h:21
MdcConverter::init
void init(const SniperJSON &config)
Definition
MdcConverter.cxx:24
SniperJSON
Definition
SniperJSON.h:9
eformat::write::FullEventFragment
Definition
write/FullEventFragment.h:26
7.1.2
Event
RawDataCnv
RawDataCnv-00-06-02
RawDataCnv
Util
MdcConverter.h
Generated by
1.12.0