]>
Commit | Line | Data |
---|---|---|
d686d062 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | //--------------------------------------------------------------------// | |
17 | // // | |
3a646035 | 18 | // AliTOFtrackerV1 Class // |
d686d062 | 19 | // Task: Perform association of the ESD tracks to TOF Clusters // |
20 | // and Update ESD track with associated TOF Cluster parameters // | |
21 | // // | |
22 | // -- Authors : S. Arcelli, C. Zampolli (Bologna University and INFN) // | |
23 | // -- Contacts: Annalisa.De.Caro@cern.ch // | |
24 | // -- : Chiara.Zampolli@bo.infn.it // | |
25 | // -- : Silvia.Arcelli@bo.infn.it // | |
26 | // // | |
27 | //--------------------------------------------------------------------// | |
28 | ||
29 | #include <Rtypes.h> | |
30 | #include <TROOT.h> | |
31 | ||
32 | #include <TClonesArray.h> | |
0841bd02 | 33 | #include <TObjArray.h> |
d686d062 | 34 | #include <TTree.h> |
35 | #include <TFile.h> | |
36 | #include <TH1F.h> | |
37 | #include <TH2F.h> | |
5c7c93fa | 38 | #include <TSeqCollection.h> |
d686d062 | 39 | |
d686d062 | 40 | #include "AliESDtrack.h" |
41 | #include "AliESDEvent.h" | |
10d100d4 | 42 | #include "AliESDpid.h" |
d686d062 | 43 | #include "AliLog.h" |
44 | #include "AliTrackPointArray.h" | |
5c7c93fa | 45 | #include "AliGeomManager.h" |
46 | #include "AliCDBManager.h" | |
d686d062 | 47 | |
d686d062 | 48 | #include "AliTOFRecoParam.h" |
3a646035 | 49 | #include "AliTOFReconstructor.h" |
d686d062 | 50 | #include "AliTOFcluster.h" |
ca270b6d | 51 | #include "AliTOFGeometry.h" |
d686d062 | 52 | #include "AliTOFtrackerV1.h" |
53 | #include "AliTOFtrack.h" | |
d0c2872c | 54 | |
d686d062 | 55 | extern TROOT *gROOT; |
56 | ||
57 | ClassImp(AliTOFtrackerV1) | |
58 | ||
59 | //_____________________________________________________________________________ | |
60 | AliTOFtrackerV1::AliTOFtrackerV1(): | |
d3be4547 | 61 | fkRecoParam(0x0), |
d686d062 | 62 | fN(0), |
63 | fNseeds(0), | |
64 | fNseedsTOF(0), | |
65 | fngoodmatch(0), | |
66 | fnbadmatch(0), | |
67 | fnunmatch(0), | |
68 | fnmatch(0), | |
b42a5ea1 | 69 | fTracks(new TClonesArray("AliTOFtrack")), |
0841bd02 | 70 | fSeeds(new TObjArray(15000)), |
d686d062 | 71 | fHDigClusMap(0x0), |
72 | fHDigNClus(0x0), | |
73 | fHDigClusTime(0x0), | |
74 | fHDigClusToT(0x0), | |
75 | fHRecNClus(0x0), | |
76 | fHRecChi2(0x0), | |
77 | fHRecDistZ(0x0), | |
78 | fHRecSigYVsP(0x0), | |
79 | fHRecSigZVsP(0x0), | |
80 | fHRecSigYVsPWin(0x0), | |
81 | fHRecSigZVsPWin(0x0) | |
82 | { | |
83 | //AliTOFtrackerV1 main Ctor | |
3a646035 | 84 | |
d686d062 | 85 | InitCheckHists(); |
86 | ||
d686d062 | 87 | } |
88 | //_____________________________________________________________________________ | |
89 | AliTOFtrackerV1::~AliTOFtrackerV1() { | |
90 | // | |
91 | // Dtor | |
92 | // | |
93 | ||
94 | SaveCheckHists(); | |
95 | ||
5d456bcd | 96 | if(!(AliCDBManager::Instance()->GetCacheFlag())){ |
d3be4547 | 97 | delete fkRecoParam; |
5d456bcd | 98 | } |
d686d062 | 99 | delete fHDigClusMap; |
100 | delete fHDigNClus; | |
101 | delete fHDigClusTime; | |
102 | delete fHDigClusToT; | |
103 | delete fHRecNClus; | |
104 | delete fHRecChi2; | |
105 | delete fHRecDistZ; | |
106 | delete fHRecSigYVsP; | |
107 | delete fHRecSigZVsP; | |
108 | delete fHRecSigYVsPWin; | |
109 | delete fHRecSigZVsPWin; | |
b42a5ea1 | 110 | if (fTracks){ |
111 | fTracks->Delete(); | |
112 | delete fTracks; | |
113 | fTracks=0x0; | |
114 | } | |
115 | if (fSeeds){ | |
116 | fSeeds->Delete(); | |
117 | delete fSeeds; | |
118 | fSeeds=0x0; | |
119 | } | |
d686d062 | 120 | } |
121 | //_____________________________________________________________________________ | |
10d100d4 | 122 | void AliTOFtrackerV1::GetPidSettings(AliESDpid *esdPID) { |
123 | // | |
124 | // Sets TOF resolution from RecoParams | |
125 | // | |
d3be4547 | 126 | if (fkRecoParam) |
127 | esdPID->GetTOFResponse().SetTimeResolution(fkRecoParam->GetTimeResolution()); | |
10d100d4 | 128 | else |
d3be4547 | 129 | AliWarning("fkRecoParam not yet set; cannot set PID settings"); |
10d100d4 | 130 | } |
131 | //_____________________________________________________________________________ | |
d3be4547 | 132 | Int_t AliTOFtrackerV1::PropagateBack(AliESDEvent * const event) { |
d686d062 | 133 | // |
134 | // Gets seeds from ESD event and Match with TOF Clusters | |
135 | // | |
136 | ||
3a646035 | 137 | // initialize RecoParam for current event |
bafe290d | 138 | AliDebug(1,"Initializing params for TOF"); |
3a646035 | 139 | |
d3be4547 | 140 | fkRecoParam = AliTOFReconstructor::GetRecoParam(); // instantiate reco param from STEER... |
90b234fe | 141 | |
d3be4547 | 142 | if (fkRecoParam == 0x0) { |
3a646035 | 143 | AliFatal("No Reco Param found for TOF!!!"); |
144 | } | |
d3be4547 | 145 | //fkRecoParam->Dump(); |
146 | //if(fkRecoParam->GetApplyPbPbCuts())fkRecoParam=fkRecoParam->GetPbPbparam(); | |
147 | //fkRecoParam->PrintParameters(); | |
90b234fe | 148 | |
d686d062 | 149 | //Initialise some counters |
150 | ||
151 | fNseeds=0; | |
152 | fNseedsTOF=0; | |
153 | fngoodmatch=0; | |
154 | fnbadmatch=0; | |
155 | fnunmatch=0; | |
156 | fnmatch=0; | |
157 | ||
158 | Int_t ntrk=event->GetNumberOfTracks(); | |
159 | fNseeds = ntrk; | |
d686d062 | 160 | |
161 | ||
162 | //Load ESD tracks into a local Array of ESD Seeds | |
0841bd02 | 163 | if (!fSeeds) |
164 | fSeeds = new TObjArray(fNseeds); | |
165 | for (Int_t i=0; i<fNseeds; i++) | |
166 | fSeeds->AddLast(event->GetTrack(i)); | |
d686d062 | 167 | |
168 | //Prepare ESD tracks candidates for TOF Matching | |
169 | CollectESD(); | |
170 | ||
171 | //Matching Step | |
172 | MatchTracks(); | |
173 | ||
6ef25b64 | 174 | AliInfo(Form("Number of matched tracks = %d (good = %d, bad = %d)",fnmatch,fngoodmatch,fnbadmatch)); |
d686d062 | 175 | |
176 | //Update the matched ESD tracks | |
177 | ||
178 | for (Int_t i=0; i<ntrk; i++) { | |
179 | AliESDtrack *t=event->GetTrack(i); | |
0841bd02 | 180 | AliESDtrack *seed =(AliESDtrack*)fSeeds->At(i); |
6819758a | 181 | |
af61c656 | 182 | if ( (seed->GetStatus()&AliESDtrack::kTOFin)!=0 ) { |
183 | t->SetStatus(AliESDtrack::kTOFin); | |
184 | //if(seed->GetTOFsignal()>0){ | |
185 | if ( (seed->GetStatus()&AliESDtrack::kTOFout)!=0 ) { | |
186 | t->SetStatus(AliESDtrack::kTOFout); | |
187 | t->SetTOFsignal(seed->GetTOFsignal()); | |
188 | t->SetTOFcluster(seed->GetTOFcluster()); | |
189 | t->SetTOFsignalToT(seed->GetTOFsignalToT()); | |
190 | t->SetTOFsignalRaw(seed->GetTOFsignalRaw()); | |
191 | t->SetTOFsignalDz(seed->GetTOFsignalDz()); | |
46d7d82e | 192 | t->SetTOFsignalDx(seed->GetTOFsignalDx()); |
8b441e14 | 193 | t->SetTOFDeltaBC(seed->GetTOFDeltaBC()); |
194 | t->SetTOFL0L1(seed->GetTOFL0L1()); | |
af61c656 | 195 | t->SetTOFCalChannel(seed->GetTOFCalChannel()); |
196 | Int_t tlab[3]; seed->GetTOFLabel(tlab); | |
197 | t->SetTOFLabel(tlab); | |
24322e5c | 198 | |
0841bd02 | 199 | Double_t alphaA = (Double_t)t->GetAlpha(); |
200 | Double_t xA = (Double_t)t->GetX(); | |
201 | Double_t yA = (Double_t)t->GetY(); | |
202 | Double_t zA = (Double_t)t->GetZ(); | |
203 | Double_t p1A = (Double_t)t->GetSnp(); | |
204 | Double_t p2A = (Double_t)t->GetTgl(); | |
205 | Double_t p3A = (Double_t)t->GetSigned1Pt(); | |
206 | const Double_t *covA = (Double_t*)t->GetCovariance(); | |
e81ea7b6 | 207 | |
208 | // Make attention, please: | |
209 | // AliESDtrack::fTOFInfo array does not be stored in the AliESDs.root file | |
210 | // it is there only for a check during the reconstruction step. | |
24322e5c | 211 | Float_t info[10]={0.,0.,0.,0.,0.,0.,0.,0.,0.,0.}; |
212 | seed->GetTOFInfo(info); | |
213 | t->SetTOFInfo(info); | |
214 | AliDebug(2,Form(" distance=%f; residual in the pad reference frame: dX=%f, dZ=%f", info[0],info[1],info[2])); | |
215 | ||
e81ea7b6 | 216 | // Check done: |
217 | // by calling the AliESDtrack::UpdateTrackParams, | |
218 | // the current track parameters are changed | |
219 | // and it could cause refit problems. | |
220 | // We need to update only the following track parameters: | |
221 | // the track length and expected times. | |
222 | // Removed AliESDtrack::UpdateTrackParams call | |
223 | // Called AliESDtrack::SetIntegratedTimes(...) and | |
224 | // AliESDtrack::SetIntegratedLength() routines. | |
225 | /* | |
226 | AliTOFtrack *track = new AliTOFtrack(*seed); | |
227 | t->UpdateTrackParams(track,AliESDtrack::kTOFout); // to be checked - AdC | |
228 | delete track; | |
229 | Double_t time[10]; t->GetIntegratedTimes(time); | |
230 | */ | |
231 | ||
232 | Double_t time[10]; seed->GetIntegratedTimes(time); | |
233 | t->SetIntegratedTimes(time); | |
234 | ||
235 | Double_t length = seed->GetIntegratedLength(); | |
236 | t->SetIntegratedLength(length); | |
237 | ||
0841bd02 | 238 | Double_t alphaB = (Double_t)t->GetAlpha(); |
239 | Double_t xB = (Double_t)t->GetX(); | |
240 | Double_t yB = (Double_t)t->GetY(); | |
241 | Double_t zB = (Double_t)t->GetZ(); | |
242 | Double_t p1B = (Double_t)t->GetSnp(); | |
243 | Double_t p2B = (Double_t)t->GetTgl(); | |
244 | Double_t p3B = (Double_t)t->GetSigned1Pt(); | |
245 | const Double_t *covB = (Double_t*)t->GetCovariance(); | |
e81ea7b6 | 246 | AliDebug(2,"Track params -now(before)-:"); |
247 | AliDebug(2,Form(" X: %f(%f), Y: %f(%f), Z: %f(%f) --- alpha: %f(%f)", | |
248 | xB,xA, | |
249 | yB,yA, | |
250 | zB,zA, | |
251 | alphaB,alphaA)); | |
252 | AliDebug(2,Form(" p1: %f(%f), p2: %f(%f), p3: %f(%f)", | |
253 | p1B,p1A, | |
254 | p2B,p2A, | |
255 | p3B,p3A)); | |
256 | AliDebug(2,Form(" cov1: %f(%f), cov2: %f(%f), cov3: %f(%f)" | |
257 | " cov4: %f(%f), cov5: %f(%f), cov6: %f(%f)" | |
258 | " cov7: %f(%f), cov8: %f(%f), cov9: %f(%f)" | |
259 | " cov10: %f(%f), cov11: %f(%f), cov12: %f(%f)" | |
260 | " cov13: %f(%f), cov14: %f(%f), cov15: %f(%f)", | |
261 | covB[0],covA[0], | |
262 | covB[1],covA[1], | |
263 | covB[2],covA[2], | |
264 | covB[3],covA[3], | |
265 | covB[4],covA[4], | |
266 | covB[5],covA[5], | |
267 | covB[6],covA[6], | |
268 | covB[7],covA[7], | |
269 | covB[8],covA[8], | |
270 | covB[9],covA[9], | |
271 | covB[10],covA[10], | |
272 | covB[11],covA[11], | |
273 | covB[12],covA[12], | |
274 | covB[13],covA[13], | |
275 | covB[14],covA[14] | |
276 | )); | |
277 | AliDebug(3,Form(" %6d %f %f %f %f % %6d %3d %f %f %f %f %f %f", | |
af61c656 | 278 | i, |
279 | t->GetTOFsignalRaw(), | |
280 | t->GetTOFsignal(), | |
281 | t->GetTOFsignalToT(), | |
282 | t->GetTOFsignalDz(), | |
46d7d82e | 283 | t->GetTOFsignalDx(), |
af61c656 | 284 | t->GetTOFCalChannel(), |
285 | t->GetTOFcluster(), | |
286 | t->GetIntegratedLength(), | |
287 | time[0], time[1], time[2], time[3], time[4] | |
288 | ) | |
289 | ); | |
290 | } | |
d686d062 | 291 | } |
292 | } | |
293 | ||
0841bd02 | 294 | fSeeds->Clear(); delete fSeeds; fSeeds=0; |
295 | fTracks->Delete(); | |
d686d062 | 296 | return 0; |
297 | ||
298 | } | |
299 | //_________________________________________________________________________ | |
300 | void AliTOFtrackerV1::CollectESD() { | |
301 | //prepare the set of ESD tracks to be matched to clusters in TOF | |
302 | ||
303 | Int_t seedsTOF1=0; | |
304 | Int_t seedsTOF2=0; | |
305 | ||
d686d062 | 306 | TClonesArray &aTOFTrack = *fTracks; |
307 | for (Int_t i=0; i<fNseeds; i++) { | |
308 | ||
0841bd02 | 309 | AliESDtrack *t =(AliESDtrack*)fSeeds->At(i); |
d686d062 | 310 | if ((t->GetStatus()&AliESDtrack::kTPCout)==0)continue; |
311 | ||
d686d062 | 312 | AliTOFtrack *track = new AliTOFtrack(*t); // New |
af61c656 | 313 | Float_t x = (Float_t)track->GetX(); //New |
314 | ||
315 | // TRD 'good' tracks, already propagated at 371 cm | |
316 | if ( ( (t->GetStatus()&AliESDtrack::kTRDout)!=0 ) && | |
317 | ( x >= AliTOFGeometry::Rmin() ) ) { | |
318 | if ( track->PropagateToInnerTOF() ) { | |
319 | ||
320 | AliDebug(1,Form(" TRD propagated track till rho = %fcm." | |
321 | " And then the track has been propagated till rho = %fcm.", | |
322 | x, (Float_t)track->GetX())); | |
323 | ||
324 | track->SetSeedIndex(i); | |
325 | t->UpdateTrackParams(track,AliESDtrack::kTOFin); | |
326 | new(aTOFTrack[fNseedsTOF]) AliTOFtrack(*track); | |
327 | fNseedsTOF++; | |
328 | seedsTOF1++; | |
329 | } | |
d686d062 | 330 | delete track; |
331 | } | |
332 | ||
af61c656 | 333 | // Propagate the rest of TPCbp |
d686d062 | 334 | else { |
af61c656 | 335 | if ( track->PropagateToInnerTOF() ) { |
336 | ||
337 | AliDebug(1,Form(" TRD propagated track till rho = %fcm." | |
338 | " And then the track has been propagated till rho = %fcm.", | |
339 | x, (Float_t)track->GetX())); | |
340 | ||
d686d062 | 341 | track->SetSeedIndex(i); |
af61c656 | 342 | t->UpdateTrackParams(track,AliESDtrack::kTOFin); |
d686d062 | 343 | new(aTOFTrack[fNseedsTOF]) AliTOFtrack(*track); |
344 | fNseedsTOF++; | |
345 | seedsTOF2++; | |
346 | } | |
347 | delete track; | |
348 | } | |
349 | } | |
350 | ||
6ef25b64 | 351 | AliInfo(Form("Number of TOF seeds = %d (Type 1 = %d, Type 2 = %d)",fNseedsTOF,seedsTOF1,seedsTOF2)); |
d686d062 | 352 | |
353 | // Sort according uncertainties on track position | |
354 | fTracks->Sort(); | |
355 | ||
356 | } | |
357 | //_________________________________________________________________________ | |
358 | void AliTOFtrackerV1::MatchTracks( ){ | |
359 | // | |
360 | //Match ESD tracks to clusters in TOF | |
361 | // | |
362 | ||
363 | ||
364 | // Parameters regulating the reconstruction | |
ca270b6d | 365 | Float_t dY=AliTOFGeometry::XPad(); |
366 | Float_t dZ=AliTOFGeometry::ZPad(); | |
d686d062 | 367 | |
6819758a | 368 | const Float_t kTimeOffset = 32.; // time offset for tracking algorithm [ps] |
369 | ||
3da9d64f | 370 | const Int_t kncmax = 100; |
d3be4547 | 371 | Float_t sensRadius = fkRecoParam->GetSensRadius(); |
372 | Float_t scaleFact = fkRecoParam->GetWindowScaleFact(); | |
373 | Float_t dyMax=fkRecoParam->GetWindowSizeMaxY(); | |
374 | Float_t dzMax=fkRecoParam->GetWindowSizeMaxZ(); | |
375 | Double_t maxChi2=fkRecoParam->GetMaxChi2(); | |
376 | Bool_t timeWalkCorr = fkRecoParam->GetTimeWalkCorr(); | |
d686d062 | 377 | AliDebug(1,"++++++++++++++TOF Reconstruction Parameters:++++++++++++ \n"); |
378 | AliDebug(1,Form("TOF sens radius: %f",sensRadius)); | |
379 | AliDebug(1,Form("TOF Window scale factor: %f",scaleFact)); | |
380 | AliDebug(1,Form("TOF Window max dy: %f",dyMax)); | |
381 | AliDebug(1,Form("TOF Window max dz: %f",dzMax)); | |
382 | AliDebug(1,Form("TOF Max Chi2: %f",maxChi2)); | |
383 | AliDebug(1,Form("Time Walk Correction? : %d",timeWalkCorr)); | |
384 | ||
385 | ||
386 | //The matching loop | |
d686d062 | 387 | for (Int_t iseed=0; iseed<fNseedsTOF; iseed++) { |
388 | ||
389 | AliTOFtrack *track =(AliTOFtrack*)fTracks->UncheckedAt(iseed); | |
0841bd02 | 390 | AliESDtrack *t =(AliESDtrack*)fSeeds->At(track->GetSeedIndex()); |
af61c656 | 391 | //if ( t->GetTOFsignal()>0. ) continue; |
392 | if ( (t->GetStatus()&AliESDtrack::kTOFout)!=0 ) continue; | |
d686d062 | 393 | AliTOFtrack *trackTOFin =new AliTOFtrack(*track); |
394 | ||
395 | // Determine a window around the track | |
396 | Double_t x,par[5]; trackTOFin->GetExternalParameters(x,par); | |
397 | Double_t cov[15]; trackTOFin->GetExternalCovariance(cov); | |
398 | ||
53884c34 | 399 | if (cov[0]<0. || cov[2]<0.) { |
400 | AliWarning(Form("Very strange track (%d)! At least one of its covariance matrix diagonal elements is negative!",iseed)); | |
ecd795d8 | 401 | //delete trackTOFin; |
402 | //continue; | |
53884c34 | 403 | } |
404 | ||
d686d062 | 405 | Double_t z = par[1]; |
ecd795d8 | 406 | Double_t dz = scaleFact*3.*TMath::Sqrt(TMath::Abs(cov[2])+dZ*dZ/12.); |
407 | Double_t dphi = scaleFact*3.*TMath::Sqrt(TMath::Abs(cov[0])+dY*dY/12.)/sensRadius; | |
d686d062 | 408 | |
409 | Double_t phi=TMath::ATan2(par[0],x) + trackTOFin->GetAlpha(); | |
410 | if (phi<-TMath::Pi())phi+=2*TMath::Pi(); | |
411 | if (phi>=TMath::Pi())phi-=2*TMath::Pi(); | |
412 | ||
413 | //upper limit on window's size. | |
414 | if(dz> dzMax) dz=dzMax; | |
415 | if(dphi*sensRadius> dyMax) dphi=dyMax/sensRadius; | |
416 | ||
d686d062 | 417 | // find the clusters inside the selected window |
418 | Int_t nc=0; | |
3da9d64f | 419 | AliTOFcluster *clusters[kncmax]; // pointers to the clusters in the window |
420 | Int_t index[kncmax];//to keep track of the cluster index | |
d686d062 | 421 | for (Int_t k=FindClusterIndex(z-dz); k<fN; k++) { |
422 | AliTOFcluster *c=fClusters[k]; | |
c0b60ae7 | 423 | // if(nc>kncmax)break; /* R+ fix (buffer overflow) */ |
53884c34 | 424 | if (nc>=kncmax) { |
425 | AliWarning("No more matchable clusters can be stored! Please, increase the corresponding vectors size."); | |
426 | break; /* R+ fix (buffer overflow protection) */ | |
427 | } | |
d686d062 | 428 | if(c->GetZ() > z+dz) break; |
429 | if(c->IsUsed()) continue; | |
17149e6b | 430 | if(!c->GetStatus()) { |
53884c34 | 431 | AliDebug(1,"Cluster in channel declared bad!"); |
432 | continue; // skip bad channels as declared in OCDB | |
17149e6b | 433 | } |
d686d062 | 434 | Float_t xyz[3]; c->GetGlobalXYZ(xyz); |
435 | Double_t clPhi=TMath::ATan2(xyz[1],xyz[0]); | |
436 | Double_t dph=TMath::Abs(clPhi-phi); | |
437 | if (dph>TMath::Pi()) dph-=2.*TMath::Pi(); | |
438 | if (TMath::Abs(dph)>dphi) continue; | |
439 | clusters[nc]=c; | |
440 | index[nc] = k; | |
441 | nc++; | |
442 | } | |
443 | ||
53884c34 | 444 | AliDebug(1,Form(" Number of matchable TOF clusters for the track number %d: %d",iseed,nc)); |
445 | ||
8dacd1bb | 446 | //start propagation: go to the average TOF pad middle plane at ~379.5 cm |
d686d062 | 447 | |
448 | Float_t xTOF = sensRadius; | |
ca270b6d | 449 | Double_t ymax = xTOF*TMath::Tan(0.5*AliTOFGeometry::GetAlpha()); |
d686d062 | 450 | Bool_t skip = kFALSE; |
451 | Double_t ysect = trackTOFin->GetYat(xTOF,skip); | |
452 | if (skip) break; | |
453 | if (ysect > ymax) { | |
ca270b6d | 454 | if (!trackTOFin->Rotate(AliTOFGeometry::GetAlpha())) { |
d686d062 | 455 | break; |
456 | } | |
457 | } else if (ysect <-ymax) { | |
13c769b4 | 458 | if (!trackTOFin->Rotate(-AliTOFGeometry::GetAlpha())) { |
d686d062 | 459 | break; |
460 | } | |
461 | } | |
462 | if(!trackTOFin->PropagateTo(xTOF)) { | |
463 | break; | |
464 | } | |
465 | ||
466 | ||
467 | AliTOFcluster *bestCluster=0; | |
468 | Double_t bestChi2=maxChi2; | |
469 | Int_t idclus=-1; | |
c0b60ae7 | 470 | // for (Int_t i=0; i<nc; i++){ /* R+ fix (unsafe) */ |
471 | for (Int_t i=0; i<nc && i<kncmax; i++){ /* R+ fix (buffer overflow protection) */ | |
d686d062 | 472 | AliTOFcluster *c=clusters[i]; // one of the preselected clusters |
473 | Double_t chi2=trackTOFin->GetPredictedChi2((AliCluster3D*)c); | |
474 | if (chi2 >= bestChi2) continue; | |
475 | bestChi2=chi2; | |
476 | bestCluster=c; | |
477 | idclus=index[i]; | |
478 | } | |
479 | ||
480 | if (!bestCluster) { // no matching , go to the next track | |
481 | fnunmatch++; | |
482 | delete trackTOFin; | |
483 | continue; | |
484 | } | |
485 | ||
486 | fnmatch++; | |
32ead898 | 487 | |
3a646035 | 488 | AliDebug(2, Form("%7i %7i %10i %10i %10i %10i %7i", |
32ead898 | 489 | iseed, |
3a646035 | 490 | fnmatch-1, |
32ead898 | 491 | TMath::Abs(trackTOFin->GetLabel()), |
492 | bestCluster->GetLabel(0), | |
493 | bestCluster->GetLabel(1), | |
3a646035 | 494 | bestCluster->GetLabel(2), |
495 | idclus)); // AdC | |
32ead898 | 496 | |
d686d062 | 497 | bestCluster->Use(); |
498 | if ( | |
499 | (bestCluster->GetLabel(0)==TMath::Abs(trackTOFin->GetLabel())) | |
500 | || | |
501 | (bestCluster->GetLabel(1)==TMath::Abs(trackTOFin->GetLabel())) | |
502 | || | |
503 | (bestCluster->GetLabel(2)==TMath::Abs(trackTOFin->GetLabel())) | |
504 | ) { | |
505 | fngoodmatch++; | |
6819758a | 506 | AliDebug(2,Form(" track label good %5d",trackTOFin->GetLabel())); |
d686d062 | 507 | |
508 | } | |
509 | else{ | |
510 | fnbadmatch++; | |
6819758a | 511 | AliDebug(2,Form(" track label bad %5d",trackTOFin->GetLabel())); |
d686d062 | 512 | } |
513 | ||
514 | //Propagate the track to the best matched cluster | |
515 | trackTOFin->PropagateTo(bestCluster); | |
516 | ||
77a9ea9a | 517 | // Fill the track residual histograms. |
518 | FillResiduals(trackTOFin,bestCluster,kFALSE); | |
d686d062 | 519 | |
520 | //now take the local distance in Z from the pad center for time walk correction | |
ca270b6d | 521 | Float_t tiltangle = AliTOFGeometry::GetAngles(bestCluster->GetDetInd(1),bestCluster->GetDetInd(2))*TMath::DegToRad(); |
6819758a | 522 | Double_t dzTW=trackTOFin->GetZ()-bestCluster->GetZ(); // in cm - in the ALICE RF - |
523 | dzTW/=TMath::Cos(tiltangle); // from ALICE/tracking RF to pad RF (1) | |
524 | dzTW=-dzTW; // from ALICE/tracking RF to pad RF (2) | |
525 | if (tiltangle!=0.) AliDebug(2,Form(" rho_track = %f --- rho_cluster = %f ",trackTOFin->GetX(),bestCluster->GetX())); | |
d686d062 | 526 | |
527 | //update the ESD track and delete the TOFtrack | |
af61c656 | 528 | t->UpdateTrackParams(trackTOFin,AliESDtrack::kTOFout); |
d686d062 | 529 | |
530 | // Store quantities to be used in the TOF Calibration | |
ca270b6d | 531 | Float_t tToT=AliTOFGeometry::ToTBinWidth()*bestCluster->GetToT()*1E-3; // in ns |
d686d062 | 532 | t->SetTOFsignalToT(tToT); |
6819758a | 533 | Float_t rawTime=AliTOFGeometry::TdcBinWidth()*bestCluster->GetTDCRAW()+kTimeOffset; // RAW time,in ps |
d686d062 | 534 | t->SetTOFsignalRaw(rawTime); |
535 | t->SetTOFsignalDz(dzTW); | |
6819758a | 536 | |
24322e5c | 537 | Float_t deltaY = trackTOFin->GetY()-bestCluster->GetY(); |
46d7d82e | 538 | t->SetTOFsignalDx(deltaY); |
24322e5c | 539 | |
8b441e14 | 540 | t->SetTOFDeltaBC(bestCluster->GetDeltaBC()); |
541 | t->SetTOFL0L1(bestCluster->GetL0L1Latency()); | |
542 | ||
24322e5c | 543 | Float_t distR = (trackTOFin->GetX()-bestCluster->GetX())* |
544 | (trackTOFin->GetX()-bestCluster->GetX()); | |
545 | distR+=deltaY*deltaY; | |
546 | distR+=dzTW*dzTW; | |
547 | distR = TMath::Sqrt(distR); | |
548 | Float_t info[10] = {distR, deltaY, dzTW, | |
549 | 0.,0.,0.,0.,0.,0.,0.}; | |
550 | t->SetTOFInfo(info); | |
551 | ||
d686d062 | 552 | Int_t ind[5]; |
553 | ind[0]=bestCluster->GetDetInd(0); | |
554 | ind[1]=bestCluster->GetDetInd(1); | |
555 | ind[2]=bestCluster->GetDetInd(2); | |
556 | ind[3]=bestCluster->GetDetInd(3); | |
557 | ind[4]=bestCluster->GetDetInd(4); | |
ca270b6d | 558 | Int_t calindex = AliTOFGeometry::GetIndex(ind); |
d686d062 | 559 | t->SetTOFCalChannel(calindex); |
560 | ||
561 | // keep track of the track labels in the matched cluster | |
562 | Int_t tlab[3]; | |
563 | tlab[0]=bestCluster->GetLabel(0); | |
564 | tlab[1]=bestCluster->GetLabel(1); | |
565 | tlab[2]=bestCluster->GetLabel(2); | |
6819758a | 566 | AliDebug(2,Form(" tdc time of the matched track %6d = ",bestCluster->GetTDC())); |
567 | Double_t tof=AliTOFGeometry::TdcBinWidth()*bestCluster->GetTDC()+kTimeOffset; // in ps | |
568 | AliDebug(2,Form(" tof time of the matched track: %f = ",tof)); | |
d686d062 | 569 | Double_t tofcorr=tof; |
570 | if(timeWalkCorr)tofcorr=CorrectTimeWalk(dzTW,tof); | |
571 | AliDebug(2,Form(" tof time of the matched track, after TW corr: %f = ",tofcorr)); | |
572 | //Set TOF time signal and pointer to the matched cluster | |
573 | t->SetTOFsignal(tofcorr); | |
574 | t->SetTOFcluster(idclus); // pointing to the recPoints tree | |
575 | t->SetTOFLabel(tlab); | |
576 | ||
6819758a | 577 | AliDebug(2,Form(" Setting TOF raw time: %f z distance: %f corrected time: %f",rawTime,dzTW,tofcorr)); |
578 | ||
d686d062 | 579 | Double_t mom=t->GetP(); |
53884c34 | 580 | AliDebug(2,Form(" Momentum for track %d -> %f", iseed,mom)); |
d686d062 | 581 | // Fill Reco-QA histos for Reconstruction |
582 | fHRecNClus->Fill(nc); | |
583 | fHRecChi2->Fill(bestChi2); | |
584 | fHRecDistZ->Fill(dzTW); | |
585 | fHRecSigYVsP->Fill(mom,TMath::Sqrt(cov[0])); | |
586 | fHRecSigZVsP->Fill(mom,TMath::Sqrt(cov[2])); | |
587 | fHRecSigYVsPWin->Fill(mom,dphi*sensRadius); | |
588 | fHRecSigZVsPWin->Fill(mom,dz); | |
589 | ||
590 | // Fill Tree for on-the-fly offline Calibration | |
591 | // no longer there - all info is in the ESDs now | |
592 | ||
af61c656 | 593 | delete trackTOFin; |
d686d062 | 594 | } |
d686d062 | 595 | |
596 | } | |
597 | //_________________________________________________________________________ | |
598 | Int_t AliTOFtrackerV1::LoadClusters(TTree *cTree) { | |
599 | //-------------------------------------------------------------------- | |
600 | //This function loads the TOF clusters | |
601 | //-------------------------------------------------------------------- | |
602 | ||
ca270b6d | 603 | Int_t npadX = AliTOFGeometry::NpadX(); |
604 | Int_t npadZ = AliTOFGeometry::NpadZ(); | |
605 | Int_t nStripA = AliTOFGeometry::NStripA(); | |
606 | Int_t nStripB = AliTOFGeometry::NStripB(); | |
607 | Int_t nStripC = AliTOFGeometry::NStripC(); | |
d686d062 | 608 | |
609 | TBranch *branch=cTree->GetBranch("TOF"); | |
610 | if (!branch) { | |
611 | AliError("can't get the branch with the TOF clusters !"); | |
612 | return 1; | |
613 | } | |
614 | ||
b42a5ea1 | 615 | static TClonesArray dummy("AliTOFcluster",10000); |
616 | dummy.Clear(); | |
617 | TClonesArray *clusters=&dummy; | |
d686d062 | 618 | branch->SetAddress(&clusters); |
619 | ||
620 | cTree->GetEvent(0); | |
621 | Int_t nc=clusters->GetEntriesFast(); | |
622 | fHDigNClus->Fill(nc); | |
623 | ||
b42a5ea1 | 624 | AliInfo(Form("Number of clusters: %d",nc)); |
625 | ||
d686d062 | 626 | for (Int_t i=0; i<nc; i++) { |
627 | AliTOFcluster *c=(AliTOFcluster*)clusters->UncheckedAt(i); | |
16a2e36a | 628 | //PH fClusters[i]=new AliTOFcluster(*c); fN++; |
629 | fClusters[i]=c; fN++; | |
d686d062 | 630 | |
631 | // Fill Digits QA histos | |
632 | ||
633 | Int_t isector = c->GetDetInd(0); | |
634 | Int_t iplate = c->GetDetInd(1); | |
635 | Int_t istrip = c->GetDetInd(2); | |
636 | Int_t ipadX = c->GetDetInd(4); | |
637 | Int_t ipadZ = c->GetDetInd(3); | |
638 | ||
ca270b6d | 639 | Float_t time =(AliTOFGeometry::TdcBinWidth()*c->GetTDC())*1E-3; // in ns |
640 | Float_t tot = (AliTOFGeometry::TdcBinWidth()*c->GetToT())*1E-3;//in ns | |
d686d062 | 641 | |
642 | Int_t stripOffset = 0; | |
643 | switch (iplate) { | |
644 | case 0: | |
645 | stripOffset = 0; | |
646 | break; | |
647 | case 1: | |
648 | stripOffset = nStripC; | |
649 | break; | |
650 | case 2: | |
651 | stripOffset = nStripC+nStripB; | |
652 | break; | |
653 | case 3: | |
654 | stripOffset = nStripC+nStripB+nStripA; | |
655 | break; | |
656 | case 4: | |
657 | stripOffset = nStripC+nStripB+nStripA+nStripB; | |
658 | break; | |
659 | default: | |
660 | AliError(Form("Wrong plate number in TOF (%d) !",iplate)); | |
661 | break; | |
662 | }; | |
663 | Int_t zindex=npadZ*(istrip+stripOffset)+(ipadZ+1); | |
664 | Int_t phiindex=npadX*isector+ipadX+1; | |
665 | fHDigClusMap->Fill(zindex,phiindex); | |
666 | fHDigClusTime->Fill(time); | |
667 | fHDigClusToT->Fill(tot); | |
668 | } | |
669 | ||
670 | ||
671 | return 0; | |
672 | } | |
673 | //_________________________________________________________________________ | |
674 | void AliTOFtrackerV1::UnloadClusters() { | |
675 | //-------------------------------------------------------------------- | |
676 | //This function unloads TOF clusters | |
677 | //-------------------------------------------------------------------- | |
678 | for (Int_t i=0; i<fN; i++) { | |
16a2e36a | 679 | //PH delete fClusters[i]; |
d686d062 | 680 | fClusters[i] = 0x0; |
681 | } | |
682 | fN=0; | |
683 | } | |
684 | ||
685 | //_________________________________________________________________________ | |
686 | Int_t AliTOFtrackerV1::FindClusterIndex(Double_t z) const { | |
687 | //-------------------------------------------------------------------- | |
688 | // This function returns the index of the nearest cluster | |
689 | //-------------------------------------------------------------------- | |
690 | //MOD | |
691 | //Here we need to get the Z in the tracking system | |
692 | ||
693 | if (fN==0) return 0; | |
694 | if (z <= fClusters[0]->GetZ()) return 0; | |
695 | if (z > fClusters[fN-1]->GetZ()) return fN; | |
696 | Int_t b=0, e=fN-1, m=(b+e)/2; | |
697 | for (; b<e; m=(b+e)/2) { | |
698 | if (z > fClusters[m]->GetZ()) b=m+1; | |
699 | else e=m; | |
700 | } | |
701 | return m; | |
702 | } | |
703 | ||
704 | //_________________________________________________________________________ | |
705 | Bool_t AliTOFtrackerV1::GetTrackPoint(Int_t index, AliTrackPoint& p) const | |
706 | { | |
707 | // Get track space point with index i | |
708 | // Coordinates are in the global system | |
709 | AliTOFcluster *cl = fClusters[index]; | |
710 | Float_t xyz[3]; | |
711 | cl->GetGlobalXYZ(xyz); | |
712 | Float_t phi=TMath::ATan2(xyz[1],xyz[0]); | |
713 | Float_t phiangle = (Int_t(phi*TMath::RadToDeg()/20.)+0.5)*20.*TMath::DegToRad(); | |
714 | Float_t sinphi = TMath::Sin(phiangle), cosphi = TMath::Cos(phiangle); | |
ca270b6d | 715 | Float_t tiltangle = AliTOFGeometry::GetAngles(cl->GetDetInd(1),cl->GetDetInd(2))*TMath::DegToRad(); |
d686d062 | 716 | Float_t sinth = TMath::Sin(tiltangle), costh = TMath::Cos(tiltangle); |
ca270b6d | 717 | Float_t sigmay2 = AliTOFGeometry::XPad()*AliTOFGeometry::XPad()/12.; |
718 | Float_t sigmaz2 = AliTOFGeometry::ZPad()*AliTOFGeometry::ZPad()/12.; | |
d686d062 | 719 | Float_t cov[6]; |
720 | cov[0] = sinphi*sinphi*sigmay2 + cosphi*cosphi*sinth*sinth*sigmaz2; | |
721 | cov[1] = -sinphi*cosphi*sigmay2 + sinphi*cosphi*sinth*sinth*sigmaz2; | |
722 | cov[2] = -cosphi*sinth*costh*sigmaz2; | |
723 | cov[3] = cosphi*cosphi*sigmay2 + sinphi*sinphi*sinth*sinth*sigmaz2; | |
724 | cov[4] = -sinphi*sinth*costh*sigmaz2; | |
725 | cov[5] = costh*costh*sigmaz2; | |
726 | p.SetXYZ(xyz[0],xyz[1],xyz[2],cov); | |
727 | ||
728 | // Detector numbering scheme | |
ca270b6d | 729 | Int_t nSector = AliTOFGeometry::NSectors(); |
730 | Int_t nPlate = AliTOFGeometry::NPlates(); | |
731 | Int_t nStripA = AliTOFGeometry::NStripA(); | |
732 | Int_t nStripB = AliTOFGeometry::NStripB(); | |
733 | Int_t nStripC = AliTOFGeometry::NStripC(); | |
d686d062 | 734 | |
735 | Int_t isector = cl->GetDetInd(0); | |
736 | if (isector >= nSector) | |
737 | AliError(Form("Wrong sector number in TOF (%d) !",isector)); | |
738 | Int_t iplate = cl->GetDetInd(1); | |
739 | if (iplate >= nPlate) | |
740 | AliError(Form("Wrong plate number in TOF (%d) !",iplate)); | |
741 | Int_t istrip = cl->GetDetInd(2); | |
742 | ||
743 | Int_t stripOffset = 0; | |
744 | switch (iplate) { | |
745 | case 0: | |
746 | stripOffset = 0; | |
747 | break; | |
748 | case 1: | |
749 | stripOffset = nStripC; | |
750 | break; | |
751 | case 2: | |
752 | stripOffset = nStripC+nStripB; | |
753 | break; | |
754 | case 3: | |
755 | stripOffset = nStripC+nStripB+nStripA; | |
756 | break; | |
757 | case 4: | |
758 | stripOffset = nStripC+nStripB+nStripA+nStripB; | |
759 | break; | |
760 | default: | |
761 | AliError(Form("Wrong plate number in TOF (%d) !",iplate)); | |
762 | break; | |
763 | }; | |
764 | ||
765 | Int_t idet = (2*(nStripC+nStripB)+nStripA)*isector + | |
766 | stripOffset + | |
767 | istrip; | |
768 | UShort_t volid = AliGeomManager::LayerToVolUID(AliGeomManager::kTOF,idet); | |
769 | p.SetVolumeID((UShort_t)volid); | |
770 | return kTRUE; | |
771 | } | |
772 | //_________________________________________________________________________ | |
773 | void AliTOFtrackerV1::InitCheckHists() { | |
774 | ||
775 | //Init histos for Digits/Reco QA and Calibration | |
776 | ||
3a646035 | 777 | TDirectory *dir = gDirectory; |
778 | TFile *logFileTOF = 0; | |
779 | ||
780 | TSeqCollection *list = gROOT->GetListOfFiles(); | |
781 | int n = list->GetEntries(); | |
782 | Bool_t isThere=kFALSE; | |
783 | for(int i=0; i<n; i++) { | |
784 | logFileTOF = (TFile*)list->At(i); | |
785 | if (strstr(logFileTOF->GetName(), "TOFQA.root")){ | |
786 | isThere=kTRUE; | |
787 | break; | |
788 | } | |
789 | } | |
790 | ||
791 | if(!isThere)logFileTOF = new TFile( "TOFQA.root","RECREATE"); | |
792 | logFileTOF->cd(); | |
793 | ||
d686d062 | 794 | //Digits "QA" |
795 | fHDigClusMap = new TH2F("TOFDig_ClusMap", "",182,0.5,182.5,864, 0.5,864.5); | |
796 | fHDigNClus = new TH1F("TOFDig_NClus", "",200,0.5,200.5); | |
797 | fHDigClusTime = new TH1F("TOFDig_ClusTime", "",2000,0.,200.); | |
798 | fHDigClusToT = new TH1F("TOFDig_ClusToT", "",500,0.,100); | |
799 | ||
800 | //Reco "QA" | |
801 | fHRecNClus =new TH1F("TOFRec_NClusW", "",50,0.5,50.5); | |
802 | fHRecDistZ=new TH1F("TOFRec_DistZ", "",50,0.5,10.5); | |
803 | fHRecChi2=new TH1F("TOFRec_Chi2", "",100,0.,10.); | |
804 | fHRecSigYVsP=new TH2F("TOFDig_SigYVsP", "",40,0.,4.,100, 0.,5.); | |
805 | fHRecSigZVsP=new TH2F("TOFDig_SigZVsP", "",40,0.,4.,100, 0.,5.); | |
806 | fHRecSigYVsPWin=new TH2F("TOFDig_SigYVsPWin", "",40,0.,4.,100, 0.,50.); | |
807 | fHRecSigZVsPWin=new TH2F("TOFDig_SigZVsPWin", "",40,0.,4.,100, 0.,50.); | |
3a646035 | 808 | |
809 | dir->cd(); | |
810 | ||
d686d062 | 811 | } |
812 | ||
813 | //_________________________________________________________________________ | |
814 | void AliTOFtrackerV1::SaveCheckHists() { | |
815 | ||
816 | //write histos for Digits/Reco QA and Calibration | |
817 | ||
818 | TDirectory *dir = gDirectory; | |
819 | TFile *logFile = 0; | |
820 | TFile *logFileTOF = 0; | |
821 | ||
822 | TSeqCollection *list = gROOT->GetListOfFiles(); | |
823 | int n = list->GetEntries(); | |
824 | for(int i=0; i<n; i++) { | |
825 | logFile = (TFile*)list->At(i); | |
826 | if (strstr(logFile->GetName(), "AliESDs.root")) break; | |
827 | } | |
828 | ||
829 | Bool_t isThere=kFALSE; | |
830 | for(int i=0; i<n; i++) { | |
831 | logFileTOF = (TFile*)list->At(i); | |
832 | if (strstr(logFileTOF->GetName(), "TOFQA.root")){ | |
833 | isThere=kTRUE; | |
834 | break; | |
835 | } | |
836 | } | |
837 | ||
3a646035 | 838 | if(!isThere) { |
839 | AliError(Form("File TOFQA.root not found!! not wring histograms....")); | |
840 | return; | |
841 | } | |
d686d062 | 842 | logFile->cd(); |
843 | fHDigClusMap->Write(fHDigClusMap->GetName(), TObject::kOverwrite); | |
844 | fHDigNClus->Write(fHDigNClus->GetName(), TObject::kOverwrite); | |
845 | fHDigClusTime->Write(fHDigClusTime->GetName(), TObject::kOverwrite); | |
846 | fHDigClusToT->Write(fHDigClusToT->GetName(), TObject::kOverwrite); | |
847 | fHRecNClus->Write(fHRecNClus->GetName(), TObject::kOverwrite); | |
848 | fHRecChi2->Write(fHRecChi2->GetName(), TObject::kOverwrite); | |
849 | fHRecDistZ->Write(fHRecDistZ->GetName(), TObject::kOverwrite); | |
850 | fHRecSigYVsP->Write(fHRecSigYVsP->GetName(), TObject::kOverwrite); | |
851 | fHRecSigZVsP->Write(fHRecSigZVsP->GetName(), TObject::kOverwrite); | |
852 | fHRecSigYVsPWin->Write(fHRecSigYVsPWin->GetName(), TObject::kOverwrite); | |
853 | fHRecSigZVsPWin->Write(fHRecSigZVsPWin->GetName(), TObject::kOverwrite); | |
854 | logFile->Flush(); | |
855 | ||
d686d062 | 856 | dir->cd(); |
3a646035 | 857 | |
d686d062 | 858 | } |
859 | //_________________________________________________________________________ | |
d3be4547 | 860 | Float_t AliTOFtrackerV1::CorrectTimeWalk( Float_t dist, Float_t tof) const { |
d686d062 | 861 | |
862 | //dummy, for the moment | |
863 | Float_t tofcorr=0.; | |
ca270b6d | 864 | if(dist<AliTOFGeometry::ZPad()*0.5){ |
d686d062 | 865 | tofcorr=tof; |
866 | //place here the actual correction | |
867 | }else{ | |
868 | tofcorr=tof; | |
869 | } | |
870 | return tofcorr; | |
871 | } | |
872 | //_________________________________________________________________________ | |
d3be4547 | 873 | Float_t AliTOFtrackerV1::GetTimeZerofromT0(const AliESDEvent * const event) const { |
d686d062 | 874 | |
875 | //Returns TimeZero as measured by T0 detector | |
876 | ||
877 | return event->GetT0(); | |
878 | } | |
879 | //_________________________________________________________________________ | |
880 | Float_t AliTOFtrackerV1::GetTimeZerofromTOF(AliESDEvent * /*event*/) const { | |
881 | ||
882 | //dummy, for the moment. T0 algorithm using tracks on TOF | |
883 | { | |
884 | //place T0 algo here... | |
885 | } | |
886 | return 0.; | |
887 | } | |
128563f6 | 888 | //_________________________________________________________________________ |
889 | ||
890 | void AliTOFtrackerV1::FillClusterArray(TObjArray* arr) const | |
891 | { | |
892 | // | |
893 | // Returns the TOF cluster array | |
894 | // | |
895 | ||
896 | if (fN==0) | |
897 | arr = 0x0; | |
898 | else | |
899 | for (Int_t i=0; i<fN; ++i) arr->Add(fClusters[i]); | |
900 | ||
901 | } |