CGEM BOSS 6.6.5.g
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 unsigned int currentTrackIndex, 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_currentTrackIndex(currentTrackIndex),
16 m_currentTrackPID(currentTrackPID),m_xPosition(xPosition),
17 m_yPosition(yPosition),m_zPosition(zPosition),m_xMomentum(xMomentum),
18 m_yMomentum(yMomentum),m_zMomentum(zMomentum),
19 m_driftDistance(driftDistance), m_depositEnergy(depositEnergy),
20 m_posFlag(posFlag),m_flightLength(flightLength)
21{ }
22
23// Get associated id
25 return m_id;
26}
27
28// Get the associated track id
29unsigned int Event::MdcMcHit::getTrackIndex() const {
30 return m_trackIndex;
31}
32
33// Get the position x
35 return m_xPosition;
36}
37
38// Get the position y
40 return m_yPosition;
41}
42
43// Get the position z
45 return m_zPosition;
46}
47
48// Get Drift Distance
50 return m_driftDistance;
51}
52
53// Get deposited energy
55 return m_depositEnergy;
56}
57
58//Get the position flag
60 return m_posFlag;
61}
62
double getPositionZ() const
Definition: MdcMcHit.cxx:44
int getPositionFlag() const
Definition: MdcMcHit.cxx:59
double getDepositEnergy() const
Definition: MdcMcHit.cxx:54
unsigned int getTrackIndex() const
Definition: MdcMcHit.cxx:29
double getDriftDistance() const
Definition: MdcMcHit.cxx:49
double getPositionX() const
Definition: MdcMcHit.cxx:34
Identifier identify() const
Definition: MdcMcHit.cxx:24
double getPositionY() const
Definition: MdcMcHit.cxx:39