File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Detectors/EMCAL/calibration/include/EMCALCalibration Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1919#define EMCALCALIBEXTRACTOR_H_
2020
2121#include < algorithm>
22+ #include < cmath>
2223#include < iostream>
2324#include " CCDB/BasicCCDBManager.h"
2425#include " EMCALCalib/BadChannelMap.h"
@@ -465,7 +466,7 @@ class EMCALCalibExtractor
465466 if (rms > EMCALCalibParams::Instance ().maxPedestalRMS ) {
466467 mean = mMaxPedestalVal ;
467468 }
468- pedestalData.addPedestalValue (iCell, mean, isLG, isLEDMON);
469+ pedestalData.addPedestalValue (iCell, std::round ( mean) , isLG, isLEDMON);
469470 }
470471 }
471472 }
@@ -488,7 +489,7 @@ class EMCALCalibExtractor
488489 if (!obj)
489490 continue ;
490491 for (unsigned short iCell = 0 ; iCell < maxChannels; ++iCell) {
491- short mean = static_cast <short >(obj->GetBinContent (iCell + 1 ));
492+ short mean = static_cast <short >(std::round ( obj->GetBinContent (iCell + 1 ) ));
492493 short rms = static_cast <short >(obj->GetBinError (iCell + 1 ) / obj->GetBinEntries (iCell + 1 ));
493494 if (rms > EMCALCalibParams::Instance ().maxPedestalRMS ) {
494495 mean = mMaxPedestalVal ;
You can’t perform that action at this time.
0 commit comments