BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcMcHit.cxx
Go to the documentation of this file.
1#include "McTruth/MdcMcHit.h"
2
3Event::MdcMcHit::MdcMcHit(const Identifier& id, unsigned int trackIndex, double xPosition,
4 double yPosition, double zPosition, double driftDistance,
5 double depositEnergy, int posFlag) : m_id(id), m_trackIndex(trackIndex),
6 m_xPosition(xPosition), m_yPosition(yPosition),m_zPosition(zPosition),
7 m_driftDistance(driftDistance), m_depositEnergy(depositEnergy), m_posFlag(posFlag)
8{ }
9
10Event::MdcMcHit::MdcMcHit(const Identifier& id, unsigned int trackIndex,
11 int currentTrackPID,double xPosition,
12 double yPosition, double zPosition, double xMomentum,
13 double yMomentum, double zMomentum, double driftDistance,
14 double depositEnergy, double flightLength, int posFlag):
15 m_id(id), m_trackIndex(trackIndex),m_currentTrackPID(currentTrackPID),
16 m_xPosition(xPosition),m_yPosition(yPosition),m_zPosition(zPosition),
17 m_xMomentum(xMomentum),m_yMomentum(yMomentum),m_zMomentum(zMomentum),
18 m_driftDistance(driftDistance), m_depositEnergy(depositEnergy),
19 m_posFlag(posFlag),m_flightLength(flightLength)
20{ }
21
22// Get associated id
24 return m_id;
25}
26
27// Get the associated track id
28unsigned int Event::MdcMcHit::getTrackIndex() const {
29 return m_trackIndex;
30}
31
32// Get the position x
34 return m_xPosition;
35}
36
37// Get the position y
39 return m_yPosition;
40}
41
42// Get the position z
44 return m_zPosition;
45}
46
47// Get Drift Distance
49 return m_driftDistance;
50}
51
52// Get deposited energy
54 return m_depositEnergy;
55}
56
57//Get the position flag
59 return m_posFlag;
60}
61
double getPositionZ() const
Definition: MdcMcHit.cxx:43
int getPositionFlag() const
Definition: MdcMcHit.cxx:58
double getDepositEnergy() const
Definition: MdcMcHit.cxx:53
unsigned int getTrackIndex() const
Definition: MdcMcHit.cxx:28
double getDriftDistance() const
Definition: MdcMcHit.cxx:48
double getPositionX() const
Definition: MdcMcHit.cxx:33
Identifier identify() const
Definition: MdcMcHit.cxx:23
double getPositionY() const
Definition: MdcMcHit.cxx:38