Decalibrate simulated data
[u/mrichter/AliRoot.git] / PHOS / macros / BeamTest / ConvertCalib.C
CommitLineData
a62a4db4 1void ConvertCalib(const char * name = "gains.dat.final.gain0"){
2 //macro to convert ASCII file with calibration parametrs
3 //to AliRoot structure AliPHOSCalibrationData.
4
5 AliPHOSCalibrator * c = new AliPHOSCalibrator() ;
6 c->SetConTableDB("ConeTableDB.root") ;
7 c->ReadFromASCII(name) ;
8 cout << "Write Ped " << endl ;
9 c->WritePedestals("v1") ;
10 cout << "Write Ped OK" << endl ;
11 c->WriteGains("v1") ;
12 cout << "Write Gains OK" << endl ;
13 delete c ;
14}