18 std::vector<int> pdg_ids,
bool check_allmatch,
21 threshold_{threshold},
25 check_allmatch_{check_allmatch},
26 n_products_{n_products} {}
30 bool acceptProjectile(
const G4HadProjectile& projectile)
const override {
31 return projectile.GetKineticEnergy() >= emin_;
34 bool acceptTarget(
const G4Nucleus& targetNucleus)
const override {
35 return targetNucleus.GetZ_asInt() >= zmin_;
38 bool acceptEvent()
const override;
44 std::vector<int> pdg_ids_;
54 threshold_{parameters.getParameter<
double>(
"hard_particle_threshold")},
55 zmin_{parameters.getParameter<
int>(
"zmin")},
56 emin_{parameters.getParameter<
double>(
"emin")},
57 pdg_ids_{parameters.getParameter<std::vector<int>>(
"pdg_ids")},
58 check_allmatch_{parameters.getParameter<
bool>(
"check_allmatch")},
59 n_products_{parameters.getParameter<
int>(
"n_products")} {}
67 std::vector<int> pdg_ids_;