38 for (
unsigned short c = 0;
c < 17664;
c++) {
56 const char* aliceO2env = std::getenv(
"O2_ROOT");
57 std::string inputDir =
" ";
59 inputDir = aliceO2env;
61 inputDir +=
"/share/Detectors/EMC/files/";
63 std::string
file = inputDir +
"TempCalibCoeff.txt";
64 std::ifstream fileTemp(
file, std::ifstream::in);
65 if (!fileTemp.is_open()) {
66 std::cout <<
"The file TempCalibCoeff was not opened\n";
69 float Slope[17664], A0[17664];
71 unsigned short icell = 0;
75 while (std::getline(fileTemp, line)) {
76 std::stringstream streamLine(line);
77 streamLine >> Slope[icell] >> A0[icell];
82 for (
unsigned short icell = 0; icell < 17664; icell++) {
93 std::string fileLHC17 = inputDir +
"TempCalibCoeff_LHC17.txt";
94 std::ifstream fileTempLHC17(fileLHC17, std::ifstream::in);
95 if (!fileTempLHC17.is_open()) {
96 std::cout <<
"The file TempCalibCoeff_LHC17 was not opened\n";
99 float Slope_LHC17, A0_LHC17;
103 while (std::getline(fileTempLHC17, line)) {
104 std::stringstream streamLine(line);
105 streamLine >> Slope_LHC17 >> A0_LHC17;
118 fileTempLHC17.close();