]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFtrack.cxx
c Version 1.38
[u/mrichter/AliRoot.git] / TOF / AliTOFtrack.cxx
index 70bbc1bd1f58d4f8f45a4d954871055d51b3f8ec..104c5e3831fd9ad5d80ba7f41fc57dd63ea509f6 100644 (file)
@@ -88,16 +88,21 @@ AliTOFtrack& AliTOFtrack::operator=(const AliTOFtrack &/*source*/)
 
 //_____________________________________________________________________________
 Bool_t AliTOFtrack::PropagateTo(Double_t xk,Double_t x0,Double_t rho)
-{
+ {
+  //
   // Propagates a track of particle with mass=pm to a reference plane 
   // defined by x=xk through media of density=rho and radiationLength=x0
+  //
 
   if (xk == GetX()) return kTRUE;
   
   Double_t oldX=GetX(), oldY=GetY(), oldZ=GetZ();
 
-  Double_t bz=GetBz();
-  if (!AliExternalTrackParam::PropagateTo(xk,bz)) return kFALSE;
+  Double_t b[3];GetBxByBz(b);
+  if (!AliExternalTrackParam::PropagateToBxByBz(xk,b)) return kFALSE;
+  // OLD used code
+  //Double_t bz=GetBz();
+  //if (!AliExternalTrackParam::PropagateTo(xk,bz)) return kFALSE;
 
   Double_t d = TMath::Sqrt((GetX()-oldX)*(GetX()-oldX) + 
                            (GetY()-oldY)*(GetY()-oldY) + 
@@ -147,7 +152,7 @@ Bool_t AliTOFtrack::PropagateToInnerTOF()
   
   
   Double_t x = GetX();
-  Int_t nsteps=Int_t((370.-x)/0.5); // 0.5 cm Steps
+  Int_t nsteps=Int_t((AliTOFGeometry::Rmin()-x)/0.5); // 0.5 cm Steps
   for (Int_t istep=0;istep<nsteps;istep++){
     Float_t xp = x+istep*0.5; 
     Double_t param[2];  
@@ -165,8 +170,9 @@ Bool_t AliTOFtrack::PropagateToInnerTOF()
 //_________________________________________________________________________
 Double_t AliTOFtrack::GetPredictedChi2(const AliCluster3D *c) const {
   //
+  // Estimate the chi2 of the space point "c" with its cov. matrix elements
   //
-  //
+
   Double_t p[3]={c->GetX(), c->GetY(), c->GetZ()};
   Double_t covyz[3]={c->GetSigmaY2(), c->GetSigmaYZ(), c->GetSigmaZ2()};
   Double_t covxyz[3]={c->GetSigmaX2(), c->GetSigmaXY(), c->GetSigmaXZ()};
@@ -175,7 +181,7 @@ Double_t AliTOFtrack::GetPredictedChi2(const AliCluster3D *c) const {
 //_________________________________________________________________________
 Bool_t AliTOFtrack::PropagateTo(const AliCluster3D *c) {
   //
-  //
+  // Propagates a track to the plane containing cluster 'c'
   //
   Double_t oldX=GetX(), oldY=GetY(), oldZ=GetZ();
   Double_t p[3]={c->GetX(), c->GetY(), c->GetZ()};