BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcMcHit.h
Go to the documentation of this file.
1#ifndef MdcMcHit_H
2#define MdcMcHit_H
3#include <algorithm>
4#include "GaudiKernel/ContainedObject.h"
6#include "GaudiKernel/ObjectVector.h"
8
9using namespace EventModel;
10extern const CLID& CLID_MdcMcHit;
11
12namespace Event { // NameSpace
13
14class MdcMcHit : virtual public ContainedObject {
15public:
16 virtual const CLID& clID() const
17 {
18 return MdcMcHit::classID();
19 }
20
21 static const CLID& classID()
22 {
23 return CLID_MdcMcHit;
24 }
25 // Constructor
27 MdcMcHit(const Identifier& id, unsigned int trackIndex, double xPosition,
28 double yPosition, double zPosition, double driftDistance,
29 double depositEnergy, int posFlag = -1);
30
31 // Get associated id
32 Identifier identify() const;
33
34 // Get the associated track id
35 unsigned int getTrackIndex() const;
36
37 // Get the position x
38 double getPositionX() const;
39
40 // Get the position y
41 double getPositionY() const;
42
43 // Get the position z
44 double getPositionZ() const;
45
46 // Get Drift Distance
47 double getDriftDistance() const;
48
49 // Get deposited energy
50 double getDepositEnergy() const;
51
52 // Get the position flag
53 int getPositionFlag() const;
54
55//Set
56 void setIdentifier(unsigned int id) {m_id = id ;}
57 void setTrackIndex(unsigned int trackIndex) {m_trackIndex = trackIndex;}
58 void setPositionX(double positionX) {m_xPosition = positionX;}
59 void setPositionY(double positionY) {m_yPosition = positionY;}
60 void setPositionZ(double positionZ) {m_zPosition = positionZ;}
61 void setDriftDistance(double driftDistance){m_driftDistance = driftDistance;}
62 void setDepositEnergy(double depositEnergy) {m_depositEnergy = depositEnergy;}
63 void setPositionFlag(int posFlag) { m_posFlag = posFlag; }
64
65private:
66 MdcMcHit(const MdcMcHit &);
67
68 MdcMcHit &operator=(const MdcMcHit &);
69
70 // const Identifier m_id;
71 Identifier m_id;
72
73 unsigned int m_trackIndex;
74
75 double m_xPosition;
76
77 double m_yPosition;
78
79 double m_zPosition;
80
81 double m_driftDistance;
82
83 double m_depositEnergy;
84
85 int m_posFlag;
86};
87
88typedef ObjectVector<MdcMcHit> MdcMcHitCol;
89
90} // NameSpace Event
91
92#endif
const CLID & CLID_MdcMcHit
Definition: EventModel.cxx:214
const CLID & CLID_MdcMcHit
Definition: EventModel.cxx:214
double getPositionZ() const
Definition: MdcMcHit.cxx:31
int getPositionFlag() const
Definition: MdcMcHit.cxx:46
double getDepositEnergy() const
Definition: MdcMcHit.cxx:41
virtual const CLID & clID() const
Definition: MdcMcHit.h:16
void setPositionFlag(int posFlag)
Definition: MdcMcHit.h:63
unsigned int getTrackIndex() const
Definition: MdcMcHit.cxx:16
void setPositionZ(double positionZ)
Definition: MdcMcHit.h:60
static const CLID & classID()
Definition: MdcMcHit.h:21
void setDepositEnergy(double depositEnergy)
Definition: MdcMcHit.h:62
double getDriftDistance() const
Definition: MdcMcHit.cxx:36
void setIdentifier(unsigned int id)
Definition: MdcMcHit.h:56
void setPositionY(double positionY)
Definition: MdcMcHit.h:59
double getPositionX() const
Definition: MdcMcHit.cxx:21
void setTrackIndex(unsigned int trackIndex)
Definition: MdcMcHit.h:57
Identifier identify() const
Definition: MdcMcHit.cxx:11
void setDriftDistance(double driftDistance)
Definition: MdcMcHit.h:61
double getPositionY() const
Definition: MdcMcHit.cxx:26
void setPositionX(double positionX)
Definition: MdcMcHit.h:58
Definition: Event.h:21
ObjectVector< MdcMcHit > MdcMcHitCol
Definition: MdcMcHit.h:88