Added Print method
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Apr 2012 22:04:20 +0000 (22:04 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Apr 2012 22:04:20 +0000 (22:04 +0000)
STEER/ESD/AliTrackPointArray.cxx
STEER/ESD/AliTrackPointArray.h

index edb0ed5..3b50741 100644 (file)
@@ -271,6 +271,18 @@ void AliTrackPointArray::Sort(Bool_t down)
   fSorted=kTRUE;
 }
 
+//_____________________________________________________________________________
+void AliTrackPointArray::Print(Option_t *) const
+{
+  // Print the space-point coordinates and modules info
+  for (int i=0;i<fNPoints;i++) {
+    printf("#%3d VID %5d XYZ:%+9.3f/%+9.3f/%+9.3f |q: %+7.2f |DT: %+8.1f| ChR: %+.2e |Cl: %d %s\n",
+          i,fVolumeID[i],fX[i],fY[i],fZ[i],fCharge[i],fDriftTime[i],
+          fChargeRatio[i],fClusterType[i],fIsExtra[i] ? "|E":"");
+  }
+}
+
+
 ClassImp(AliTrackPoint)
 
 //______________________________________________________________________________
index 4721567..81856a3 100644 (file)
@@ -117,6 +117,7 @@ class AliTrackPointArray : public TObject {
   const UShort_t* GetVolumeID() const { return &fVolumeID[0]; }
 
   Bool_t    HasVolumeID(UShort_t volid) const;
+  void      Print(Option_t *) const;
 
   void Sort(Bool_t down=kTRUE);