BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/McTruth/McTruth/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"
5#include "Identifier/Identifier.h"
6#include "GaudiKernel/ObjectVector.h"
7#include "EventModel/EventModel.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
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:217
const CLID & CLID_TofMcHit
Definition: EventModel.cxx:217
void setTrackIndex(unsigned int trackIndex)
double getFlightTime() const
unsigned int getTrackIndex() const
double getPositionZ() const
Identifier identify() const
double getPositionY() const
double getTrackLength() const
TofMcHit(const Identifier &id, unsigned int trackIndex, double xPosition, double yPosition, double zPosition, double px, double py, double pz, double trackLength, double flightTime)
double getPositionX() const
double getPy() const
double getPx() const
double getPz() const
ObjectVector< TofMcHit > TofMcHitCol