2 // Original: AliHLTModelTrack.cxx,v 1.18 2005/02/14 11:50:11 hristov
3 // Author: Anders Vestbo <mailto:vestbo$fi.uib.no>
4 //*-- Copyright © ALICE HLT Group
5 //_____________________________________________________________
11 #include "AliHLTTPCLogging.h"
12 #include "AliHLTTPCTransform.h"
13 #include "AliHLTTPCVertex.h"
14 #include "AliHLTTPCDataCompressorHelper.h"
16 #include "AliHLTTPCModelTrack.h"
22 ClassImp(AliHLTTPCModelTrack)
24 AliHLTTPCModelTrack::AliHLTTPCModelTrack()
37 fArraysCreated(kFALSE),
41 // default constructor
44 AliHLTTPCModelTrack::~AliHLTTPCModelTrack()
50 void AliHLTTPCModelTrack::DeleteArrays()
60 delete [] fCrossingAngle;
62 delete [] fParSigmaY2;
64 delete [] fParSigmaZ2;
71 for(Int_t i=0; i<AliHLTTPCTransform::GetNRows(fPatch); i++)
72 delete [] fOverlap[i];
75 fArraysCreated=kFALSE;
78 void AliHLTTPCModelTrack::Init(Int_t /*slice*/,Int_t patch)
85 fNClusters=AliHLTTPCTransform::GetNRows(patch);
87 Int_t nrows = AliHLTTPCTransform::GetNRows(fPatch);
88 fClusters = new AliHLTTPCClusterModel[nrows];
89 fPad = new Float_t[nrows];
90 fTime = new Float_t[nrows];
91 fCrossingAngle = new Float_t[nrows];
92 fParSigmaY2 = new Float_t[nrows];
93 fParSigmaZ2 = new Float_t[nrows];
94 fTrackModel = new AliHLTTPCTrackModel;
96 fOverlap = new Int_t*[nrows];
97 fNoverlaps = new Int_t[nrows];
100 memset(fNoverlaps,0,nrows*sizeof(Int_t));
101 memset(fClusters,0,nrows*sizeof(AliHLTTPCClusterModel));
102 memset(fPad,0,nrows*sizeof(Float_t));
103 memset(fTime,0,nrows*sizeof(Float_t));
104 memset(fCrossingAngle,0,nrows*sizeof(Float_t));
105 memset(fParSigmaY2,0,nrows*sizeof(Float_t));
106 memset(fParSigmaZ2,0,nrows*sizeof(Float_t));
107 memset(fTrackModel,0,sizeof(AliHLTTPCTrackModel));
108 for(Int_t i=0; i<nrows; i++)
110 fOverlap[i] = new Int_t[fMaxOverlaps];
111 for(Int_t j=0; j<fMaxOverlaps; j++)
113 fClusters[i].fSlice = -1;
115 fArraysCreated=kTRUE;
120 void AliHLTTPCModelTrack::CalculateClusterWidths(Int_t row,Bool_t parametrize)
126 Int_t index = row - AliHLTTPCTransform::GetFirstRow(fPatch);
127 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
129 cerr<<"AliHLTTPCModelTrack::CalculcateClusterWidths : Wrond index "<<index<<" row "<<row<<endl;
132 Int_t patch = AliHLTTPCTransform::GetPatch(row);
133 AliHLTTPCTransform::Slice2Sector(0,row,sr,lr);
134 AliHLTTPCTransform::Raw2Local(xyz,sr,lr,GetPadHit(row),GetTimeHit(row));
135 fParSigmaY2[index] = AliHLTTPCTransform::GetParSigmaY2(row,xyz[2],GetCrossingAngleLUT(row));
136 fParSigmaZ2[index] = AliHLTTPCTransform::GetParSigmaZ2(row,xyz[2],GetTgl());
140 fParSigmaY2[index] = (fParSigmaY2[index] + (1./12)*pow(AliHLTTPCTransform::GetPadPitchWidth(patch),2) );
141 fParSigmaY2[index] *= 0.108;
143 fParSigmaY2[index] *= 2.07;
145 fParSigmaZ2[index] = (fParSigmaZ2[index] + (1./12)*pow(AliHLTTPCTransform::GetZWidth(),2) );
146 fParSigmaZ2[index] *= 0.169;
148 fParSigmaZ2[index] *= 1.77;
151 //convert to raw coordinates:
152 fParSigmaY2[index] /= pow(AliHLTTPCTransform::GetPadPitchWidth(patch),2);
153 fParSigmaZ2[index] /= pow(AliHLTTPCTransform::GetZWidth(),2);
156 void AliHLTTPCModelTrack::SetCluster(Int_t row,Float_t fpad,Float_t ftime,Float_t charge,
157 Float_t sigmaY2,Float_t sigmaZ2,Int_t npads)
159 AliHLTTPCClusterModel *cl = GetClusterModel(row);
161 //First bit: Cluster is present or not
162 //Second bit: Cluster was set, meaning an fit attempt was done (if true)
164 cl->fPresent |= 0x2; //set second bit to true, because a fit attempt has been made
166 Int_t patch = AliHLTTPCTransform::GetPatch(row);
167 if(!charge || npads == 1)
169 cl->fPresent &= ~0x1; //set first bit to false
173 cl->fPresent|=0x1;//set first bit to true
174 cl->fDPad = (fpad - GetPadHit(row))/(AliHLTTPCDataCompressorHelper::GetXYResidualStep(row)/AliHLTTPCTransform::GetPadPitchWidth(patch));
175 cl->fDTime = (ftime - GetTimeHit(row))/(AliHLTTPCDataCompressorHelper::GetZResidualStep(row)/AliHLTTPCTransform::GetZWidth());
176 cl->fDCharge = charge;
177 if(sigmaY2==0 && sigmaZ2==0)
179 cl->fDSigmaY=0;//if width is zero, shape is not supposed to be written
184 //cl->fDSigmaY2 = (sigmaY2 - GetParSigmaY2(row))/(pow(AliHLTTPCDataCompressorHelper::GetXYWidthStep(),2)/pow(AliHLTTPCTransform::GetPadPitchWidth(patch),2));
185 //cl->fDSigmaZ2 = (sigmaZ2 - GetParSigmaZ2(row))/(pow(AliHLTTPCDataCompressorHelper::GetZWidthStep(),2)/pow(AliHLTTPCTransform::GetZWidth(),2));
186 cl->fDSigmaY = (sqrt(sigmaY2) - sqrt(GetParSigmaY2(row)))/(AliHLTTPCDataCompressorHelper::GetXYWidthStep()/AliHLTTPCTransform::GetPadPitchWidth(patch));
187 cl->fDSigmaZ = (sqrt(sigmaZ2) - sqrt(GetParSigmaZ2(row)))/(AliHLTTPCDataCompressorHelper::GetZWidthStep()/AliHLTTPCTransform::GetZWidth());
194 void AliHLTTPCModelTrack::Set(AliHLTTPCTrack *tpt)
196 // Sets track and does initialization
197 AliHLTTPCModelTrack *tr = (AliHLTTPCModelTrack*)tpt;
198 SetRowRange(tr->GetFirstRow(),tr->GetLastRow());
199 SetPhi0(tr->GetPhi0());
200 SetKappa(tr->GetKappa());
201 SetFirstPoint(tr->GetFirstPointX(),tr->GetFirstPointY(),tr->GetFirstPointZ());
202 SetLastPoint(tr->GetLastPointX(),tr->GetLastPointY(),tr->GetLastPointZ());
204 SetPsi(tr->GetPsi());
205 SetTgl(tr->GetTgl());
206 SetCharge(tr->GetCharge());
210 cerr<<"AliHLTTPCModelTrack::Set : Init has already been called for this object!"<<endl;
214 //Init(tr->fSlice,tr->fPatch);
216 memcpy(fClusters,tr->fClusters,AliHLTTPCTransform::GetNRows(fPatch)*sizeof(AliHLTTPCClusterModel));
217 memcpy(fPad,tr->fPad,AliHLTTPCTransform::GetNRows(fPatch)*sizeof(Float_t));
218 memcpy(fTime,tr->fTime,AliHLTTPCTransform::GetNRows(fPatch)*sizeof(Float_t));
219 memcpy(fParSigmaY2,tr->fParSigmaY2,AliHLTTPCTransform::GetNRows(fPatch)*sizeof(Float_t));
220 memcpy(fParSigmaZ2,tr->fParSigmaZ2,AliHLTTPCTransform::GetNRows(fPatch)*sizeof(Float_t));
221 memcpy(fCrossingAngle,tr->fCrossingAngle,AliHLTTPCTransform::GetNRows(fPatch)*sizeof(Float_t));
222 memcpy(fTrackModel,tr->fTrackModel,sizeof(AliHLTTPCTrackModel));
226 Int_t AliHLTTPCModelTrack::GetNPresentClusters()
228 //Return the number of assigned clusters to the track.
229 //Differs from fNClusters, which should be equal to the
230 //number of padrows in the present patch.
234 for(Int_t i=AliHLTTPCTransform::GetFirstRow(fPatch); i<=AliHLTTPCTransform::GetLastRow(fPatch); i++)
241 void AliHLTTPCModelTrack::FillModel()
243 //Fill the track structure
245 if(fNClusters != AliHLTTPCTransform::GetNRows(fPatch))
247 cout<<"AliHLTTPCModelTrack::FillModel : fNClusters != nrows; beware, this could be caused by a bug!!!"<<endl;
248 fNClusters = AliHLTTPCTransform::GetNRows(fPatch);
253 cerr<<"AliHLTTPCModelTrack::FillModel() : No trackmodel "<<endl;
257 AliHLTTPCVertex vertex;
259 GetClosestPoint(&vertex,impact[0],impact[1],impact[2]);
260 fTrackModel->fKappa = GetKappa();
261 fTrackModel->fPhi = atan2(impact[1],impact[0]);
262 fTrackModel->fD = sqrt(impact[0]*impact[0] + impact[1]*impact[1]);
263 fTrackModel->fZ0 = impact[2];
264 fTrackModel->fTgl = GetTgl();
266 //We have to check on which of the vertex the track fit is lying
267 //This we need to encode the azimuthal angle coordinate of the center of curvature.
268 if(GetRadius() < sqrt(GetCenterX()*GetCenterX()+GetCenterY()*GetCenterY()))
269 fTrackModel->fD *=-1;
273 void AliHLTTPCModelTrack::FillTrack()
275 //Fill the track parameters from the structure.
279 cerr<<"AliHLTTPCModelTrack::FillTrack() : No data!!"<<endl;
282 SetKappa(fTrackModel->fKappa);
283 Double_t impact[3],psi;
284 Float_t trackPhi0 = fTrackModel->fPhi;
285 if(fTrackModel->fD < 0)
286 trackPhi0 += AliHLTTPCTransform::Pi();
287 Int_t charge = -1*(Int_t)copysign(1.,GetKappa());
288 impact[0] = fabs(fTrackModel->fD)*cos(fTrackModel->fPhi);
289 impact[1] = fabs(fTrackModel->fD)*sin(fTrackModel->fPhi);
290 impact[2] = fTrackModel->fZ0;
292 psi = trackPhi0 - charge*0.5*AliHLTTPCTransform::Pi();
294 psi += 2*AliHLTTPCTransform::Pi();
297 SetFirstPoint(impact[0],impact[1],impact[2]);
299 SetTgl(fTrackModel->fTgl);
300 SetPt((AliHLTTPCTransform::GetBFact()*AliHLTTPCTransform::GetBField())/fabs(GetKappa()));
301 fNClusters = AliHLTTPCTransform::GetNRows(fPatch);
304 for(Int_t i=AliHLTTPCTransform::GetFirstRow(fPatch); i<=AliHLTTPCTransform::GetLastRow(fPatch); i++)
306 AliHLTTPCClusterModel *cl = GetClusterModel(i);
315 if(cl->fSlice < 0 || cl->fSlice > 35)
317 cerr<<"AliHLTTPCModelTrack::FillTrack : Slice out of range "<<cl->fSlice<<" on row "<<i<<endl;
323 AliHLTTPCTransform::Local2GlobalAngle(&angle,cl->fSlice);
324 if(!CalculateReferencePoint(angle,AliHLTTPCTransform::Row2X(i)))
328 cerr<<"AliHLTTPCModelTrack::FillTrack : Track does not cross slice "<<cl->fSlice<<" row "<<i<<" Points "
329 <<GetPointX()<<" "<<GetPointY()<<" "<<GetPointZ()<<endl;
337 Float_t hit[3] = {GetPointX(),GetPointY(),GetPointZ()};
339 AliHLTTPCTransform::Slice2Sector(cl->fSlice,i,sector,row);
340 AliHLTTPCTransform::Global2Raw(hit,sector,row);
343 SetTimeHit(i,hit[2]);
345 Float_t crossingangle = GetCrossingAngle(i,cl->fSlice);
347 SetCrossingAngleLUT(i,crossingangle);
348 CalculateClusterWidths(i,kTRUE);
353 void AliHLTTPCModelTrack::SetPadHit(Int_t row,Float_t pad)
356 Int_t index = row-AliHLTTPCTransform::GetFirstRow(fPatch);
357 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
359 cerr<<"AliHLTTPCModelTrack::SetPadHit() : Wrong index: "<<index<<endl;
365 void AliHLTTPCModelTrack::SetTimeHit(Int_t row,Float_t time)
368 Int_t index = row-AliHLTTPCTransform::GetFirstRow(fPatch);
369 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
371 cerr<<"AliHLTTPCModelTrack::SetTimeHit() : Wrong index: "<<index<<endl;
377 void AliHLTTPCModelTrack::SetCrossingAngleLUT(Int_t row,Float_t angle)
379 // sets LUT for crossing angle
380 Int_t index = row-AliHLTTPCTransform::GetFirstRow(fPatch);
381 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
383 cerr<<"AliHLTTPCModelTrack::SetCrossingAngle() : Wrong index: "<<index<<endl;
386 fCrossingAngle[index]=angle;
389 void AliHLTTPCModelTrack::SetOverlap(Int_t row,Int_t id)
392 Int_t index = row-AliHLTTPCTransform::GetFirstRow(fPatch);
393 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
395 cerr<<"AliHLTTPCModelTrack::SetOverlap() : Wrong index: "<<index<<endl;
398 if(fNoverlaps[index] >= fMaxOverlaps) return;
399 fOverlap[index][fNoverlaps[index]++] = id;
402 Bool_t AliHLTTPCModelTrack::IsPresent(Int_t row)
404 AliHLTTPCClusterModel *cl = GetClusterModel(row);
405 return (Bool_t)(cl->fPresent & 0x1);
408 Bool_t AliHLTTPCModelTrack::IsSet(Int_t row)
410 // checks if row was set
411 AliHLTTPCClusterModel *cl = GetClusterModel(row);
412 return (Bool_t)(cl->fPresent & 0x2);
415 Int_t AliHLTTPCModelTrack::GetNPads(Int_t row)
417 // gets number of pads
418 AliHLTTPCClusterModel *cl = GetClusterModel(row);
422 Bool_t AliHLTTPCModelTrack::GetPad(Int_t row,Float_t &pad)
425 //(fpad - GetPadHit(row))/(AliHLTTPCDataCompressorHelper::GetXYResidualStep(row)/AliHLTTPCTransform::GetPadPitchWidth(patch));
426 AliHLTTPCClusterModel *cl = GetClusterModel(row);
427 Int_t patch = AliHLTTPCTransform::GetPatch(row);
428 pad = cl->fDPad*(AliHLTTPCDataCompressorHelper::GetXYResidualStep(row)/AliHLTTPCTransform::GetPadPitchWidth(patch)) + GetPadHit(row);
429 return IsPresent(row);
432 Bool_t AliHLTTPCModelTrack::GetTime(Int_t row,Float_t &time)
435 AliHLTTPCClusterModel *cl = GetClusterModel(row);
436 time = cl->fDTime*(AliHLTTPCDataCompressorHelper::GetZResidualStep(row)/AliHLTTPCTransform::GetZWidth()) + GetTimeHit(row);
437 return IsPresent(row);
440 Bool_t AliHLTTPCModelTrack::GetClusterCharge(Int_t row,Int_t &charge)
442 // gets cluster's charge
443 AliHLTTPCClusterModel *cl = GetClusterModel(row);
444 charge = (Int_t)cl->fDCharge;// + AliHLTTPCDataCompressorHelperHelper::GetClusterCharge();
445 return IsPresent(row);
448 Bool_t AliHLTTPCModelTrack::GetSigmaY2(Int_t row,Float_t &sigma2)
451 //cl->fDSigmaY = (sqrt(sigmaY2) - sqrt(GetParSigmaY2(row)))/(AliHLTTPCDataCompressorHelper::GetXYWidthStep()/AliHLTTPCTransform::GetPadPitchWidth(patch));
452 AliHLTTPCClusterModel *cl = GetClusterModel(row);
453 Int_t patch = AliHLTTPCTransform::GetPatch(row);
454 Float_t sigma = cl->fDSigmaY*(AliHLTTPCDataCompressorHelper::GetXYWidthStep()/AliHLTTPCTransform::GetPadPitchWidth(patch)) + sqrt(GetParSigmaY2(row));
455 sigma2 = sigma*sigma;
456 return IsPresent(row);
459 Bool_t AliHLTTPCModelTrack::GetSigmaZ2(Int_t row,Float_t &sigma2)
462 //cl->fDSigmaZ = (sqrt(sigmaZ2) - sqrt(GetParSigmaZ2(row)))/(AliHLTTPCDataCompressorHelper::GetZWidthStep()/AliHLTTPCTransform::GetZWidth());
463 AliHLTTPCClusterModel *cl = GetClusterModel(row);
464 Float_t sigma = cl->fDSigmaZ*(AliHLTTPCDataCompressorHelper::GetZWidthStep()/AliHLTTPCTransform::GetZWidth()) + sqrt(GetParSigmaZ2(row));
465 sigma2 = sigma*sigma;
466 return IsPresent(row);
469 Bool_t AliHLTTPCModelTrack::GetPadResidual(Int_t row,Float_t &res)
472 AliHLTTPCClusterModel *cl = GetClusterModel(row);
473 Int_t patch = AliHLTTPCTransform::GetPatch(row);
474 res = cl->fDPad*(AliHLTTPCDataCompressorHelper::GetXYResidualStep(row)/AliHLTTPCTransform::GetPadPitchWidth(patch));
475 return IsPresent(row);
478 Bool_t AliHLTTPCModelTrack::GetTimeResidual(Int_t row,Float_t &res)
480 // gets time residual
481 AliHLTTPCClusterModel *cl = GetClusterModel(row);
482 res = cl->fDTime*(AliHLTTPCDataCompressorHelper::GetZResidualStep(row)/AliHLTTPCTransform::GetZWidth());
483 return IsPresent(row);
486 Bool_t AliHLTTPCModelTrack::GetSigmaYResidual(Int_t row,Float_t &res)
488 // gets SigmaY residual (?)
489 AliHLTTPCClusterModel *cl = GetClusterModel(row);
490 Int_t patch = AliHLTTPCTransform::GetPatch(row);
491 res = cl->fDSigmaY*(AliHLTTPCDataCompressorHelper::GetXYWidthStep()/AliHLTTPCTransform::GetPadPitchWidth(patch));
492 return IsPresent(row);
495 Bool_t AliHLTTPCModelTrack::GetSigmaZResidual(Int_t row,Float_t &res)
497 // gets SigmaZ resigual (?)
498 AliHLTTPCClusterModel *cl = GetClusterModel(row);
499 res = cl->fDSigmaZ*(AliHLTTPCDataCompressorHelper::GetZWidthStep()/AliHLTTPCTransform::GetZWidth());
500 return IsPresent(row);
503 Int_t AliHLTTPCModelTrack::GetSlice(Int_t row)
506 AliHLTTPCClusterModel *cl = GetClusterModel(row);
510 Float_t AliHLTTPCModelTrack::GetPadHit(Int_t row)
513 Int_t index = row-AliHLTTPCTransform::GetFirstRow(fPatch);
514 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
516 cerr<<"AliHLTTPCModelTrack::GetPadHit() : Wrong index: "<<index<<" row "<<row<<endl;
522 Float_t AliHLTTPCModelTrack::GetTimeHit(Int_t row)
525 Int_t index = row-AliHLTTPCTransform::GetFirstRow(fPatch);
526 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
528 cerr<<"AliHLTTPCModelTrack::GetTimeHit() : Wrong index: "<<index<<" row "<<row<<endl;
534 Float_t AliHLTTPCModelTrack::GetCrossingAngleLUT(Int_t row)
536 // gets LUT for crossing angle
537 Int_t index = row-AliHLTTPCTransform::GetFirstRow(fPatch);
538 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
540 cerr<<"AliHLTTPCModelTrack::GetCrossingAngleLUT() : Wrong index: "<<index<<" row "<<row<<endl;
543 return fCrossingAngle[index];
546 Float_t AliHLTTPCModelTrack::GetParSigmaY2(Int_t row)
548 // gets par SigmaY2 (?)
549 Int_t index = row-AliHLTTPCTransform::GetFirstRow(fPatch);
550 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
552 cerr<<"AliHLTTPCModelTrack::GetParSigmaY2() : Wrong index: "<<index<<" row "<<row<<endl;
555 return fParSigmaY2[index];
558 Float_t AliHLTTPCModelTrack::GetParSigmaZ2(Int_t row)
560 // gets par SigmaZ2 (?)
561 Int_t index = row-AliHLTTPCTransform::GetFirstRow(fPatch);
562 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
564 cerr<<"AliHLTTPCModelTrack::GetParSigmaZ2() : Wrong index: "<<index<<" row "<<row<<endl;
567 return fParSigmaZ2[index];
570 Int_t AliHLTTPCModelTrack::GetNOverlaps(Int_t row)
572 // gets number of overlaps
573 Int_t index = row - AliHLTTPCTransform::GetFirstRow(fPatch);
574 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
576 cerr<<"AliHLTTPCModelTrack::GetOverlap() : Wrong index: "<<index<<endl;
579 return fNoverlaps[index];
582 Int_t *AliHLTTPCModelTrack::GetOverlaps(Int_t row)
585 Int_t index = row - AliHLTTPCTransform::GetFirstRow(fPatch);
586 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
588 cerr<<"AliHLTTPCModelTrack::GetOverlap() : Wrong index: "<<index<<endl;
591 return fOverlap[index];
594 AliHLTTPCClusterModel *AliHLTTPCModelTrack::GetClusterModel(Int_t row)
596 // gets cluster model
597 if(!fClusters) return 0;
598 Int_t index = row-AliHLTTPCTransform::GetFirstRow(fPatch);
599 if(index < 0 || index > AliHLTTPCTransform::GetNRows(fPatch))
601 cerr<<"AliHLTTPCModelTrack::GetClusterModel() : Wrong index: "<<index<<endl;
604 return &fClusters[index];
607 void AliHLTTPCModelTrack::Print(Bool_t everything)
611 cout<<"First point "<<GetFirstPointX()<<" "<<GetFirstPointY()<<" "<<GetFirstPointZ()<<endl;
612 cout<<"Last point "<<GetLastPointX()<<" "<<GetLastPointY()<<" "<<GetLastPointZ()<<endl;
613 cout<<"Pt "<<GetPt()<<" kappa "<<GetKappa()<<" tgl "<<GetTgl()<<" psi "<<GetPsi()<<" charge "<<GetCharge()<<endl;
614 cout<<"Center "<<GetCenterX()<<" "<<GetCenterY()<<endl<<endl;
617 cout<<"NHits "<<GetNClusters()<<endl;
619 cout<<"Clusters:"<<endl;
620 Int_t origslice=-1,counter=0;
621 Float_t fpad,ftime,sigmaY2,sigmaZ2;
622 for(Int_t i=AliHLTTPCTransform::GetFirstRow(fPatch); i<=AliHLTTPCTransform::GetLastRow(fPatch); i++)
624 AliHLTTPCClusterModel *cl = GetClusterModel(i);
628 cout<<i<<" Empty"<<" Slice "<<cl->fSlice<<" Padcrossing "<<GetPadHit(i)<<" Timecrossing "<<GetTimeHit(i)<<" ";
629 //AliHLTTPCTransform::RawHLT2Global(xyz,cl->fSlice,i,GetPadHit(i),GetTimeHit(i));
630 //cout<<i<<" slice "<<cl->fSlice<<" x "<<xyz[0]<<" y "<<xyz[1]<<" z "<<xyz[2];
636 GetSigmaY2(i,sigmaY2);
637 GetSigmaZ2(i,sigmaZ2);
639 origslice=cl->fSlice;
640 else if(cl->fSlice != origslice)
641 cout<<"Change in slice "<<cl->fSlice<<" "<<origslice<<endl;
642 cout<<i<<" Slice "<<cl->fSlice<<" Dpad "<<cl->fDPad<<" Dtime "<<cl->fDTime<<" Dcharge "<<cl->fDCharge;
643 cout<<" sigmaY2 "<<sigmaY2<<" sigmaZ2 "<<sigmaZ2;
644 cout<<" parsigmaY2 "<<GetParSigmaY2(i)<<" parsigmaZ2 "<<GetParSigmaZ2(i);
645 cout<<" Pad "<<fpad<<" padhit "<<GetPadHit(i)<<" Time "<<ftime<<" timehit "<<GetTimeHit(i)<<" ";
653 void AliHLTTPCModelTrack::SetClusterLabel(Int_t row,Int_t *trackID)
655 // sets cluster label
656 AliHLTTPCClusterModel *cl = GetClusterModel(row);
657 cl->fTrackID[0] = trackID[0];
658 cl->fTrackID[1] = trackID[1];
659 cl->fTrackID[2] = trackID[2];
661 void AliHLTTPCModelTrack::SetClusterLabel(Int_t /*row*/,Int_t */*trackID*/)
663 // Does nothing if do_mc undefined
669 void AliHLTTPCModelTrack::GetClusterLabel(Int_t row,Int_t *trackID)
671 // gets cluster label
672 AliHLTTPCClusterModel *cl = GetClusterModel(row);
673 trackID[0] = cl->fTrackID[0];
674 trackID[1] = cl->fTrackID[1];
675 trackID[2] = cl->fTrackID[2];
677 void AliHLTTPCModelTrack::GetClusterLabel(Int_t /*row*/,Int_t */*trackID*/)
679 // Does nothing if do_mc undefined