for(Int_t j=0; j<6; j++){
if(j<6){
int iread = fscanf(file,"%f",&fitValEMD[j]);
- if(iread==0) AliDebug(3," Failing reading daa from EMD calibration data file");
- eCalib->SetEnCalib(j, beamEnergy/fitValEMD[j]);
+ if(iread==0) AliDebug(3," Failing reading data from EMD calibration data file");
+ if(fitValEMD[j]!=1.) eCalib->SetEnCalib(j, beamEnergy/fitValEMD[j]);
+ else eCalib->SetEnCalib(j, fitValEMD[j]);
}
}
//
// To test it, we must provide the run parameters manually. They will be retrieved in the preprocessor
// using GetRunParameter function.
// In real life the parameters will be retrieved automatically from the run logbook;
- //shuttle->AddInputRunParameter("beamType", "A-A");
- shuttle->AddInputRunParameter("beamType", "p-p");
+ shuttle->AddInputRunParameter("beamType", "A-A");
+ shuttle->AddInputRunParameter("beamEnergy", "1380");
+ //shuttle->AddInputRunParameter("beamType", "p-p");
shuttle->AddInputRunParameter("totalEvents", "1000");
shuttle->AddInputRunParameter("NumberOfGDCs", "1");