// --- ROOT system ---
#include "TFile.h"
// --- Standard library ---
-#include <iostream.h>
#include <fstream>
// --- AliRoot header files ---
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 ") ;
}
}
//____________________________________________________________________________