BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/RootEventData-00-03-80/RootEventData/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
~TTofMc()
Definition: TTofMc.cxx:12