BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
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 "TString.h"
6//#include <vector>
7//using namespace std;
8
9class TMdcMc : public TObject {
10
11public:
12
14 ~TMdcMc();
15 //Get
16 // Get associated id
17 UInt_t getId() const {return m_id;}
18
19 // Get the associated track id
20 UInt_t getTrackIndex() const {return m_trackIndex; }
21
22 // Get the associated current track PID
23 Int_t getCurrentTrackPID() const{return m_currentTrackPID;}
24
25 // Get is secondary
26 Double_t getIsSecondary() const{return m_isSecondary;}
27
28 // Get the position x
29 Double_t getPositionX() const {return m_xPosition;}
30
31 // Get the position y
32 Double_t getPositionY() const {return m_yPosition;}
33
34 // Get the position z
35 Double_t getPositionZ() const {return m_zPosition;}
36
37 // Get the momentum x
38 Double_t getMomentumX() const{return m_xMomentum;}
39
40 // Get the momentum y
41 Double_t getMomentumY() const{return m_yMomentum;}
42
43 // Get the momentum z
44 Double_t getMomentumZ() const{return m_zMomentum;}
45
46 // Get Drift Distance
47 Double_t getDriftDistance() const {return m_driftDistance;}
48
49 // Get the total deposited energy
50 Double_t getDepositEnergy() const {return m_depositEnergy;}
51
52 // Get the position flag
53 Int_t getPositionFlag() const {return m_posFlag; }
54
55 // Get the flight length
56 Double_t getFlightLength() const{return m_flightLength;}
57
58 // Get the creator process
59 TString getCreatorProcess() const{return m_creatorProcess;}
60
61 // Get the creator process
62 Int_t getDigiIdx() const{return m_digiIdx;}
63
64 //Set
65 void setId(UInt_t id) {m_id = id ;}
66 void setTrackIndex(UInt_t trackIndex){ m_trackIndex = trackIndex;}
67 void setCurrentTrackPID(Int_t currentTrackPID){
68 m_currentTrackPID = currentTrackPID;}
69 void setIsSecondary(Int_t isSecondary){m_isSecondary = isSecondary;}
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 setMomentumX(Double_t momentumX) {m_xMomentum = momentumX;}
74 void setMomentumY(Double_t momentumY) {m_yMomentum = momentumY;}
75 void setMomentumZ(Double_t momentumZ) {m_zMomentum = momentumZ;}
76 void setDriftDistance(Double_t driftDistance){m_driftDistance = driftDistance;}
77 void setDepositEnergy(Double_t depositEnergy) {m_depositEnergy = depositEnergy;}
78 void setPositionFlag(Int_t posFlag) { m_posFlag = posFlag; }
79 void setFlightLength(Double_t flightLength){m_flightLength = flightLength;}
80 void setCreatorProcess(TString creatorProcess){
81 m_creatorProcess = creatorProcess;}
82
83 void setDigiIdx(int digiIdx){ m_digiIdx = digiIdx;}
84private:
85
86 UInt_t m_id;
87
88 UInt_t m_trackIndex;
89
90 Int_t m_currentTrackPID;
91
92 Int_t m_isSecondary;
93
94 Double_t m_xPosition;
95
96 Double_t m_yPosition;
97
98 Double_t m_zPosition;
99
100 Double_t m_xMomentum;
101
102 Double_t m_yMomentum;
103
104 Double_t m_zMomentum;
105
106 Double_t m_driftDistance ;
107
108 Double_t m_depositEnergy;
109
110 Int_t m_posFlag;
111
112 Double_t m_flightLength;
113
114 TString m_creatorProcess;
115
116 Int_t m_digiIdx;
117
118 ClassDef(TMdcMc,2)
119};
120
121
122#endif //TrackRootData_TMdcMc_H
123
Definition TMdcMc.h:9
void setMomentumX(Double_t momentumX)
Definition TMdcMc.h:73
UInt_t getId() const
Definition TMdcMc.h:17
Double_t getDepositEnergy() const
Definition TMdcMc.h:50
Int_t getDigiIdx() const
Definition TMdcMc.h:62
Double_t getPositionZ() const
Definition TMdcMc.h:35
void setCurrentTrackPID(Int_t currentTrackPID)
Definition TMdcMc.h:67
void setPositionZ(Double_t positionZ)
Definition TMdcMc.h:72
TString getCreatorProcess() const
Definition TMdcMc.h:59
void setIsSecondary(Int_t isSecondary)
Definition TMdcMc.h:69
Double_t getDriftDistance() const
Definition TMdcMc.h:47
void setDigiIdx(int digiIdx)
Definition TMdcMc.h:83
Double_t getFlightLength() const
Definition TMdcMc.h:56
void setId(UInt_t id)
Definition TMdcMc.h:65
~TMdcMc()
Definition TMdcMc.cxx:12
Double_t getMomentumX() const
Definition TMdcMc.h:38
void setMomentumY(Double_t momentumY)
Definition TMdcMc.h:74
void setTrackIndex(UInt_t trackIndex)
Definition TMdcMc.h:66
void setFlightLength(Double_t flightLength)
Definition TMdcMc.h:79
UInt_t getTrackIndex() const
Definition TMdcMc.h:20
Double_t getMomentumZ() const
Definition TMdcMc.h:44
void setDepositEnergy(Double_t depositEnergy)
Definition TMdcMc.h:77
Int_t getPositionFlag() const
Definition TMdcMc.h:53
Double_t getPositionX() const
Definition TMdcMc.h:29
Double_t getIsSecondary() const
Definition TMdcMc.h:26
void setPositionX(Double_t positionX)
Definition TMdcMc.h:70
void setCreatorProcess(TString creatorProcess)
Definition TMdcMc.h:80
void setPositionFlag(Int_t posFlag)
Definition TMdcMc.h:78
Double_t getPositionY() const
Definition TMdcMc.h:32
Int_t getCurrentTrackPID() const
Definition TMdcMc.h:23
void setPositionY(Double_t positionY)
Definition TMdcMc.h:71
void setDriftDistance(Double_t driftDistance)
Definition TMdcMc.h:76
Double_t getMomentumY() const
Definition TMdcMc.h:41
void setMomentumZ(Double_t momentumZ)
Definition TMdcMc.h:75