//////////////////////////////////////////////////////////////////////////////
// --- ROOT system ---
-#include "TFile.h"
+
// --- Standard library ---
-#include <iostream.h>
#include <fstream>
// --- AliRoot header files ---
fctdb = 0 ;
}
//____________________________________________________________________________
-AliPHOSCalibrationDB::AliPHOSCalibrationDB(const char* filename ,const char * database):
+AliPHOSCalibrationDB::AliPHOSCalibrationDB(const char * database):
TNamed("AliPHOSCalibrationDB",database){
//Creates the containers: we prepare places for all channels in PHOS
- AliPHOSGeometry * geom = AliPHOSGeometry::GetInstance("GPS2","") ;
+ AliPHOSGeometry * geom = AliPHOSGeometry::GetInstance("IHEP","") ;
fNChannels = geom->GetNModules()*geom->GetNPhi()*geom->GetNZ()+
geom->GetNumberOfCPVPadsZ()*geom->GetNumberOfCPVPadsPhi()*geom->GetNModules() ;
//Note, that to avoid shifting AbsId each time we access data, we do not use
fSlopes->AddAt(slope,i);
}
else
- cout << "Please, create me with non-default constructor!" << endl;
+ Warning("SetAll", "Please, create me with non-default constructor!") ;
}
//____________________________________________________________________________
void AliPHOSCalibrationDB::ReadCalibrationParameters(const char * filename, Option_t* opt){
if(strcmp(opt,"gains")==0){ //read gains
if(!fctdb){
- cout << "Specify Connections Table Database first" << endl ;
+ Error("ReadCalibrationParameters", "Specify Connections Table Database first") ;
return ;
}
ifstream gainfile(filename) ;
else
if(strstr(opt,"pedest")){ //read pedestals
if(!fctdb){
- cout << "Specify Connections Table Database first" << endl ;
+ Error("ReadCalibrationParameters", "Specify Connections Table Database first") ;
return ;
}
ifstream pfile(filename) ;
pfile.close();
}
else{
- cout << "Available options are " << endl ;
- cout << " `gains' : to read gains " << endl ;
- cout << " `pedestals : to read pedestals " << endl ;
+ Warning("ReadCalibrationParameters", "Available options are\n `gains' : to read gains\n `pedestals : to read pedestals ") ;
}
}
//____________________________________________________________________________