Skip to content

Commit

Permalink
Merge pull request #36767 from iarspider/patch-4
Browse files Browse the repository at this point in the history
Fix HcalTestThreshold.cc: validId is used before declaration
  • Loading branch information
cmsbuild committed Jan 21, 2022
2 parents 0e4610c + 28c4f5c commit c7597c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Calibration/HcalCalibAlgos/test/HcalTestThreshold.cc
Expand Up @@ -96,8 +96,8 @@ void HcalTestThreshold::analyze(edm::Event const& iEvent, edm::EventSetup const&

// Next EE
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HcalIsoTrack") << "\n\nList of " << validId.size() << " valid DetId's of EE";
auto const& validId = geo->getValidDetIds(DetId::Ecal, 2);
edm::LogVerbatim("HcalIsoTrack") << "\n\nList of " << validId.size() << " valid DetId's of EE";
for (const auto& id : validId)
edm::LogVerbatim("HcalIsoTrack") << EEDetId(id) << " SC " << EEDetId(id).isc() << " CR " << EEDetId(id).ic()
<< " Eta " << (geo->getPosition(id)).eta();
Expand Down

0 comments on commit c7597c3

Please sign in to comment.