diff --git a/Detectors/EMCAL/workflow/src/RawToCellConverterSpec.cxx b/Detectors/EMCAL/workflow/src/RawToCellConverterSpec.cxx index e8bddb7f752d6..41e30aba9eca0 100644 --- a/Detectors/EMCAL/workflow/src/RawToCellConverterSpec.cxx +++ b/Detectors/EMCAL/workflow/src/RawToCellConverterSpec.cxx @@ -64,6 +64,7 @@ void RawToCellConverterSpec::init(framework::InitContext& ctx) void RawToCellConverterSpec::run(framework::ProcessingContext& ctx) { LOG(DEBUG) << "[EMCALRawToCellConverter - run] called"; + const double CONVADCGEV = 0.016; // Conversion from ADC counts to energy: E = 16 MeV / ADC // Cache cells from for bunch crossings as the component reads timeframes from many links consecutively std::map>> cellBuffer; // Internal cell buffer @@ -138,7 +139,7 @@ void RawToCellConverterSpec::run(framework::ProcessingContext& ctx) if (fitResults.getTime() < 0) { fitResults.setTime(0.); } - currentCellContainer->emplace_back(CellID, amp, time, chantype); + currentCellContainer->emplace_back(CellID, amp * CONVADCGEV, time, chantype); } } }