BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TofMcHit.cxx
Go to the documentation of this file.
1#include "McTruth/TofMcHit.h"
2
3Event::TofMcHit::TofMcHit(const Identifier& id, unsigned int trackIndex, double xPosition,
4 double yPosition, double zPosition, double px, double py,
5 double pz, double trackLength, double flightTime)
6 : m_id(id), m_trackIndex(trackIndex),
7 m_xPosition(xPosition), m_yPosition(yPosition),m_zPosition(zPosition),
8 m_px(px), m_py(py), m_pz(pz), m_trackLength(trackLength), m_flightTime(flightTime){}
9
10// Get associated id
12 return m_id;
13}
14
15// Get the associated track id
16unsigned int Event::TofMcHit::getTrackIndex() const {
17 return m_trackIndex;
18}
19
20// Get the position x
22 return m_xPosition;
23}
24
25// Get the position y
27 return m_yPosition;
28}
29
30// Get the position z
32 return m_zPosition;
33}
34
35// Get momentum Px
36double Event::TofMcHit::getPx() const {
37 return m_px;
38}
39
40// Get momentum Py
41double Event::TofMcHit::getPy() const {
42 return m_py;
43}
44
45// Get momentum Pz
46double Event::TofMcHit::getPz() const {
47 return m_pz;
48}
49
50// Get the trajectory length
52 return m_trackLength;
53}
54
55// Get the flight time
57 return m_flightTime;
58}
NTuple::Item< double > m_pz
Definition: MdcHistItem.h:78
double getFlightTime() const
Definition: TofMcHit.cxx:56
unsigned int getTrackIndex() const
Definition: TofMcHit.cxx:16
double getPositionZ() const
Definition: TofMcHit.cxx:31
Identifier identify() const
Definition: TofMcHit.cxx:11
double getPositionY() const
Definition: TofMcHit.cxx:26
double getTrackLength() const
Definition: TofMcHit.cxx:51
double getPositionX() const
Definition: TofMcHit.cxx:21
double getPy() const
Definition: TofMcHit.cxx:41
double getPx() const
Definition: TofMcHit.cxx:36
double getPz() const
Definition: TofMcHit.cxx:46