CGEM BOSS 6.6.5.h
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 position x
23 Double_t getPositionX() const {return m_xPosition;}
24
25 // Get the position y
26 Double_t getPositionY() const {return m_yPosition;}
27
28 // Get the position z
29 Double_t getPositionZ() const {return m_zPosition;}
30
31 // Get Drift Distance
32 Double_t getDriftDistance() const {return m_driftDistance;}
33
34 // Get the total deposited energy
35 Double_t getDepositEnergy() const {return m_depositEnergy;}
36
37 // Get the position flag
38 Int_t getPositionFlag() const {return m_posFlag; }
39
40 Int_t getPDGCode() const {return m_pdg_code;}
41 Int_t getIsSecondary() const {return m_isSecondary;}
42
43 // Get the momentum x
44 Double_t getMomentumX() const{return m_xMomentum;}
45
46 // Get the momentum y
47 Double_t getMomentumY() const{return m_yMomentum;}
48
49 // Get the momentum z
50 Double_t getMomentumZ() const{return m_zMomentum;}
51
52 // Get the flight length
53 Double_t getFlightLength() const{return m_flightLength;}
54
55 TString getCreatorProcess() const {return m_creatorProcess;}
56
57 Int_t getDigiIdx() const {return m_digi_id;}// positve: contribute to both time and charge, negative: only charge
58
59
60
61
62
63
64
65//Set
66 void setId(UInt_t id) {m_id = id ;}
67 void setTrackIndex(UInt_t trackIndex){ m_trackIndex = trackIndex;}
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 setDriftDistance(Double_t driftDistance){m_driftDistance = driftDistance;}
72 void setDepositEnergy(Double_t depositEnergy) {m_depositEnergy = depositEnergy;}
73 void setPositionFlag(Int_t posFlag) { m_posFlag = posFlag; }
74
75 void setPDGCode(Int_t code) { m_pdg_code=code;}
76 void setIsSecondary(Int_t isSec) { m_isSecondary=isSec;}
77 void setMomentumX(Double_t momentumX) {m_xMomentum = momentumX;}
78 void setMomentumY(Double_t momentumY) {m_yMomentum = momentumY;}
79 void setMomentumZ(Double_t momentumZ) {m_zMomentum = momentumZ;}
80 void setFlightLength(Double_t flightLength){m_flightLength = flightLength;}
81 void setCreatorProcess (TString creatorProcess) {m_creatorProcess = creatorProcess;};
82 void setDigiIdx( Int_t id) {m_digi_id=id;};
83
84private:
85
86 UInt_t m_id;
87
88 UInt_t m_trackIndex;
89
90 Double_t m_xPosition;
91
92 Double_t m_yPosition;
93
94 Double_t m_zPosition;
95
96 Double_t m_driftDistance ;
97
98 Double_t m_depositEnergy;
99
100 Int_t m_posFlag;
101
102 Int_t m_pdg_code;
103 Int_t m_isSecondary;
104 Double_t m_xMomentum;
105 Double_t m_yMomentum;
106 Double_t m_zMomentum;
107 Double_t m_flightLength;//from vertex
108 TString m_creatorProcess; /* Name of the generation process */
109 Int_t m_digi_id;// positve: contribute to both time and charge, negative: only charge
110
111
112
113 ClassDef(TMdcMc,1)
114};
115
116
117#endif //TrackRootData_TMdcMc_H
118
Definition TMdcMc.h:9
void setMomentumX(Double_t momentumX)
Definition TMdcMc.h:77
UInt_t getId() const
Definition TMdcMc.h:17
Double_t getDepositEnergy() const
Definition TMdcMc.h:35
Int_t getDigiIdx() const
Definition TMdcMc.h:57
Double_t getPositionZ() const
Definition TMdcMc.h:29
void setPositionZ(Double_t positionZ)
Definition TMdcMc.h:70
TString getCreatorProcess() const
Definition TMdcMc.h:55
Double_t getDriftDistance() const
Definition TMdcMc.h:32
Int_t getPDGCode() const
Definition TMdcMc.h:40
void setDigiIdx(Int_t id)
Definition TMdcMc.h:82
Double_t getFlightLength() const
Definition TMdcMc.h:53
void setId(UInt_t id)
Definition TMdcMc.h:66
~TMdcMc()
Definition TMdcMc.cxx:12
Double_t getMomentumX() const
Definition TMdcMc.h:44
void setMomentumY(Double_t momentumY)
Definition TMdcMc.h:78
void setPDGCode(Int_t code)
Definition TMdcMc.h:75
void setTrackIndex(UInt_t trackIndex)
Definition TMdcMc.h:67
void setFlightLength(Double_t flightLength)
Definition TMdcMc.h:80
UInt_t getTrackIndex() const
Definition TMdcMc.h:20
Double_t getMomentumZ() const
Definition TMdcMc.h:50
void setDepositEnergy(Double_t depositEnergy)
Definition TMdcMc.h:72
Int_t getPositionFlag() const
Definition TMdcMc.h:38
Double_t getPositionX() const
Definition TMdcMc.h:23
void setPositionX(Double_t positionX)
Definition TMdcMc.h:68
void setCreatorProcess(TString creatorProcess)
Definition TMdcMc.h:81
void setIsSecondary(Int_t isSec)
Definition TMdcMc.h:76
void setPositionFlag(Int_t posFlag)
Definition TMdcMc.h:73
Double_t getPositionY() const
Definition TMdcMc.h:26
void setPositionY(Double_t positionY)
Definition TMdcMc.h:69
void setDriftDistance(Double_t driftDistance)
Definition TMdcMc.h:71
Int_t getIsSecondary() const
Definition TMdcMc.h:41
Double_t getMomentumY() const
Definition TMdcMc.h:47
void setMomentumZ(Double_t momentumZ)
Definition TMdcMc.h:79