CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TTofMc.h
Go to the documentation of this file.
1#ifndef RootEventData_TTofMc_H
2#define RootEventData_TTofMc_H 1
3
4#include "TObject.h"
5//#include <vector>
6//using namespace std;
7
8class TTofMc : public TObject {
9
10public:
11
13 ~TTofMc();
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 momentum Px
31 Double_t getPx() const {return m_px ;}
32
33 // Get momentum Py
34 Double_t getPy() const {return m_py ;}
35
36 // Get momentum Pz
37 Double_t getPz() const {return m_pz ;}
38
39 // Get the trajectory length
40 Double_t getTrackLength() const{return m_trackLength;}
41
42 // Get the flight time
43 Double_t getFlightTime() const{return m_flightTime; }
44
45 //Set
46 void setId(UInt_t id) {m_id = id ;}
47 void setTrackIndex(UInt_t trackIndex){ m_trackIndex = trackIndex;}
48 void setPositionX(Double_t positionX) {m_xPosition = positionX;}
49 void setPositionY(Double_t positionY) {m_yPosition = positionY;}
50 void setPositionZ(Double_t positionZ) {m_zPosition = positionZ;}
51 void setPx(Double_t px) {m_px = px;}
52 void setPy(Double_t py) {m_py = py;}
53 void setPz(Double_t pz) {m_pz = pz;}
54 void setTrackLength(Double_t trackLength) {m_trackLength = trackLength; }
55 void setFlightTime(Double_t flightTime ) {m_flightTime = flightTime; }
56
57private:
58
59 UInt_t m_id;
60
61 UInt_t m_trackIndex;
62
63 Double_t m_xPosition;
64
65 Double_t m_yPosition;
66
67 Double_t m_zPosition;
68
69 Double_t m_px;
70
71 Double_t m_py;
72
73 Double_t m_pz;
74
75 Double_t m_trackLength;
76
77 Double_t m_flightTime;
78
79 ClassDef(TTofMc,1)
80};
81
82
83#endif //TrackRootData_TTofMc_H
84
Definition TTofMc.h:8
void setTrackIndex(UInt_t trackIndex)
Definition TTofMc.h:47
Double_t getPositionY() const
Definition TTofMc.h:25
Double_t getPz() const
Definition TTofMc.h:37
void setId(UInt_t id)
Definition TTofMc.h:46
void setPositionY(Double_t positionY)
Definition TTofMc.h:49
Double_t getPositionX() const
Definition TTofMc.h:22
void setTrackLength(Double_t trackLength)
Definition TTofMc.h:54
void setPz(Double_t pz)
Definition TTofMc.h:53
UInt_t getTrackIndex() const
Definition TTofMc.h:19
Double_t getPx() const
Definition TTofMc.h:31
void setPy(Double_t py)
Definition TTofMc.h:52
void setFlightTime(Double_t flightTime)
Definition TTofMc.h:55
void setPx(Double_t px)
Definition TTofMc.h:51
void setPositionZ(Double_t positionZ)
Definition TTofMc.h:50
Double_t getPositionZ() const
Definition TTofMc.h:28
~TTofMc()
Definition TTofMc.cxx:12
void setPositionX(Double_t positionX)
Definition TTofMc.h:48
Double_t getFlightTime() const
Definition TTofMc.h:43
Double_t getPy() const
Definition TTofMc.h:34
UInt_t getId() const
Definition TTofMc.h:16
Double_t getTrackLength() const
Definition TTofMc.h:40