Skip to content

Commit

Permalink
Merge pull request #40541 from aandvalenzuela/l1-clang14
Browse files Browse the repository at this point in the history
[L1][CLANG] Fix warnings reported by clang 14
  • Loading branch information
cmsbuild committed Jan 17, 2023
2 parents 7833c90 + 1f03b5c commit 0e11028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SimCalorimetry/HcalTrigPrimAlgos/src/HcalFinegrainBit.cc
Expand Up @@ -11,7 +11,7 @@ std::bitset<2> HcalFinegrainBit::compute(const HcalFinegrainBit::Tower& tower) c

// First layer consistent with a MIP, at least one layer with more
// than MIP energy deposition
result[1] = result[0] & (tower[is_above_mip].count() > 0);
result[1] = result[0] && (tower[is_above_mip].count() > 0);

// There layers consistent with a MIP
// result[2] = tower[is_mip].count() >= 3;
Expand Down
Expand Up @@ -479,8 +479,8 @@ void HcalTriggerPrimitiveAlgo::analyzeQIE11(IntegerCaloSamples& samples,
int sampleTSminus1 = samples[ibin];

if (fix_saturation_ && (sample_saturation.size() > ibin + 1))
check_sat = (sample_saturation[ibin + 1] | (sampleTS >= QIE11_MAX_LINEARIZATION_ET) | sample_saturation[ibin] |
(sampleTSminus1 >= QIE11_MAX_LINEARIZATION_ET));
check_sat = (sample_saturation[ibin + 1] || (sampleTS >= QIE11_MAX_LINEARIZATION_ET) ||
sample_saturation[ibin] || (sampleTSminus1 >= QIE11_MAX_LINEARIZATION_ET));

if (sampleTS > QIE11_MAX_LINEARIZATION_ET)
sampleTS = QIE11_MAX_LINEARIZATION_ET;
Expand Down

0 comments on commit 0e11028

Please sign in to comment.