15 std::vector<int> pdg_ids,
bool check_allmatch,
18 threshold_{threshold},
22 check_allmatch_{check_allmatch},
23 n_products_{n_products} {}
27 bool acceptProjectile(
const G4HadProjectile& projectile)
const override {
28 return projectile.GetKineticEnergy() >= emin_;
31 bool acceptTarget(
const G4Nucleus& targetNucleus)
const override {
32 return targetNucleus.GetZ_asInt() >= zmin_;
35 bool acceptEvent()
const override;
41 std::vector<int> pdg_ids_;
51 threshold_{parameters.getParameter<
double>(
"hard_particle_threshold")},
52 zmin_{parameters.getParameter<
int>(
"zmin")},
53 emin_{parameters.getParameter<
double>(
"emin")},
54 pdg_ids_{parameters.getParameter<std::vector<int>>(
"pdg_ids")},
55 check_allmatch_{parameters.getParameter<
bool>(
"check_allmatch")},
56 n_products_{parameters.getParameter<
int>(
"n_products")} {}
64 std::vector<int> pdg_ids_;