Retrofeed from 4-01-Release
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Feb 2005 11:46:36 +0000 (11:46 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Feb 2005 11:46:36 +0000 (11:46 +0000)
ANALYSIS/AliAODParticle.cxx
ANALYSIS/AliTrackPoints.cxx
ANALYSIS/AliTrackPoints.h

index 2fe3a4d..55956c0 100644 (file)
@@ -426,6 +426,10 @@ void AliAODParticle::Print() const
         printf("Not known\n");
       }
    }
+  
+  if (fITSTrackPoints) fITSTrackPoints->Print();
+  if (fTPCTrackPoints) fTPCTrackPoints->Print();
+   
 }
 
 //______________________________________________________________________________
index 2e7bd7a..5408d97 100644 (file)
@@ -346,7 +346,7 @@ void AliTrackPoints::MakeITSPointsInnerFromVertexOuterFromTPC(AliESDtrack* track
 void AliTrackPoints::PositionAt(Int_t n, Float_t &x,Float_t &y,Float_t &z)
 {
   //returns position at point n
-  if ((n<0) || (n>fN))
+  if ((n<0) || (n>=fN))
    {
      Error("PositionAt","Point %d out of range",n);
      return;
@@ -424,6 +424,19 @@ Double_t AliTrackPoints::AvarageDistance(const AliTrackPoints& tr)
   return retval;
 }
 /***************************************************************/
+
+void AliTrackPoints::Print(Option_t* /*option*/) const
+{
+
+  Info("Print","There is %d points",fN);
+  for(Int_t i = 0; i < fN; i++)
+   {
+     Info("Print","%d: %f %f %f",i,fX[i],fY[i],fZ[i]);
+   }
+
+}
+
+/***************************************************************/
 /***************************************************************/
 /***************************************************************/
 /***************************************************************/
@@ -620,7 +633,7 @@ void AliTrackPoints::Testtpc(Int_t entr)
       hxz->Fill(x,z);
       printf("Rdemanded %f\n",r);
       printf("tpx %f tpy %f tpz %f Rt =%f\n", x,y,z,TMath::Hypot(x,y));
-      
+
       //BUT they are local!!!!
       t->PropagateTo(r);
 //      Double_t phi = t->Phi();
index 80d9c78..4abf397 100644 (file)
@@ -46,7 +46,8 @@ class AliTrackPoints: public TObject
     void  SetDebug(Int_t deblevel){fgDebug = deblevel;} 
     static void Testtpc(Int_t entr);
     static void Testesd(Int_t entr,const char* fname = "AliESDs.root");
-
+    void Print(Option_t* /*option*/ = "") const;
+    
   protected:
     void MakePoints( Float_t dr, Float_t r0, Double_t x, Double_t* par, Double_t c, Double_t alpha);
     void MakeITSPoints(AliESDtrack* track);