BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcMcHitBuilder.h
Go to the documentation of this file.
1#ifndef MDC_MCHIT_BUILDER_H
2#define MDC_MCHIT_BUILDER_H
3
5#include "McTruth/MdcMcHit.h"
7
8using namespace std;
11
13{
14
15public:
17 virtual ~MdcMcHitBuilder(){};
18 virtual StatusCode initialize(string &initFile);
19 virtual uint32_t getTEID(uint32_t teid);
20 virtual uint32_t getREID(uint32_t reid);
21 virtual void unPack (vector<uint32_t>::const_iterator&,
22 vector<uint32_t>::const_iterator&,
23 MdcTruth_t&);
24 virtual StatusCode pack(MdcMcHitCol* mdcMcHitCol, WriteRawEvent*& re);
25
26private:
27
28 void makeMdcTruth(MdcMcHitCol::const_iterator& pMdcMcHit, MdcTruth_t& tt);
29
30 TE2REMAP m_te2reMap;
31 ///string initFile;
32 vector <int> re2te;
33 PropertyMgr m_propMgr;
34
35 uint32_t m_trackIndexIndex, m_layerIdIndex, m_cellIdIndex, m_posFlagIndex;
36 uint32_t m_trackIndexMask, m_layerIdMask, m_cellIdMask, m_posFlagMask;
37
38public:
39 uint64_t m_edepCoeff;
40 uint64_t m_driftDCoeff;
41 uint64_t m_xCoeff;
42 uint64_t m_yCoeff;
43 uint64_t m_zCoeff;
44};
45#endif
virtual StatusCode initialize(string &initFile)
virtual StatusCode pack(MdcMcHitCol *mdcMcHitCol, WriteRawEvent *&re)
virtual uint32_t getREID(uint32_t reid)
uint64_t m_driftDCoeff
virtual ~MdcMcHitBuilder()
virtual uint32_t getTEID(uint32_t teid)
uint64_t m_edepCoeff
virtual void unPack(vector< uint32_t >::const_iterator &, vector< uint32_t >::const_iterator &, MdcTruth_t &)
ObjectVector< MdcMcHit > MdcMcHitCol
Definition: MdcMcHit.h:142