BOSS 7.0.6
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 <vector>
6//using namespace std;
7
8class TMdcMc : public TObject {
9
10public:
11
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 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
Definition: TMdcMc.h:8
UInt_t getId() const
Definition: TMdcMc.h:16
Double_t getDepositEnergy() const
Definition: TMdcMc.h:34
Double_t getPositionZ() const
Definition: TMdcMc.h:28
void setPositionZ(Double_t positionZ)
Definition: TMdcMc.h:47
Double_t getDriftDistance() const
Definition: TMdcMc.h:31
void setId(UInt_t id)
Definition: TMdcMc.h:43
~TMdcMc()
Definition: TMdcMc.cxx:12
void setTrackIndex(UInt_t trackIndex)
Definition: TMdcMc.h:44
UInt_t getTrackIndex() const
Definition: TMdcMc.h:19
void setDepositEnergy(Double_t depositEnergy)
Definition: TMdcMc.h:49
Int_t getPositionFlag() const
Definition: TMdcMc.h:37
Double_t getPositionX() const
Definition: TMdcMc.h:22
void setPositionX(Double_t positionX)
Definition: TMdcMc.h:45
void setPositionFlag(Int_t posFlag)
Definition: TMdcMc.h:50
Double_t getPositionY() const
Definition: TMdcMc.h:25
void setPositionY(Double_t positionY)
Definition: TMdcMc.h:46
void setDriftDistance(Double_t driftDistance)
Definition: TMdcMc.h:48