BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/RootEventData/RootEventData/TRecMucTrack.h
Go to the documentation of this file.
1#ifndef RootEventData_TRecMucTrack_H
2#define RootEventData_TRecMucTrack_H 1
3
4#include "TObject.h"
5#include <vector>
6
7using namespace std;
8
9class TRecMucTrack : public TObject {
10
11public:
12
14
16
17
18 // void Clear(Option_t *option ="");
19
20 // void PrInt_t(Option_t *option="") const;
21
22//Get
23 Int_t trackId() const { return m_trackId; }
24 Int_t id() const { return m_id; }
25 Int_t status() const { return m_status; }
26 Int_t type() const { return m_type; }
27
28 Int_t startPart() const { return m_startPart; } // start position of track locates in which part
29 Int_t endPart() const { return m_endPart; } // end position of track locates in which part
30 Int_t brLastLayer() const { return m_brLastLayer; } // last layer with hits in barrel
31 Int_t ecLastLayer() const { return m_ecLastLayer; } // last layer with hits in end cap
32 Int_t numHits() const { return m_numHits; } // total hits on the track
33 Int_t numLayers() const { return m_numLayers; } // number of layers with hits
34 Int_t maxHitsInLayer() const { return m_maxHitsInLayer; }
35
36 Double_t depth() const { return m_depth; } // depth of the track transport in iron
37 Double_t chi2() const { return m_chi2; }
38 Int_t dof() const { return m_dof; }
39 Double_t rms() const { return m_rms; }
40 Double_t distance()const { return m_distance;}
41 Double_t deltaPhi()const { return m_deltaPhi;}
42
43 Double_t xPos() const { return m_xPos; } // position on the start of track in muc (vertex)
44 Double_t yPos() const { return m_yPos; }
45 Double_t zPos() const { return m_zPos; }
46
47 Double_t xPosSigma() const { return m_xPosSigma; } // position on the start of track in muc (vertex)
48 Double_t yPosSigma() const { return m_yPosSigma; }
49 Double_t zPosSigma() const { return m_zPosSigma; }
50
51 Double_t px() const { return m_px; } // momentum on the start of track in muc
52 Double_t py() const { return m_py; }
53 Double_t pz() const { return m_pz; }
54
55 vector<Int_t> vecHits() const { return m_vecHits ;}
56 vector<Int_t> expHits() const { return m_expHits ;}
57 vector<Float_t> distHits() const { return m_distHits ;}
58
59 //added by LI Chunhua 2013/02/01
60 Double_t kalRechi2() const {return m_kalrechi2;}
61 Int_t kaldof() const {return m_kaldof;}
62 Double_t kaldepth() const {return m_kaldepth;}
63 Int_t kalbrLastLayer() const {return m_kalbrLastLayer;}
64 Int_t kalecLastLayer() const {return m_kalecLastLayer;}
65 //**********************
66
67 // Set
68 void setTrackId(Int_t trackId) { m_trackId = trackId ;}
69 void setId(Int_t id) { m_id = id ; }
70 void setStatus(Int_t st) { m_status = st; }
71 void setType(Int_t type) { m_type = type; }
72
73 void setStartPart(Int_t part) {m_startPart = part; }
74 void setEndPart(Int_t part) {m_endPart = part; }
75 void setBrLastLayer(Int_t layer) {m_brLastLayer = layer; }
76 void setEcLastLayer(Int_t layer) {m_ecLastLayer = layer; }
77 void setNumHits( Int_t numHits) { m_numHits = numHits; }
78 void setNumLayers(Int_t numLayers) { m_numLayers = numLayers; }
79 void setMaxHitsInLayer(Int_t maxHits) { m_maxHitsInLayer = maxHits; }
80
81 void setDepth( Double_t depth) { m_depth = depth; }
82 void setChi2(Double_t chi2) { m_chi2 = chi2; }
83 void setDof(Int_t dof) { m_dof = dof ; }
84 void setRms(Double_t rms) { m_rms = rms ; }
85 void setDistance(Double_t dist) { m_distance = dist ; }
86 void setDeltaPhi(Double_t dphi){ m_deltaPhi = dphi; }
87
88 void setXPos(Double_t x) { m_xPos = x; }
89 void setYPos(Double_t y) { m_yPos = y; }
90 void setZPos(Double_t z) { m_zPos = z; }
91
92 void setXPosSigma(Double_t x) { m_xPosSigma = x; }
93 void setYPosSigma(Double_t y) { m_yPosSigma = y; }
94 void setZPosSigma(Double_t z) { m_zPosSigma = z; }
95
96 void setPx( Double_t px) { m_px = px; }
97 void setPy( Double_t py) { m_py = py; }
98 void setPz( Double_t pz) { m_pz = pz; }
99
100 void setVecHits(vector<Int_t>& vecHits) { m_vecHits = vecHits; }
101 void setExpHits(vector<Int_t>& expHits) { m_expHits = expHits; }
102 void setDistHits(vector<Float_t>& distHits) { m_distHits = distHits; }
103 //added by LI Chunhua
104 void setkalRechi2(Double_t ch){m_kalrechi2=ch;}
105 void setkalDof(Int_t f){m_kaldof = f;}
106 void setkalDepth(Double_t de){m_kaldepth = de;}
107 void setkalbrLastLayer(Int_t br){m_kalbrLastLayer = br;}
108 void setkalecLastLayer(Int_t ec){m_kalecLastLayer = ec;}
109 //******************
110 void setTRecMucTrack(const TRecMucTrack* muctrk){
111 m_trackId = muctrk->trackId();
112 m_id = muctrk->id();
113 m_status = muctrk->status();
114 m_type = muctrk->type();
115 m_startPart = muctrk->startPart();
116 m_endPart = muctrk->endPart();
117 m_brLastLayer = muctrk->brLastLayer();
118 m_ecLastLayer = muctrk->ecLastLayer();
119 m_numHits = muctrk->numHits();
120 m_numLayers = muctrk->numLayers();
121 m_maxHitsInLayer = muctrk->maxHitsInLayer();
122 m_depth =muctrk->depth();
123 m_chi2 = muctrk->chi2();
124 m_dof = muctrk->dof();
125 m_rms = muctrk->rms();
126 m_xPos = muctrk->xPos();
127 m_yPos = muctrk->yPos();
128 m_zPos = muctrk->zPos();
129 m_xPosSigma=muctrk->xPosSigma();
130 m_yPosSigma=muctrk->yPosSigma();
131 m_zPosSigma=muctrk->zPosSigma();
132 m_px = muctrk->px();
133 m_py = muctrk->py();
134 m_pz = muctrk->pz();
135 m_distance = muctrk->distance();
136 m_deltaPhi = muctrk->deltaPhi();
137 m_vecHits = muctrk->vecHits();
138 m_expHits = muctrk->expHits();
139 m_distHits = muctrk->distHits();
140 //added by LI Chunhua
141 m_kalrechi2 = muctrk->kalRechi2();
142 m_kaldof = muctrk->kaldof();
143 m_kaldepth = muctrk->kaldepth();
144 m_kalbrLastLayer=muctrk->kalbrLastLayer();
145 m_kalecLastLayer=muctrk->kalecLastLayer();
146 //**********************
147 }
148private:
149 Int_t m_trackId; // Track ID wensp Add 2005-10-19
150 Int_t m_id; // Muc Identifier
151 Int_t m_status; // Muc Status
152 Int_t m_type; // Method of judge?
153
154 Int_t m_startPart; // In which part does the start position of track locate
155 Int_t m_endPart; // In which part does the end position of track locate
156 Int_t m_brLastLayer; // Last layer with hits in barrel
157 Int_t m_ecLastLayer; // Last layer with hits in endcap
158 Int_t m_numHits; // Number of hits on track
159 Int_t m_numLayers; // Number of layer with hits
160 Int_t m_maxHitsInLayer; // Max number of hits in a layer
161
162 Double_t m_depth; // Depth of iron penetrated
163 Double_t m_chi2; // Fit parameters
164 Int_t m_dof;
165 Double_t m_rms;
166
167 Double_t m_xPos; // x position of muc track vertex
168 Double_t m_yPos; // y position of muc track vertex
169 Double_t m_zPos; // z position of muc track vertex
170
171 Double_t m_xPosSigma; // Sigma of x position of muc track vertex
172 Double_t m_yPosSigma; // Sigma of y position of muc track vertex
173 Double_t m_zPosSigma; // Sigma of z position of muc track vertex
174
175
176 Double_t m_px; // px on muc track vertex
177 Double_t m_py; // py on muc track vertex
178 Double_t m_pz; // pz on muc track vertex
179
180 Double_t m_distance; // distance match of ext track with inner layer of Muc
181 Double_t m_deltaPhi; // delta phi of mdc track and Muc hit in first layer
182
183 vector<Int_t> m_vecHits; //// hit list of the track wensp Add 2005-10-20
184 vector<Int_t> m_expHits; //// expected hit list of the track
185 vector<Float_t> m_distHits; //// distance between attached hit and track
186
187 //added by LI Chunhua
188 Double_t m_kalrechi2;
189 Int_t m_kaldof;
190 Double_t m_kaldepth;
191 Int_t m_kalbrLastLayer;
192 Int_t m_kalecLastLayer;
193
194 ClassDef(TRecMucTrack,3)
195};
196
197#endif
Double_t x[10]