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