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

Consider charge conjugation in decay products in PythiaFilterMultiAncestor #33491

Merged
merged 2 commits into from Apr 27, 2021
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
Expand Up @@ -181,6 +181,7 @@ bool PythiaFilterMultiAncestor::filter(edm::StreamID, edm::Event& iEvent, const
// use a counter, if there's enough daughters that match the pdg and kinematic
// criteria accept the event
uint good_dau = 0;
uint good_dau_cc = 0;
for (HepMC::GenVertex::particle_iterator dau = (*p)->end_vertex()->particles_begin(HepMC::children);
dau != (*p)->end_vertex()->particles_end(HepMC::children);
++dau) {
Expand All @@ -198,9 +199,21 @@ bool PythiaFilterMultiAncestor::filter(edm::StreamID, edm::Event& iEvent, const
continue;
++good_dau;
}
// check charge conjugation
if (-(*dau)->pdg_id() == daughterIDs[i]) { // notice minus sign
if ((*dau)->momentum().perp() < daughterMinPts[i])
continue;
if ((*dau)->momentum().perp() > daughterMaxPts[i])
continue;
if ((*dau)->momentum().eta() < daughterMinEtas[i])
continue;
if ((*dau)->momentum().eta() > daughterMaxEtas[i])
continue;
++good_dau_cc;
}
}
}
if (good_dau < daughterIDs.size())
if (good_dau < daughterIDs.size() && good_dau_cc < daughterIDs.size())
accepted = false;
}
}
Expand Down