BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/include/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 TTofMc();
12 ~TTofMc();
13 // Get
14 // Get associated id
15 UInt_t getId() const { return m_id; }
16
17 // Get the associated track id
18 UInt_t getTrackIndex() const { return m_trackIndex; }
19
20 // Get the position x
21 Double_t getPositionX() const { return m_xPosition; }
22
23 // Get the position y
24 Double_t getPositionY() const { return m_yPosition; }
25
26 // Get the position z
27 Double_t getPositionZ() const { return m_zPosition; }
28
29 // Get momentum Px
30 Double_t getPx() const { return m_px; }
31
32 // Get momentum Py
33 Double_t getPy() const { return m_py; }
34
35 // Get momentum Pz
36 Double_t getPz() const { return m_pz; }
37
38 // Get the trajectory length
39 Double_t getTrackLength() const { return m_trackLength; }
40
41 // Get the flight time
42 Double_t getFlightTime() const { return m_flightTime; }
43
44 // Set
45 void setId( UInt_t id ) { m_id = id; }
46 void setTrackIndex( UInt_t trackIndex ) { m_trackIndex = trackIndex; }
47 void setPositionX( Double_t positionX ) { m_xPosition = positionX; }
48 void setPositionY( Double_t positionY ) { m_yPosition = positionY; }
49 void setPositionZ( Double_t positionZ ) { m_zPosition = positionZ; }
50 void setPx( Double_t px ) { m_px = px; }
51 void setPy( Double_t py ) { m_py = py; }
52 void setPz( Double_t pz ) { m_pz = pz; }
53 void setTrackLength( Double_t trackLength ) { m_trackLength = trackLength; }
54 void setFlightTime( Double_t flightTime ) { m_flightTime = flightTime; }
55
56private:
57 UInt_t m_id;
58
59 UInt_t m_trackIndex;
60
61 Double_t m_xPosition;
62
63 Double_t m_yPosition;
64
65 Double_t m_zPosition;
66
67 Double_t m_px;
68
69 Double_t m_py;
70
71 Double_t m_pz;
72
73 Double_t m_trackLength;
74
75 Double_t m_flightTime;
76
77 ClassDef( TTofMc, 1 )
78};
79
80#endif // TrackRootData_TTofMc_H
NTuple::Item< double > m_pz
void setTrackLength(Double_t trackLength)
TTofMc()
Definition TTofMc.cxx:7
void setFlightTime(Double_t flightTime)
~TTofMc()
Definition TTofMc.cxx:10