BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TofMcHit.h
Go to the documentation of this file.
1#ifndef TofMcHit_H
2#define TofMcHit_H
3#include <algorithm>
4#include "GaudiKernel/ContainedObject.h"
6#include "GaudiKernel/ObjectVector.h"
8
9using namespace EventModel;
10extern const CLID& CLID_TofMcHit;
11
12namespace Event { // NameSpace
13class TofMcHit : virtual public ContainedObject {
14public:
15 virtual const CLID& clID() const
16 {
17 return TofMcHit::classID();
18 }
19
20 static const CLID& classID()
21 {
22 return CLID_TofMcHit;
23 }
24 // Constructor
26 TofMcHit(const Identifier& id, unsigned int trackIndex, double xPosition,
27 double yPosition, double zPosition, double px, double py,
28 double pz, double trackLength, double flightTime);
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 // Get the trajectory length
55 double getTrackLength() const;
56
57 // Get the flight time
58 double getFlightTime() const;
59//Set
60 void setIdentifier(unsigned int id) {m_id = id;}
61 void setTrackIndex(unsigned int trackIndex){ m_trackIndex = trackIndex;}
62 void setPositionX(double positionX) {m_xPosition = positionX;}
63 void setPositionY(double positionY) {m_yPosition = positionY;}
64 void setPositionZ(double positionZ) {m_zPosition = positionZ;}
65 void setPx(double px) {m_px = px;}
66 void setPy(double py) {m_py = py;}
67 void setPz(double pz) {m_pz = pz;}
68 void setTrackLength(double trackLength) {m_trackLength = trackLength; }
69 void setFlightTime(double flightTime ) {m_flightTime = flightTime; }
70
71
72private:
73 TofMcHit(const TofMcHit &);
74
75 TofMcHit &operator=(const TofMcHit &);
76
77 // const Identifier m_id; //2005/12/29 wensp modified
78
79 Identifier m_id;
80
81 unsigned int m_trackIndex;
82
83 double m_xPosition;
84
85 double m_yPosition;
86
87 double m_zPosition;
88
89 double m_px;
90
91 double m_py;
92
93 double m_pz;
94
95 double m_trackLength;
96
97 double m_flightTime;
98};
99
100typedef ObjectVector<TofMcHit> TofMcHitCol;
101
102} // NameSpace Event
103#endif
const CLID & CLID_TofMcHit
Definition: EventModel.cxx:213
const CLID & CLID_TofMcHit
Definition: EventModel.cxx:213
void setTrackIndex(unsigned int trackIndex)
Definition: TofMcHit.h:61
void setPx(double px)
Definition: TofMcHit.h:65
void setPositionX(double positionX)
Definition: TofMcHit.h:62
double getFlightTime() const
Definition: TofMcHit.cxx:56
unsigned int getTrackIndex() const
Definition: TofMcHit.cxx:16
double getPositionZ() const
Definition: TofMcHit.cxx:31
Identifier identify() const
Definition: TofMcHit.cxx:11
double getPositionY() const
Definition: TofMcHit.cxx:26
void setPz(double pz)
Definition: TofMcHit.h:67
void setPy(double py)
Definition: TofMcHit.h:66
double getTrackLength() const
Definition: TofMcHit.cxx:51
void setIdentifier(unsigned int id)
Definition: TofMcHit.h:60
void setFlightTime(double flightTime)
Definition: TofMcHit.h:69
double getPositionX() const
Definition: TofMcHit.cxx:21
static const CLID & classID()
Definition: TofMcHit.h:20
double getPy() const
Definition: TofMcHit.cxx:41
void setTrackLength(double trackLength)
Definition: TofMcHit.h:68
void setPositionZ(double positionZ)
Definition: TofMcHit.h:64
void setPositionY(double positionY)
Definition: TofMcHit.h:63
double getPx() const
Definition: TofMcHit.cxx:36
virtual const CLID & clID() const
Definition: TofMcHit.h:15
double getPz() const
Definition: TofMcHit.cxx:46
Definition: Event.h:21
ObjectVector< TofMcHit > TofMcHitCol
Definition: TofMcHit.h:100