Skip to content

Commit

Permalink
Merge pull request #38896 from gk199/LUT_onlyHB
Browse files Browse the repository at this point in the history
HCAL: Group 0 LUT edited to set LLP bits in HB only, not HE
  • Loading branch information
cmsbuild committed Aug 2, 2022
2 parents 23b9f39 + 1913c7c commit 3266dc5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions CalibCalorimetry/HcalTPGAlgos/src/HcaluLUTTPGCoder.cc
Expand Up @@ -531,14 +531,16 @@ void HcaluLUTTPGCoder::update(const HcalDbService& conditions) {
lut[adc]; // used for bits 12, 13, 14, 15 for Group 0 LUT for LLP time and depth bits that rely on linearized energies

if (qieType == QIE11) {
if ((linearizedADC < bit12_energy and cell.depth() <= 2) or (cell.depth() >= 3))
lut[adc] |= 1 << 12;
if (linearizedADC >= bit13_energy and cell.depth() >= 3)
lut[adc] |= 1 << 13;
if (linearizedADC >= bit14_energy)
lut[adc] |= 1 << 14;
if (linearizedADC >= bit15_energy)
lut[adc] |= 1 << 15;
if (subdet == HcalBarrel) { // edit since bits 12-15 not supported in HE yet
if ((linearizedADC < bit12_energy and cell.depth() <= 2) or (cell.depth() >= 3))
lut[adc] |= 1 << 12;
if (linearizedADC >= bit13_energy and cell.depth() >= 3)
lut[adc] |= 1 << 13;
if (linearizedADC >= bit14_energy)
lut[adc] |= 1 << 14;
if (linearizedADC >= bit15_energy)
lut[adc] |= 1 << 15;
}
if (adc >= mipMin and adc < mipMax)
lut[adc] |= QIE11_LUT_MSB0;
else if (adc >= mipMax)
Expand Down

0 comments on commit 3266dc5

Please sign in to comment.