BOSS 6.6.4.p03
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
10// Get associated id
12 return m_id;
13}
14
15// Get the associated track id
16unsigned int Event::MdcMcHit::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 Drift Distance
37 return m_driftDistance;
38}
39
40// Get deposited energy
42 return m_depositEnergy;
43}
44
45//Get the position flag
47 return m_posFlag;
48}
49
double getPositionZ() const
Definition: MdcMcHit.cxx:31
int getPositionFlag() const
Definition: MdcMcHit.cxx:46
double getDepositEnergy() const
Definition: MdcMcHit.cxx:41
unsigned int getTrackIndex() const
Definition: MdcMcHit.cxx:16
double getDriftDistance() const
Definition: MdcMcHit.cxx:36
double getPositionX() const
Definition: MdcMcHit.cxx:21
Identifier identify() const
Definition: MdcMcHit.cxx:11
double getPositionY() const
Definition: MdcMcHit.cxx:26