diff --git a/HLTrigger/special/plugins/HLTPixlMBForAlignmentFilter.cc b/HLTrigger/special/plugins/HLTPixlMBForAlignmentFilter.cc index 9791dd0e174f6..8bed8aae26bee 100644 --- a/HLTrigger/special/plugins/HLTPixlMBForAlignmentFilter.cc +++ b/HLTrigger/special/plugins/HLTPixlMBForAlignmentFilter.cc @@ -90,7 +90,6 @@ bool HLTPixlMBForAlignmentFilter::hltFilter(edm::Event& iEvent, const edm::Event bool accept = false; auto apixl(tracks->begin()); auto epixl(tracks->end()); - RecoChargedCandidateCollection::const_iterator ipixl, jpixl; int itrk = 0; double zvtxfit = 0.0; double zvtxfit2 = 0.0; @@ -98,7 +97,7 @@ bool HLTPixlMBForAlignmentFilter::hltFilter(edm::Event& iEvent, const edm::Event etastore.clear(); phistore.clear(); itstore.clear(); - for (ipixl=apixl; ipixl!=epixl; ipixl++){ + for (auto ipixl=apixl; ipixl!=epixl; ipixl++){ const double& ztrk1 = ipixl->vz(); const double& etatrk1 = ipixl->momentum().eta(); const double& phitrk1 = ipixl->momentum().phi(); @@ -129,7 +128,7 @@ bool HLTPixlMBForAlignmentFilter::hltFilter(edm::Event& iEvent, const edm::Event for (unsigned int i=0; imomentum().phi() ); double etadist=std::abs( etastore.at(i) - ipixl->momentum().eta() ); double trkdist = sqrt(phidist*phidist + etadist*etadist);