CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
MucMcHit.cxx
Go to the documentation of this file.
1#include "McTruth/MucMcHit.h"
2
3Event::MucMcHit::MucMcHit(const Identifier& id, unsigned int trackIndex, double xPosition,
4 double yPosition, double zPosition, double px, double py,
5 double pz)
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){}
9
10// Get associated id
12 return m_id;
13}
14
15// Get the associated track id
16unsigned int Event::MucMcHit::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::MucMcHit::getPx() const {
37 return m_px;
38}
39
40// Get momentum Py
41double Event::MucMcHit::getPy() const {
42 return m_py;
43}
44
45// Get momentum Pz
46double Event::MucMcHit::getPz() const {
47 return m_pz;
48}
49
NTuple::Item< double > m_pz
Definition MdcHistItem.h:78
double getPz() const
Definition MucMcHit.cxx:46
double getPy() const
Definition MucMcHit.cxx:41
unsigned int getTrackIndex() const
Definition MucMcHit.cxx:16
double getPositionX() const
Definition MucMcHit.cxx:21
double getPositionY() const
Definition MucMcHit.cxx:26
Identifier identify() const
Definition MucMcHit.cxx:11
double getPx() const
Definition MucMcHit.cxx:36
double getPositionZ() const
Definition MucMcHit.cxx:31