90 |
|
|
91 |
private: |
private: |
92 |
|
|
93 |
|
public: |
94 |
|
|
95 |
int seqno; ///<stored track sequential number |
int seqno; ///<stored track sequential number |
96 |
int image; ///<sequential number of track-image |
int image; ///<sequential number of track-image |
97 |
|
|
|
public: |
|
|
|
|
98 |
float al[5]; ///<TRACK STATE VECTOR |
float al[5]; ///<TRACK STATE VECTOR |
99 |
float coval[5][5]; ///<covariance matrix |
float coval[5][5]; ///<covariance matrix |
100 |
int xgood[6]; ///<cluster flag for x-view (0 = view not included in the fit) |
int xgood[6]; ///<cluster id for x-view (0 = view not included in the fit) |
101 |
int ygood[6]; ///<cluster flag for y-view (0 = view not included in the fit) |
int ygood[6]; ///<cluster id for y-view (0 = view not included in the fit) |
102 |
float xm[6]; ///<measured x coordinates |
float xm[6]; ///<measured x coordinates |
103 |
float ym[6]; ///<measured y coordinates |
float ym[6]; ///<measured y coordinates |
104 |
float zm[6]; ///<measured z coordinates |
float zm[6]; ///<measured z coordinates |
107 |
float tailx[6]; ///<spatial resolution tail on X view |
float tailx[6]; ///<spatial resolution tail on X view |
108 |
float taily[6]; ///<spatial resolution tail on y view |
float taily[6]; ///<spatial resolution tail on y view |
109 |
float chi2; ///<chi2 |
float chi2; ///<chi2 |
110 |
int nstep; ///<n. step |
int nstep; ///<n.step |
111 |
float xv[6]; ///<calculated x coordinates |
float xv[6]; ///<calculated x coordinates |
112 |
float yv[6]; ///<calculated y coordinates |
float yv[6]; ///<calculated y coordinates |
113 |
float zv[6]; ///<calculated z coordinates |
float zv[6]; ///<calculated z coordinates |
115 |
float ayv[6]; ///<calculated angles (deg) on y view |
float ayv[6]; ///<calculated angles (deg) on y view |
116 |
float dedx_x[6]; ///<dE/dx in MIP (<0 if saturated) |
float dedx_x[6]; ///<dE/dx in MIP (<0 if saturated) |
117 |
float dedx_y[6]; ///<dE/dx in MIP (<0 if saturated) |
float dedx_y[6]; ///<dE/dx in MIP (<0 if saturated) |
118 |
|
int multmaxx[6]; ///<cluster multiplicity and strip of maximum on x view |
119 |
|
int multmaxy[6]; ///<cluster multiplicity and strip of maximum on y view |
120 |
|
float seedx[6]; ///< seed of the cluster x |
121 |
|
float seedy[6]; ///< seed of the cluster y |
122 |
|
float xpu[6]; ///< x coordinate in pitch units |
123 |
|
float ypu[6]; ///< y coordinate in pitch units |
124 |
|
|
125 |
TrkTrack(); |
TrkTrack(); |
126 |
TrkTrack(const TrkTrack&); |
TrkTrack(const TrkTrack&); |
150 |
Bool_t IsSaturated(); |
Bool_t IsSaturated(); |
151 |
Bool_t IsBad(int,int); |
Bool_t IsBad(int,int); |
152 |
Float_t GetDEDX(); |
Float_t GetDEDX(); |
153 |
Float_t GetDEDX(int); |
Float_t GetDEDX(int ip); |
154 |
Float_t GetDEDX(int,int); |
Float_t GetDEDX(int ip,int iv); |
155 |
Int_t GetLeverArmX(); |
Int_t GetLeverArmX(); |
156 |
Int_t GetLeverArmY(); |
Int_t GetLeverArmY(); |
157 |
|
Float_t GetChi2X(); |
158 |
|
Float_t GetChi2Y(); |
159 |
|
Float_t GetLnLX(); |
160 |
|
Float_t GetLnLY(); |
161 |
|
|
162 |
|
Float_t GetEffectiveAngle(int ip, int iv); |
163 |
|
|
164 |
void SetMeasure(double *xmeas, double *ymeas, double *zmeas); |
void SetMeasure(double *xmeas, double *ymeas, double *zmeas); |
165 |
void SetResolution(double *rx, double *ry); |
void SetResolution(double *rx, double *ry); |
166 |
void SetTail(double *tx, double *ty, double factor); |
void SetTail(double *tx, double *ty, double factor); |
173 |
void SetTrackingMode(int trackmode); |
void SetTrackingMode(int trackmode); |
174 |
void SetPrecisionFactor(double fact); |
void SetPrecisionFactor(double fact); |
175 |
void SetStepMin(int istepmin); |
void SetStepMin(int istepmin); |
176 |
|
void SetDeltaB(int id, double db); |
177 |
|
|
178 |
Bool_t IsInsideCavity(); |
Bool_t IsInsideCavity(); |
179 |
|
|
180 |
void EvaluateClusterPositions(); |
Bool_t EvaluateClusterPositions(); |
181 |
|
|
182 |
void FillMiniStruct(cMini2track&); |
void FillMiniStruct(cMini2track&); |
183 |
void SetFromMiniStruct(cMini2track*); |
void SetFromMiniStruct(cMini2track*); |
199 |
Bool_t SaturatedClusterX(int ip){ return IsSaturated(ip,0); }; |
Bool_t SaturatedClusterX(int ip){ return IsSaturated(ip,0); }; |
200 |
Bool_t SaturatedClusterY(int ip){ return IsSaturated(ip,1); }; |
Bool_t SaturatedClusterY(int ip){ return IsSaturated(ip,1); }; |
201 |
|
|
202 |
|
Int_t GetClusterX_Multiplicity(int ip){ return (Int_t)(multmaxx[ip]/10000); }; |
203 |
|
Int_t GetClusterY_Multiplicity(int ip){ return (Int_t)(multmaxy[ip]/10000); }; |
204 |
|
Int_t GetClusterX_MaxStrip(int ip){ return (Int_t)(multmaxx[ip]%10000); }; |
205 |
|
Int_t GetClusterY_MaxStrip(int ip){ return (Int_t)(multmaxy[ip]%10000); }; |
206 |
|
Float_t GetClusterX_Seed(int ip){ return seedx[ip]; }; |
207 |
|
Float_t GetClusterY_Seed(int ip){ return seedy[ip]; }; |
208 |
|
/* Float_t GetClusterX_CoordinatePU(int ip); */ |
209 |
|
/* Float_t GetClusterY_CoordinatePU(int ip); */ |
210 |
|
|
211 |
|
|
212 |
TrkTrack* GetTrkTrack(){return this;}; |
TrkTrack* GetTrkTrack(){return this;}; |
213 |
|
|
214 |
friend class TrkLevel2; |
friend class TrkLevel2; |
215 |
|
|
216 |
ClassDef(TrkTrack,3); |
ClassDef(TrkTrack,4); |
217 |
|
|
218 |
}; |
}; |
219 |
/** |
/** |
259 |
* Each track may have an "image", due to the ambiguity on the Y view, which is stored also. |
* Each track may have an "image", due to the ambiguity on the Y view, which is stored also. |
260 |
* Thus, the number of stored tracks ( ntrk() ) differs from the number of "physical" tracks ( GetNTracks() ). |
* Thus, the number of stored tracks ( ntrk() ) differs from the number of "physical" tracks ( GetNTracks() ). |
261 |
* Proper methods allow to sort tracks and select the physical ones ( GetTracks() ). |
* Proper methods allow to sort tracks and select the physical ones ( GetTracks() ). |
262 |
|
* |
263 |
|
* The event status indicates the processing status of data from each DSP, according to the following |
264 |
|
* notation: |
265 |
|
* |
266 |
|
* xxxx xxxx xxxx xxxx xxxx xxxx |
267 |
|
* |||| |||| |||| |||| |||| ||||_ 0 missing packet |
268 |
|
* |||| |||| |||| |||| |||| |||__ 1 CRC error |
269 |
|
* |||| |||| |||| |||| |||| ||___ 2 on-line software alarm (latch-up, timeout ecc...) |
270 |
|
* |||| |||| |||| |||| |||| |____ 3 jump in the trigger counter |
271 |
|
* |||| |||| |||| |||| ||||______ 4 decode error |
272 |
|
* |||| |||| |||| |||| |||_______ 5 n.clusters > maximum number (level1 processing) |
273 |
|
* |||| |||| |||| |||| ||________ 6 |
274 |
|
* |||| |||| |||| |||| |_________ 7 |
275 |
|
* |||| |||| |||| ||||___________ 8 n.clusters > maximum value (level2 processing) |
276 |
|
* |||| |||| |||| |||____________ 9 n.couples per plane > maximum values (vector dimention) |
277 |
|
* |||| |||| |||| ||_____________ 10 n.doublets > maximum values |
278 |
|
* |||| |||| |||| |______________ 11 n.triplets > maximum values |
279 |
|
* |||| |||| ||||________________ 12 n.yz-clouds > maximum values |
280 |
|
* |||| |||| |||_________________ 13 n.xz-clouds > maximum values |
281 |
|
* |||| |||| ||__________________ 14 n.candidate-tracks > maximum values |
282 |
|
* |||| |||| |___________________ 15 n.couples per plane > maximum values (for Hough transform) |
283 |
|
* |||| ||||_____________________ 16 |
284 |
|
* |
285 |
|
* |
286 |
|
* For all data processed before June 2007 the event status was coded according to |
287 |
|
* a different rule: |
288 |
|
* |
289 |
|
* Status of level1 processing |
290 |
|
* 0 -- OK |
291 |
|
* 1 -- missing packet |
292 |
|
* 2 -- 1 CRC error |
293 |
|
* 3 -- 2 on-line software alarm (latch-up flags asserted or n.transmitted-words = 0) |
294 |
|
* 4 -- 3 jump in the trigger counter |
295 |
|
* 10 -- 4 decode error |
296 |
|
* 11 -- 5 n.clusters > maximum number (for level1 processing) |
297 |
|
* Status of level2 processing |
298 |
|
* 21 -- 0 n.clusters > maximum value (for level2 processing) |
299 |
|
* 22 -- 1 n.couples per plane > maximum values (vector dimention) |
300 |
|
* 23 -- 2 n.doublets > maximum values |
301 |
|
* 24 -- 3 n.triplets > maximum values |
302 |
|
* 25 -- 4 n.yz-clouds > maximum values |
303 |
|
* 26 -- 5 n.xz-clouds > maximum values |
304 |
|
* 27 -- 6 n.candidate-tracks > maximum values |
305 |
|
* 28 -- 7 n.couples per plane > maximum values (for Hough transform) |
306 |
|
* |
307 |
|
* |
308 |
*/ |
*/ |
309 |
class TrkLevel2 : public TObject { |
class TrkLevel2 : public TObject { |
310 |
|
|
369 |
TrkLevel2* GetTrkLevel2(){return this;} |
TrkLevel2* GetTrkLevel2(){return this;} |
370 |
TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array |
TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array |
371 |
|
|
372 |
|
void StatusDump(int view); |
373 |
|
Bool_t StatusCheck(int view, int flagmask); |
374 |
|
|
375 |
ClassDef(TrkLevel2,3); |
ClassDef(TrkLevel2,3); |
376 |
|
|
377 |
}; |
}; |