// --- Standard library ---
-#include <iostream.h>
-
// --- AliRoot header files ---
#include "AliPHOSTrackSegment.h"
//____________________________________________________________________________
AliPHOSTrackSegment::AliPHOSTrackSegment( AliPHOSEmcRecPoint * emc ,
- AliPHOSRecPoint * ppsdrp1,
- AliPHOSRecPoint * ppsdrp2 )
+ AliPHOSRecPoint * ppsdrp1)
{
// ctor
else
fPpsdUpRecPoint = -1 ;
- if( ppsdrp2 )
- fPpsdLowRecPoint = ppsdrp2->GetIndexInList() ;
- else
- fPpsdLowRecPoint = -1 ;
fIndexInList = -1 ;
}
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", "------------------------------------ ") ;
}
//____________________________________________________________________________