CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
DstMucTrack.h
Go to the documentation of this file.
1#ifndef DST_MUCTRACK_H
2#define DST_MUCTRACK_H
3#include "GaudiKernel/ObjectVector.h"
4#include "GaudiKernel/ContainedObject.h"
6#include <vector>
7
8using namespace std;
9
10using namespace EventModel;
11extern const CLID &CLID_DstMucTrack;
12
13//class MucTrack;
14class DstMucTrack : virtual public ContainedObject {
15
16public:
18
19 /// Assignment constructor.
20 //DstMucTrack& operator=(const MucTrack& source);
21
22 //void copy(const MucTrack* orig);
23
24 /// Copy constructor.
25 //DstMucTrack(const MucTrack& source);
26
27 virtual ~DstMucTrack() {}
28
29 virtual const CLID& clID() const { return DstMucTrack::classID();}
30 static const CLID& classID() { return CLID_DstMucTrack; }
31
32 int trackId() const { return m_trackId ; }
33 int id() const { return m_id; }
34 int status() const { return m_status; }
35 int type() const { return m_type; }
36
37 int startPart() const { return m_startPart; } // start position of track locates in which part
38 int endPart() const { return m_endPart; } // end position of track locates in which part
39 int brLastLayer() const { return m_brLastLayer; } // last layer with hits in barrel
40 int ecLastLayer() const { return m_ecLastLayer; } // last layer with hits in end cap
41 int numHits() const { return m_numHits; } // total hits on the track
42 int numLayers() const { return m_numLayers; } // number of layers with hits
43 int maxHitsInLayer() const { return m_maxHitsInLayer; }
44
45 double depth() const { return m_depth; } // depth of the track transport in iron
46 double chi2() const { return m_chi2; }
47 int dof() const { return m_dof; }
48 double rms() const { return m_rms; }
49
50 double xPos() const { return m_xPos; } // position on the start of track in muc (vertex)
51 double yPos() const { return m_yPos; }
52 double zPos() const { return m_zPos; }
53
54 double xPosSigma() const { return m_xPosSigma; }
55 double yPosSigma() const { return m_yPosSigma; }
56 double zPosSigma() const { return m_zPosSigma; }
57
58 double px() const { return m_px; } // momentum on the start of track in muc
59 double py() const { return m_py; }
60 double pz() const { return m_pz; }
61
62 double distance() const { return m_distance;}
63 double deltaPhi() const { return m_deltaPhi;}
64
65 vector<int> vecHits() const { return m_vecHits ;}
66
67 //added by LI Chunhua 2013/02/01
68 double kalRechi2() const {return m_kalrechi2;}
69 int kaldof() const {return m_kaldof;}
70 double kaldepth() const {return m_kaldepth;}
71 int kalbrLastLayer() const {return m_kalbrLastLayer;}
72 int kalecLastLayer() const {return m_kalecLastLayer;}
73 //**********************
74 // Set
76 void setId(int id) { m_id = id ; }
77 void setStatus(int st) { m_status = st; }
78 void setType(int type) { m_type = type; }
79
80 void setStartPart(int part) {m_startPart = part; }
81 void setEndPart(int part) {m_endPart = part; }
82 void setBrLastLayer(int layer) {m_brLastLayer = layer; }
83 void setEcLastLayer(int layer) {m_ecLastLayer = layer; }
86 void setMaxHitsInLayer(int maxHits) { m_maxHitsInLayer = maxHits; }
87
88 void setDepth( double depth) { m_depth = depth; }
89 void setChi2(double chi2) { m_chi2 = chi2; }
90 void setDof(int dof) { m_dof = dof ; }
91 void setRms(double rms) { m_rms = rms ; }
92
93 void setXPos(double x) { m_xPos = x; }
94 void setYPos(double y) { m_yPos = y; }
95 void setZPos(double z) { m_zPos = z; }
96
97 void setXPosSigma(double xsigma) { m_xPosSigma = xsigma; }
98 void setYPosSigma(double ysigma) { m_yPosSigma = ysigma; }
99 void setZPosSigma(double zsigma) { m_zPosSigma = zsigma; }
100
101 void setPx( double px) { m_px = px; }
102 void setPy( double py) { m_py = py; }
103 void setPz( double pz) { m_pz = pz; }
104
105 void setDistance( double dist){m_distance = dist; }
106 void setDeltaPhi( double dphi){m_deltaPhi = dphi; }
107
108 void setVecHits(vector<int>& vecHits) { m_vecHits = vecHits; }
109 //added by LI Chunhua
110 void setkalRechi2(double ch){m_kalrechi2=ch;}
111 void setkalDof(int f){m_kaldof = f;}
112 void setkalDepth(double de){m_kaldepth = de;}
115 //******************
116
117protected:
118 int m_trackId; // Track ID wensp Add 2005-10-19
119 int m_id; // Muc Identifier
120 int m_status; // Muc Status
121 int m_type; // Method of judge?
122
123 int m_startPart; // In which part does the start position of track locate
124 int m_endPart; // In which part does the end position of track locate
125 int m_brLastLayer; // Last layer with hits in barrel
126 int m_ecLastLayer; // Last layer with hits in endcap
127 int m_numHits; // Number of hits on track
128 int m_numLayers; // Number of layer with hits
129 int m_maxHitsInLayer; // Max number of hits in a layer
130
131 double m_depth; // Depth of iron penetrated
132 double m_chi2; // Fit parameters
133 int m_dof;
134 double m_rms;
135
136 double m_xPos; // x position of muc track vertex
137 double m_yPos; // y position of muc track vertex
138 double m_zPos; // z position of muc track vertex
139
140 double m_xPosSigma; // sigma of x position of muc track vertex in first gap local coordinate.
141 double m_yPosSigma; // sigma of y ...
142 double m_zPosSigma; // sigma of z ... ... so it' 0;
143
144 double m_px; // px on muc track vertex
145 double m_py; // py on muc track vertex
146 double m_pz; // pz on muc track vertex
147
150
151 vector<int> m_vecHits; //// hit list of the track
152
153 //added by LI Chunhua
159 //***************
160};
161
162typedef ObjectVector<DstMucTrack> DstMucTrackCol;
163#endif //NDST_DstMucTrack_H
164
Double_t x[10]
const CLID & CLID_DstMucTrack
Definition: EventModel.cxx:298
ObjectVector< DstMucTrack > DstMucTrackCol
Definition: DstMucTrack.h:162
void setDistance(double dist)
Definition: DstMucTrack.h:105
void setkalbrLastLayer(int br)
Definition: DstMucTrack.h:113
void setXPos(double x)
Definition: DstMucTrack.h:93
int startPart() const
Definition: DstMucTrack.h:37
int kaldof() const
Definition: DstMucTrack.h:69
void setMaxHitsInLayer(int maxHits)
Definition: DstMucTrack.h:86
void setEcLastLayer(int layer)
Definition: DstMucTrack.h:83
double m_rms
Definition: DstMucTrack.h:134
void setPz(double pz)
Definition: DstMucTrack.h:103
double m_zPos
Definition: DstMucTrack.h:138
virtual ~DstMucTrack()
Assignment constructor.
Definition: DstMucTrack.h:27
void setRms(double rms)
Definition: DstMucTrack.h:91
void setStatus(int st)
Definition: DstMucTrack.h:77
int m_kalbrLastLayer
Definition: DstMucTrack.h:157
void setYPos(double y)
Definition: DstMucTrack.h:94
double zPos() const
Definition: DstMucTrack.h:52
void setDof(int dof)
Definition: DstMucTrack.h:90
void setZPos(double z)
Definition: DstMucTrack.h:95
double pz() const
Definition: DstMucTrack.h:60
int brLastLayer() const
Definition: DstMucTrack.h:39
void setBrLastLayer(int layer)
Definition: DstMucTrack.h:82
double py() const
Definition: DstMucTrack.h:59
double m_xPos
Definition: DstMucTrack.h:136
void setYPosSigma(double ysigma)
Definition: DstMucTrack.h:98
vector< int > m_vecHits
Definition: DstMucTrack.h:151
static const CLID & classID()
Definition: DstMucTrack.h:30
double m_xPosSigma
Definition: DstMucTrack.h:140
double deltaPhi() const
Definition: DstMucTrack.h:63
int status() const
Definition: DstMucTrack.h:34
int numHits() const
Definition: DstMucTrack.h:41
void setDepth(double depth)
Definition: DstMucTrack.h:88
double kalRechi2() const
Definition: DstMucTrack.h:68
int m_kalecLastLayer
Definition: DstMucTrack.h:158
int trackId() const
Definition: DstMucTrack.h:32
double m_py
Definition: DstMucTrack.h:145
double m_kalrechi2
Definition: DstMucTrack.h:154
int type() const
Definition: DstMucTrack.h:35
double m_depth
Definition: DstMucTrack.h:131
int m_ecLastLayer
Definition: DstMucTrack.h:126
double zPosSigma() const
Definition: DstMucTrack.h:56
void setPy(double py)
Definition: DstMucTrack.h:102
int m_brLastLayer
Definition: DstMucTrack.h:125
void setZPosSigma(double zsigma)
Definition: DstMucTrack.h:99
double xPos() const
Definition: DstMucTrack.h:50
virtual const CLID & clID() const
Definition: DstMucTrack.h:29
double xPosSigma() const
Definition: DstMucTrack.h:54
vector< int > vecHits() const
Definition: DstMucTrack.h:65
double m_zPosSigma
Definition: DstMucTrack.h:142
double m_distance
Definition: DstMucTrack.h:148
int maxHitsInLayer() const
Definition: DstMucTrack.h:43
void setTrackId(int trackId)
Definition: DstMucTrack.h:75
void setId(int id)
Definition: DstMucTrack.h:76
double px() const
Definition: DstMucTrack.h:58
void setkalecLastLayer(int ec)
Definition: DstMucTrack.h:114
int ecLastLayer() const
Definition: DstMucTrack.h:40
double yPosSigma() const
Definition: DstMucTrack.h:55
void setXPosSigma(double xsigma)
Definition: DstMucTrack.h:97
double yPos() const
Definition: DstMucTrack.h:51
int endPart() const
Definition: DstMucTrack.h:38
void setkalDof(int f)
Definition: DstMucTrack.h:111
double m_deltaPhi
Definition: DstMucTrack.h:149
int dof() const
Definition: DstMucTrack.h:47
void setStartPart(int part)
Definition: DstMucTrack.h:80
double m_kaldepth
Definition: DstMucTrack.h:156
double kaldepth() const
Definition: DstMucTrack.h:70
double m_px
Definition: DstMucTrack.h:144
void setDeltaPhi(double dphi)
Definition: DstMucTrack.h:106
void setNumLayers(int numLayers)
Definition: DstMucTrack.h:85
double distance() const
Definition: DstMucTrack.h:62
void setPx(double px)
Definition: DstMucTrack.h:101
void setType(int type)
Definition: DstMucTrack.h:78
void setVecHits(vector< int > &vecHits)
Definition: DstMucTrack.h:108
double m_chi2
Definition: DstMucTrack.h:132
void setNumHits(int numHits)
Definition: DstMucTrack.h:84
double m_yPos
Definition: DstMucTrack.h:137
void setChi2(double chi2)
Definition: DstMucTrack.h:89
int kalbrLastLayer() const
Definition: DstMucTrack.h:71
void setkalRechi2(double ch)
Definition: DstMucTrack.h:110
double rms() const
Definition: DstMucTrack.h:48
void setkalDepth(double de)
Definition: DstMucTrack.h:112
int id() const
Definition: DstMucTrack.h:33
void setEndPart(int part)
Definition: DstMucTrack.h:81
double depth() const
Definition: DstMucTrack.h:45
int numLayers() const
Definition: DstMucTrack.h:42
double m_yPosSigma
Definition: DstMucTrack.h:141
double chi2() const
Definition: DstMucTrack.h:46
double m_pz
Definition: DstMucTrack.h:146
int kalecLastLayer() const
Definition: DstMucTrack.h:72
int m_maxHitsInLayer
Definition: DstMucTrack.h:129