BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
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
15 ~TEmcMc();
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
Definition: TEmcMc.h:10
Double_t getPositionY() const
Definition: TEmcMc.h:43
Double_t getPz() const
Definition: TEmcMc.h:55
Double_t getPx() const
Definition: TEmcMc.h:49
void setPositionZ(Double_t positionZ)
Definition: TEmcMc.h:72
UInt_t getId() const
Definition: TEmcMc.h:34
void setTrackIndex(UInt_t trackIndex)
Definition: TEmcMc.h:69
void setPDGCode(int PDGCode)
Definition: TEmcMc.h:64
void setHitMap(std::map< Int_t, Double_t > hitMap)
Definition: TEmcMc.h:62
double getPDGCharge() const
Definition: TEmcMc.h:28
int getPDGCode() const
Definition: TEmcMc.h:25
void setHitEmc(int hitEmc)
Definition: TEmcMc.h:63
UInt_t getTrackIndex() const
Definition: TEmcMc.h:37
void setPx(Double_t px)
Definition: TEmcMc.h:73
int getHitEmc() const
Definition: TEmcMc.h:22
Double_t getPy() const
Definition: TEmcMc.h:52
void setPositionY(Double_t positionY)
Definition: TEmcMc.h:71
void setPDGCharge(double PDGCharge)
Definition: TEmcMc.h:65
void setPz(Double_t pz)
Definition: TEmcMc.h:75
Double_t getPositionX() const
Definition: TEmcMc.h:40
double getTime() const
Definition: TEmcMc.h:31
~TEmcMc()
Definition: TEmcMc.cxx:12
Double_t getDepositEnergy() const
Definition: TEmcMc.h:58
std::map< Int_t, Double_t > getHitMap() const
Definition: TEmcMc.h:19
void setPositionX(Double_t positionX)
Definition: TEmcMc.h:70
void setTime(double time)
Definition: TEmcMc.h:66
Double_t getPositionZ() const
Definition: TEmcMc.h:46
void setId(UInt_t id)
Definition: TEmcMc.h:68
void setDepositEnergy(Double_t depositEnergy)
Definition: TEmcMc.h:76
void setPy(Double_t py)
Definition: TEmcMc.h:74