BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/McTruth/McTruth/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"
5#include "Identifier/Identifier.h"
6#include "GaudiKernel/ObjectVector.h"
7#include "EventModel/EventModel.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
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
double getPy() const
unsigned int getTrackIndex() const
MucMcHit(const Identifier &id, unsigned int trackIndex, double xPosition, double yPosition, double zPosition, double px, double py, double pz)
double getPositionX() const
double getPositionY() const
Identifier identify() const
double getPx() const
double getPositionZ() const
void setTrackIndex(unsigned int trackIndex)
ObjectVector< MucMcHit > MucMcHitCol