19 return StatusCode::SUCCESS;
31 for (
const auto& pitr: *genEvt)
33 int id = pitr->pdg_id();
40 if (!productionVtx)
continue;
42 if (productionVtx->particles_in_size() < 2)
continue;
44 for (
const auto& thisParent: productionVtx->particles_in()) {
46 HepMC::GenVertex::particles_in_const_iterator firstParentIt = productionVtx->particles_in_const_begin();
47 HepMC::GenVertex::particles_in_const_iterator endParentIt = productionVtx->particles_in_const_end();
48 for (HepMC::GenVertex::particles_in_const_iterator thisParentIt = firstParentIt ; thisParentIt != endParentIt; ++thisParentIt) {
49 auto thisParent= *thisParentIt;
51 ATH_MSG_DEBUG(
" SelectBQuarkScattering Filter: parent ==> " <<thisParent->pdg_id() <<
" child ===> " << pitr->pdg_id());
63 setFilterPassed(N_Parent[0] >= 1 && N_Parent[1] >= 1);
64 return StatusCode::SUCCESS;