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

Minor improvements to HLTPixlMBForAlignmentFilter #25550

Merged
merged 1 commit into from
Jan 11, 2019
Merged
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
5 changes: 2 additions & 3 deletions HLTrigger/special/plugins/HLTPixlMBForAlignmentFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,14 @@ 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;
if (tracks->size() >= min_trks_) {
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();
Expand Down Expand Up @@ -129,7 +128,7 @@ bool HLTPixlMBForAlignmentFilter::hltFilter(edm::Event& iEvent, const edm::Event
for (unsigned int i=0; i<itstore.size(); i++) {
int nincone=0;
// check isolation wrt ALL tracks, not only those above ptcut
for (ipixl=apixl; ipixl!=epixl; ipixl++){
for (auto ipixl=apixl; ipixl!=epixl; ipixl++){
double phidist=std::abs( phistore.at(i) - ipixl->momentum().phi() );
double etadist=std::abs( etastore.at(i) - ipixl->momentum().eta() );
double trkdist = sqrt(phidist*phidist + etadist*etadist);
Expand Down