◆ BertiniAtLeastNProductsProcess()
simcore::BertiniAtLeastNProductsProcess::BertiniAtLeastNProductsProcess |
( |
double |
threshold, |
|
|
int |
Zmin, |
|
|
double |
Emin, |
|
|
std::vector< int > |
pdg_ids, |
|
|
int |
min_products |
|
) |
| |
|
inline |
Definition at line 16 of file BertiniAtLeastNProductsModel.h.
18 : BertiniEventTopologyProcess{},
19 threshold_{threshold},
20 Zmin_{Zmin},
21 Emin_{Emin},
22 pdg_ids_{pdg_ids},
23 min_products_{min_products} {}
◆ acceptEvent()
bool simcore::BertiniAtLeastNProductsProcess::acceptEvent |
( |
| ) |
const |
|
overridevirtual |
Implements simcore::BertiniEventTopologyProcess.
Definition at line 5 of file BertiniAtLeastNProductsModel.cxx.
5 {
6 int secondaries{theParticleChange.GetNumberOfSecondaries()};
7 int matchingCount{0};
8 for (int i{0}; i < secondaries; ++i) {
9 const auto secondary{theParticleChange.GetSecondary(i)->GetParticle()};
10 const auto pdgCode{secondary->GetDefinition()->GetPDGEncoding()};
11 const auto energy{secondary->GetKineticEnergy()};
12 if (std::find(std::begin(pdg_ids_), std::end(pdg_ids_), pdgCode) !=
13 std::end(pdg_ids_)) {
14 if (energy > threshold_) {
15 ++matchingCount;
16 }
17 }
18 if (matchingCount >= min_products_) {
19 return true;
20 }
21 }
22 return false;
23}
◆ acceptProjectile()
bool simcore::BertiniAtLeastNProductsProcess::acceptProjectile |
( |
const G4HadProjectile & |
projectile | ) |
const |
|
inlineoverridevirtual |
◆ acceptTarget()
bool simcore::BertiniAtLeastNProductsProcess::acceptTarget |
( |
const G4Nucleus & |
targetNucleus | ) |
const |
|
inlineoverridevirtual |
◆ Emin_
double simcore::BertiniAtLeastNProductsProcess::Emin_ |
|
private |
◆ min_products_
int simcore::BertiniAtLeastNProductsProcess::min_products_ |
|
private |
◆ pdg_ids_
std::vector<int> simcore::BertiniAtLeastNProductsProcess::pdg_ids_ |
|
private |
◆ threshold_
double simcore::BertiniAtLeastNProductsProcess::threshold_ |
|
private |
◆ Zmin_
int simcore::BertiniAtLeastNProductsProcess::Zmin_ |
|
private |
The documentation for this class was generated from the following files: