Skip to content

Commit

Permalink
Merge pull request #40202 from smuzaffar/hlt-llvm14-code-check
Browse files Browse the repository at this point in the history
[HLT] [LLVM14] Apply code checks
  • Loading branch information
cmsbuild committed Nov 30, 2022
2 parents 90f5a91 + bb47a7c commit 579b9b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -290,7 +290,7 @@ void HLTRechitInRegionsProducer<l1extra::L1EmParticle>::getEtaPhiRegions(
auto const& l1CaloGeom = eventSetup.getData(l1CaloGeometryToken_);

for (unsigned int candItr = 0; candItr < theCandidateCollection.size(); candItr++) {
l1extra::L1EmParticle emItr = theCandidateCollection.at(candItr);
const l1extra::L1EmParticle& emItr = theCandidateCollection.at(candItr);

if (!isolatedCase) {
if (doIsolated_ and (emItr.et() < l1LowerThrIgnoreIsolation_))
Expand Down Expand Up @@ -324,7 +324,7 @@ void HLTRechitInRegionsProducer<T1>::getEtaPhiRegions(std::vector<RectangularEta
edm::EventSetup const&,
bool const) {
for (unsigned int candItr = 0; candItr < theCandidateCollection.size(); candItr++) {
T1 emItr = theCandidateCollection.at(candItr);
const T1& emItr = theCandidateCollection.at(candItr);
if ((emItr.et() > l1LowerThr_) and (emItr.et() < l1UpperThr_)) {
double etaLow = emItr.eta() - regionEtaMargin_;
double etaHigh = emItr.eta() + regionEtaMargin_;
Expand Down
2 changes: 1 addition & 1 deletion RecoTauTag/HLTProducers/src/VertexFromTrackProducer.cc
Expand Up @@ -44,7 +44,7 @@ void VertexFromTrackProducer::produce(edm::StreamID iStreamId,
edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
iEvent.getByToken(beamSpotLabel, recoBeamSpotHandle);
if (recoBeamSpotHandle.isValid()) {
reco::BeamSpot beamSpot = *recoBeamSpotHandle;
const reco::BeamSpot& beamSpot = *recoBeamSpotHandle;
vertexPoint = beamSpot.position();
} else {
edm::LogError("UnusableBeamSpot") << "No beam spot found in Event";
Expand Down

0 comments on commit 579b9b4

Please sign in to comment.