Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HLT] [LLVM14] Apply code checks #40202

Merged
merged 1 commit into from Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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