BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/EventManagement/EmcMcHitBuilder.h
Go to the documentation of this file.
1#ifndef EMC_MCHIT_BUILDER_H
2#define EMC_MCHIT_BUILDER_H
3
4#include "RawDataCnv/EventManagement/Builder.h"
5#include "McTruth/EmcMcHit.h"
6#include "RawDataCnv/EventManagement/McTruthDataStructure.h"
7
8using namespace std;
11
13{
14
15public:
17 virtual ~EmcMcHitBuilder(){};
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 EmcTruth_t&);
25 virtual StatusCode pack(EmcMcHitCol* emcMcHitCol, WriteRawEvent*& re);
26
27private:
28
29 void makeEmcTruth(EmcMcHitCol::const_iterator& pEmcMcHit, EmcTruth_t& et);
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_numThetaIndex, m_numPhiIndex;
37 uint32_t m_trackIndexMask, m_partIdMask, m_numThetaMask, m_numPhiMask;
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};
48#endif
virtual StatusCode pack(EmcMcHitCol *emcMcHitCol, WriteRawEvent *&re)
virtual uint32_t getTEID(uint32_t teid)
virtual void unPack(vector< uint32_t >::const_iterator &, vector< uint32_t >::const_iterator &, EmcTruth_t &)
virtual uint32_t getREID(uint32_t reid)
virtual StatusCode initialize(string &initFile)
ObjectVector< EmcMcHit > EmcMcHitCol