BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
MucMcHit.h
Go to the documentation of this file.
1#ifndef MucMcHit_H
2#define MucMcHit_H
3#include <algorithm>
4#include "GaudiKernel/ContainedObject.h"
6#include "GaudiKernel/ObjectVector.h"
8
9using namespace EventModel;
10extern const CLID& CLID_MucMcHit;
11
12namespace Event { // NameSpace
13
14class MucMcHit : virtual public ContainedObject {
15public:
16 virtual const CLID& clID() const
17 {
18 return MucMcHit::classID();
19 }
20
21 static const CLID& classID()
22 {
23 return CLID_MucMcHit;
24 }
25 // Constructor
27 MucMcHit(const Identifier& id, unsigned int trackIndex, double xPosition,
28 double yPosition, double zPosition, double px, double py, double pz);
29
30 // Get associated id
31 Identifier identify() const;
32
33 // Get the associated track id
34 unsigned int getTrackIndex() const;
35
36 // Get the position x
37 double getPositionX() const;
38
39 // Get the position y
40 double getPositionY() const;
41
42 // Get the position z
43 double getPositionZ() const;
44
45 // Get momentum Px
46 double getPx() const;
47
48 // Get momentum Py
49 double getPy() const;
50
51 // Get momentum Pz
52 double getPz() const;
53
54//Set
55 void setIdentifier(unsigned id) {m_id = id;}
56 void setTrackIndex(unsigned int trackIndex){ m_trackIndex = trackIndex;}
57 void setPositionX(double positionX) {m_xPosition = positionX;}
58 void setPositionY(double positionY) {m_yPosition = positionY;}
59 void setPositionZ(double positionZ) {m_zPosition = positionZ;}
60 void setPx(double px) {m_px = px;}
61 void setPy(double py) {m_py = py;}
62 void setPz(double pz) {m_pz = pz;}
63
64
65private:
66 MucMcHit(const MucMcHit &);
67
68 MucMcHit &operator=(const MucMcHit &);
69
70 // const Identifier m_id; //2005/12/29 wensp modified
71
72 Identifier m_id;
73
74 unsigned int m_trackIndex;
75
76 double m_xPosition;
77
78 double m_yPosition;
79
80 double m_zPosition;
81
82 double m_px;
83
84 double m_py;
85
86 double m_pz;
87};
88
89typedef ObjectVector<MucMcHit> MucMcHitCol;
90
91} // NameSpace Event
92#endif
const CLID & CLID_MucMcHit
Definition: EventModel.cxx:223
const CLID & CLID_MucMcHit
Definition: EventModel.cxx:223
double getPz() const
Definition: MucMcHit.cxx:46
void setPositionX(double positionX)
Definition: MucMcHit.h:57
double getPy() const
Definition: MucMcHit.cxx:41
unsigned int getTrackIndex() const
Definition: MucMcHit.cxx:16
double getPositionX() const
Definition: MucMcHit.cxx:21
void setPx(double px)
Definition: MucMcHit.h:60
double getPositionY() const
Definition: MucMcHit.cxx:26
void setIdentifier(unsigned id)
Definition: MucMcHit.h:55
Identifier identify() const
Definition: MucMcHit.cxx:11
virtual const CLID & clID() const
Definition: MucMcHit.h:16
static const CLID & classID()
Definition: MucMcHit.h:21
void setPz(double pz)
Definition: MucMcHit.h:62
double getPx() const
Definition: MucMcHit.cxx:36
void setPositionZ(double positionZ)
Definition: MucMcHit.h:59
void setPositionY(double positionY)
Definition: MucMcHit.h:58
double getPositionZ() const
Definition: MucMcHit.cxx:31
void setPy(double py)
Definition: MucMcHit.h:61
void setTrackIndex(unsigned int trackIndex)
Definition: MucMcHit.h:56
Definition: Event.h:21
ObjectVector< MucMcHit > MucMcHitCol
Definition: MucMcHit.h:89