CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/RootEventData-00-05-13/RootEventData/TEmcMc.h
Go to the documentation of this file.
1#ifndef RootEventData_TEmcMc_H
2#define RootEventData_TEmcMc_H 1
3
4#include "TObject.h"
5#include <map>
6
7//#include <vector>
8//using namespace std;
9
10class TEmcMc : public TObject {
11
12public:
13
16//Get
17
18 // Get Hit_Map
19 std::map<Int_t, Double_t> getHitMap() const { return m_hitMap; }
20
21 // Get whether or not hit on EMC
22 int getHitEmc() const {return m_hitEmc;}
23
24 // Get pdg id
25 int getPDGCode() const {return m_PDGCode;}
26
27 // Get pdg charge
28 double getPDGCharge() const {return m_PDGCharge;}
29
30 // Get crystal or dead time
31 double getTime() const {return m_time;}
32
33 // Get associated id
34 UInt_t getId() const {return m_id;}
35
36 // Get the associated track id
37 UInt_t getTrackIndex() const {return m_trackIndex; }
38
39 // Get the position x
40 Double_t getPositionX() const {return m_xPosition;}
41
42 // Get the position y
43 Double_t getPositionY() const {return m_yPosition;}
44
45 // Get the position z
46 Double_t getPositionZ() const {return m_zPosition;}
47
48 // Get momentum Px
49 Double_t getPx() const {return m_px ;}
50
51 // Get momentum Py
52 Double_t getPy() const {return m_py ;}
53
54 // Get momentum Pz
55 Double_t getPz() const {return m_pz ;}
56
57 // Get the total deposited energy
58 Double_t getDepositEnergy() const {return m_depositEnergy;}
59
60//Set
61
62 void setHitMap(std::map<Int_t, Double_t> hitMap) {m_hitMap = hitMap; }
63 void setHitEmc(int hitEmc) {m_hitEmc = hitEmc ;}
64 void setPDGCode(int PDGCode) {m_PDGCode = PDGCode ;}
65 void setPDGCharge(double PDGCharge) {m_PDGCharge = PDGCharge ;}
66 void setTime(double time) {m_time = time ;}
67
68 void setId(UInt_t id) {m_id = id ;}
69 void setTrackIndex(UInt_t trackIndex){ m_trackIndex = trackIndex;}
70 void setPositionX(Double_t positionX) {m_xPosition = positionX;}
71 void setPositionY(Double_t positionY) {m_yPosition = positionY;}
72 void setPositionZ(Double_t positionZ) {m_zPosition = positionZ;}
73 void setPx(Double_t px) {m_px = px;}
74 void setPy(Double_t py) {m_py = py;}
75 void setPz(Double_t pz) {m_pz = pz;}
76 void setDepositEnergy(Double_t depositEnergy) {m_depositEnergy = depositEnergy;}
77
78private:
79
80 //whether hit Emc
81 Int_t m_hitEmc;
82 //particle ID
83 Int_t m_PDGCode;
84 //particle charge;
85 Double_t m_PDGCharge;
86 //hit crystal time or dead time
87 Double_t m_time;
88
89 UInt_t m_id;
90
91 UInt_t m_trackIndex;
92
93 Double_t m_xPosition;
94
95 Double_t m_yPosition;
96
97 Double_t m_zPosition;
98
99 Double_t m_px;
100
101 Double_t m_py;
102
103 Double_t m_pz;
104
105 Double_t m_depositEnergy;
106
107 std::map<Int_t, Double_t> m_hitMap;
108
109 ClassDef(TEmcMc,1)
110
111};
112
113#endif //TrackRootData_TEmcMc_H
114
Double_t time
void setHitMap(std::map< Int_t, Double_t > hitMap)
std::map< Int_t, Double_t > getHitMap() const