Skip to content

Commit

Permalink
two minor changes related to ZDC
Browse files Browse the repository at this point in the history
  • Loading branch information
JHiltbrand committed Oct 10, 2024
1 parent 4bb35a4 commit e993d6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CalibCalorimetry/HcalTPGAlgos/src/HcaluLUTTPGCoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions CaloOnlineTools/HcalOnlineDb/src/HcalLutManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1754,6 +1754,8 @@ std::map<int, std::shared_ptr<LutXml>> 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...";

Expand Down

0 comments on commit e993d6c

Please sign in to comment.