// --- Standard library ---
-#include <iostream.h>
#include <stdlib.h>
// --- AliRoot header files ---
TString test(GetName()) ;
if (test != "IHEP" && test != "GPS2" && test != "MIXT") {
- cerr << "ERROR: " << ClassName() << "::Init -> " << test.Data()
- << " is not a known geometry (choose among IHEP, GPS2 and MIXT)" << endl ;
- abort() ;
+ Fatal("Init", "%s is not a known geometry (choose among IHEP, GPS2 and MIXT)", test.Data() ) ;
}
fgInit = kTRUE ;
}
}
else {
- if ( strcmp(fgGeom->GetName(), name) != 0 ) {
- cout << "AliPHOSGeometry <E> : current geometry is " << fgGeom->GetName() << endl
- << " you cannot call " << name << endl ;
- }
+ if ( strcmp(fgGeom->GetName(), name) != 0 )
+ ::Error("GetInstance", "Current geometry is %s. You cannot call %s", fgGeom->GetName(), name) ;
else
rv = (AliPHOSGeometry *) fgGeom ;
}
Float_t pphi = 2 * TMath::ATan( GetOuterBoxSize(0) / ( 2.0 * GetIPtoUpperCPVsurface() ) ) ;
pphi *= kRADDEG ;
if (pphi > fAngle){
- cout << "AliPHOSGeometry: PHOS modules overlap!\n";
- cout << "pphi = " << pphi << " fAngle " << fAngle << endl ;
+ Error("SetPHOSAngles", "PHOS modules overlap!\n pphi = %f fAngle = %f", pphi, fAngle);
}
pphi = fAngle;
else if ( opt == Degre() )
conv = 180. / TMath::Pi() ;
else {
- cout << "<I> AliPHOSGeometry::EmcXtalCoverage : " << opt << " unknown option; result in radian " << endl ;
+ Warning("EmcModuleCoverage", "%s unknown option; result in radian", opt) ;
conv = 1. ;
}
else if ( opt == Degre() )
conv = 180. / TMath::Pi() ;
else {
- cout << "<I> AliPHOSGeometry::EmcXtalCoverage : " << opt << " unknown option; result in radian " << endl ;
+ Warning("EmcXtalCoverage", "%s unknown option; result in radian", opt) ;
conv = 1. ;
}