From aaeefc4222f8cee72b780c37838c23073bf13410 Mon Sep 17 00:00:00 2001 From: Joshua Hiltbrand Date: Thu, 10 Oct 2024 19:55:54 +0200 Subject: [PATCH] two minor changes related to ZDC --- CalibCalorimetry/HcalTPGAlgos/src/HcaluLUTTPGCoder.cc | 2 +- CaloOnlineTools/HcalOnlineDb/src/HcalLutManager.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CalibCalorimetry/HcalTPGAlgos/src/HcaluLUTTPGCoder.cc b/CalibCalorimetry/HcalTPGAlgos/src/HcaluLUTTPGCoder.cc index db55452509611..985c6598853cf 100644 --- a/CalibCalorimetry/HcalTPGAlgos/src/HcaluLUTTPGCoder.cc +++ b/CalibCalorimetry/HcalTPGAlgos/src/HcaluLUTTPGCoder.cc @@ -652,7 +652,7 @@ void HcaluLUTTPGCoder::update(const HcalDbService& conditions) { lut[adc] = 0; lut_ootpu[adc] = 0; } else { - if ((adc2fC(adc) - ped) < (pedWidth * 5.)) { + if ((adc2fC(adc) - ped) < pedWidth) { lut[adc] = 0; lut_ootpu[adc] = 0; } else { diff --git a/CaloOnlineTools/HcalOnlineDb/src/HcalLutManager.cc b/CaloOnlineTools/HcalOnlineDb/src/HcalLutManager.cc index c15d8e27e7df5..8f1a892d9376c 100644 --- a/CaloOnlineTools/HcalOnlineDb/src/HcalLutManager.cc +++ b/CaloOnlineTools/HcalOnlineDb/src/HcalLutManager.cc @@ -1754,6 +1754,8 @@ std::map> HcalLutManager::getZdcLutXml(const HcalTP _cfg.topbottom = 1; else if (row->topbottom.find('b') != std::string::npos) _cfg.topbottom = 0; + else if (row->topbottom.find('u') != std::string::npos) + _cfg.topbottom = 2; else edm::LogWarning("HcalLutManager") << "fpga out of range...";