]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrackSegment.cxx
Transition to NewIO
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegment.cxx
index e00d52a5d0b4d457ef2300115bce56e3f6f72deb..dcc0ca5588cebe3f939858994abddf2963a30aa8 100644 (file)
@@ -26,8 +26,6 @@
 
 // --- Standard library ---
 
-#include <iostream.h>
-
 // --- AliRoot header files ---
 
 #include "AliPHOSTrackSegment.h" 
@@ -36,8 +34,7 @@ ClassImp(AliPHOSTrackSegment)
 
 //____________________________________________________________________________
 AliPHOSTrackSegment::AliPHOSTrackSegment( AliPHOSEmcRecPoint * emc , 
-                                         AliPHOSRecPoint * ppsdrp1,
-                                         AliPHOSRecPoint * ppsdrp2  ) 
+                                         AliPHOSRecPoint * ppsdrp1)
 {
   // ctor
 
@@ -51,10 +48,6 @@ AliPHOSTrackSegment::AliPHOSTrackSegment( AliPHOSEmcRecPoint * emc ,
  else 
     fPpsdUpRecPoint = -1 ;
 
-  if( ppsdrp2  ) 
-    fPpsdLowRecPoint = ppsdrp2->GetIndexInList() ;
-  else 
-    fPpsdLowRecPoint = -1 ;
 
   fIndexInList = -1 ;
 }
@@ -75,31 +68,26 @@ void AliPHOSTrackSegment::Copy(TObject & obj)
 
    TObject::Copy(obj) ;
    ( (AliPHOSTrackSegment &)obj ).fEmcRecPoint     = fEmcRecPoint ; 
-   ( (AliPHOSTrackSegment &)obj ).fPpsdLowRecPoint = fPpsdLowRecPoint ; 
    ( (AliPHOSTrackSegment &)obj ).fPpsdUpRecPoint  = fPpsdUpRecPoint ; 
    ( (AliPHOSTrackSegment &)obj ).fIndexInList     = fIndexInList ; 
 }
 
 //____________________________________________________________________________
-void AliPHOSTrackSegment::Print(Option_t * opt)
+void AliPHOSTrackSegment::Print(Option_t * opt) const
 {
   // Print all information on this track Segment
   
 
-  cout << "--------AliPHOSTrackSegment-------- "<<endl ;
-  cout << "Stored at position " << fIndexInList << endl ;
-  cout << "Emc RecPoint #     " << fEmcRecPoint << endl ;
+  Info("Print", "--------AliPHOSTrackSegment-------- ");
+  Info("Print", "Stored at position %d", fIndexInList) ;
+  Info("Print", "Emc RecPoint #     %d", fEmcRecPoint) ;
   if(fPpsdUpRecPoint >= 0)
-    cout << "CPV RecPoint #      " << fPpsdUpRecPoint << endl ;
+    Info("Print", "CPV RecPoint #     %d", fPpsdUpRecPoint) ;
   else
-    cout << "No CPV RecPoint " << endl ;
+    Info("Print", "No CPV RecPoint ");
 
-  if(fPpsdLowRecPoint >= 0)
-    cout << "PPSD RecPoint #     " << fPpsdLowRecPoint << endl ;
-  else
-    cout << "No PPSD RecPoint " << endl ;
   
-  cout << "------------------------------------ " << endl ; 
+  Info("Print", "------------------------------------ ") ; 
   
 }
 //____________________________________________________________________________