Skip to content

Commit

Permalink
clang10 warnings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed May 8, 2020
1 parent 8c0e2bf commit e7fc1d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion L1Trigger/L1TMuonOverlap/src/OMTFinputMaker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ OMTFinput OMTFinputMaker::processDT(const L1MuDTChambPhContainer *dtPhDigis,
if (!dtPhDigis)
return result;

for (const auto digiIt : *dtPhDigis->getContainer()) {
for (const auto &digiIt : *dtPhDigis->getContainer()) {
DTChamberId detid(digiIt.whNum(), digiIt.stNum(), digiIt.scNum() + 1);

///Check it the data fits into given processor input range
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ std::unique_ptr<const L1TGlobalPrescalesVetos> L1TGlobalPrescalesVetosOnlineProd
<< "\nWarning: No default found in BX mask xml, used 1 (unmasked) as default" << std::endl;
}

for (const std::pair<std::string, std::set<Range_t, RangeComp_t>> &algo : non_default_bx_ranges) {
for (auto &algo : non_default_bx_ranges) {
const std::string &algoName = algo.first;
unsigned int algoBit = algoName2bit[algoName];
for (auto range : algo.second)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ void HcalTriggerPrimitiveAlgo::addUpgradeFG(const HcalTrigTowerDetId& id,
}

void HcalTriggerPrimitiveAlgo::setPeakFinderAlgorithm(int algo) {
if (algo <= 0 && algo > 2)
if (algo <= 0 || algo > 2)
throw cms::Exception("ERROR: Only algo 1 & 2 are supported.") << std::endl;
peak_finder_algorithm_ = algo;
}
Expand Down

0 comments on commit e7fc1d9

Please sign in to comment.