BOSS 8.0.0
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, double pz,
5 double trackLength, double flightTime )
6 : m_id( id )
7 , m_trackIndex( trackIndex )
8 , m_xPosition( xPosition )
9 , m_yPosition( yPosition )
10 , m_zPosition( zPosition )
11 , m_px( px )
12 , m_py( py )
13 , m_pz( pz )
14 , m_trackLength( trackLength )
15 , m_flightTime( flightTime ) {}
16
17// Get associated id
18Identifier Event::TofMcHit::identify() const { return m_id; }
19
20// Get the associated track id
21unsigned int Event::TofMcHit::getTrackIndex() const { return m_trackIndex; }
22
23// Get the position x
24double Event::TofMcHit::getPositionX() const { return m_xPosition; }
25
26// Get the position y
27double Event::TofMcHit::getPositionY() const { return m_yPosition; }
28
29// Get the position z
30double Event::TofMcHit::getPositionZ() const { return m_zPosition; }
31
32// Get momentum Px
33double Event::TofMcHit::getPx() const { return m_px; }
34
35// Get momentum Py
36double Event::TofMcHit::getPy() const { return m_py; }
37
38// Get momentum Pz
39double Event::TofMcHit::getPz() const { return m_pz; }
40
41// Get the trajectory length
42double Event::TofMcHit::getTrackLength() const { return m_trackLength; }
43
44// Get the flight time
45double Event::TofMcHit::getFlightTime() const { return m_flightTime; }
double getFlightTime() const
Definition TofMcHit.cxx:45
unsigned int getTrackIndex() const
Definition TofMcHit.cxx:21
double getPositionZ() const
Definition TofMcHit.cxx:30
Identifier identify() const
Definition TofMcHit.cxx:18
double getPositionY() const
Definition TofMcHit.cxx:27
double getTrackLength() const
Definition TofMcHit.cxx:42
double getPositionX() const
Definition TofMcHit.cxx:24
double getPy() const
Definition TofMcHit.cxx:36
double getPx() const
Definition TofMcHit.cxx:33
double getPz() const
Definition TofMcHit.cxx:39