BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/EventManagement/TofMcHitBuilder.h
Go to the documentation of this file.
1#ifndef TOF_MCHIT_BUILDER_H
2#define TOF_MCHIT_BUILDER_H
3
4#include "RawDataCnv/EventManagement/Builder.h"
5#include "McTruth/TofMcHit.h"
6#include "RawDataCnv/EventManagement/McTruthDataStructure.h"
7
8using namespace std;
11
13{
14
15public:
17 virtual ~TofMcHitBuilder(){};
18 virtual StatusCode initialize(string &initFile);
19 virtual uint32_t getTEID(uint32_t teid);
20 virtual uint32_t getREID(uint32_t reid);
21
22 virtual void unPack(vector<uint32_t>::const_iterator&,
23 vector<uint32_t>::const_iterator&,
24 TofTruth_t&);
25 virtual StatusCode pack(TofMcHitCol* tofMcHitCol, WriteRawEvent*& re);
26
27private:
28
29 void makeTofTruth(TofMcHitCol::const_iterator& pTofMcHit, TofTruth_t& tt);
30
31 TE2REMAP m_te2reMap;
32 //string initFile;
33 vector <int> re2te;
34 PropertyMgr m_propMgr;
35
36 uint32_t m_trackIndexIndex, m_partIdIndex, m_scinNbIndex, m_stripIndex;
37 uint32_t m_trackIndexMask, m_partIdMask, m_scinNbMask, m_stripMask;
38
39public:
40 uint64_t m_xCoeff;
41 uint64_t m_yCoeff;
42 uint64_t m_zCoeff;
43 uint64_t m_pxCoeff;
44 uint64_t m_pyCoeff;
45 uint64_t m_pzCoeff;
47 uint64_t m_timeCoeff;
48};
49#endif
virtual uint32_t getREID(uint32_t reid)
virtual StatusCode initialize(string &initFile)
virtual void unPack(vector< uint32_t >::const_iterator &, vector< uint32_t >::const_iterator &, TofTruth_t &)
virtual StatusCode pack(TofMcHitCol *tofMcHitCol, WriteRawEvent *&re)
virtual uint32_t getTEID(uint32_t teid)
ObjectVector< TofMcHit > TofMcHitCol