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