BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/RootEventData/RootEventData/TMdcMc.h
Go to the documentation of this file.
1#ifndef RootEventData_TMdcMc_H
2#define RootEventData_TMdcMc_H 1
3
4#include "TObject.h"
5//#include <vector>
6//using namespace std;
7
8class TMdcMc : public TObject {
9
10public:
11
14//Get
15 // Get associated id
16 UInt_t getId() const {return m_id;}
17
18 // Get the associated track id
19 UInt_t getTrackIndex() const {return m_trackIndex; }
20
21 // Get the position x
22 Double_t getPositionX() const {return m_xPosition;}
23
24 // Get the position y
25 Double_t getPositionY() const {return m_yPosition;}
26
27 // Get the position z
28 Double_t getPositionZ() const {return m_zPosition;}
29
30 // Get Drift Distance
31 Double_t getDriftDistance() const {return m_driftDistance;}
32
33 // Get the total deposited energy
34 Double_t getDepositEnergy() const {return m_depositEnergy;}
35
36 // Get the position flag
37 Int_t getPositionFlag() const {return m_posFlag; }
38
39
40
41
42//Set
43 void setId(UInt_t id) {m_id = id ;}
44 void setTrackIndex(UInt_t trackIndex){ m_trackIndex = trackIndex;}
45 void setPositionX(Double_t positionX) {m_xPosition = positionX;}
46 void setPositionY(Double_t positionY) {m_yPosition = positionY;}
47 void setPositionZ(Double_t positionZ) {m_zPosition = positionZ;}
48 void setDriftDistance(Double_t driftDistance){m_driftDistance = driftDistance;}
49 void setDepositEnergy(Double_t depositEnergy) {m_depositEnergy = depositEnergy;}
50 void setPositionFlag(Int_t posFlag) { m_posFlag = posFlag; }
51
52private:
53
54 UInt_t m_id;
55
56 UInt_t m_trackIndex;
57
58 Double_t m_xPosition;
59
60 Double_t m_yPosition;
61
62 Double_t m_zPosition;
63
64 Double_t m_driftDistance ;
65
66 Double_t m_depositEnergy;
67
68 Int_t m_posFlag;
69
70 ClassDef(TMdcMc,1)
71};
72
73
74#endif //TrackRootData_TMdcMc_H
75
void setDepositEnergy(Double_t depositEnergy)
void setDriftDistance(Double_t driftDistance)