Definition at line 11 of file BertiniSingleNeutronModel.h.
◆ BertiniSingleNeutronProcess()
| simcore::BertiniSingleNeutronProcess::BertiniSingleNeutronProcess |
( |
double | threshold, |
|
|
int | Zmin, |
|
|
double | Emin, |
|
|
bool | count_light_ions ) |
|
inline |
Definition at line 13 of file BertiniSingleNeutronModel.h.
15 : BertiniEventTopologyProcess{count_light_ions},
16 threshold_{threshold},
17 zmin_{Zmin},
18 emin_{Emin} {}
◆ acceptEvent()
| bool simcore::BertiniSingleNeutronProcess::acceptEvent |
( |
| ) |
const |
|
overridevirtual |
Implements simcore::BertiniEventTopologyProcess.
Definition at line 8 of file BertiniSingleNeutronModel.cxx.
8 {
9 int nhard{0};
10 int nhard_neutron{0};
11 int secondaries{theParticleChange.GetNumberOfSecondaries()};
12 for (int i{0}; i < secondaries; ++i) {
13 const auto secondary{theParticleChange.GetSecondary(i)->GetParticle()};
14 const auto pdg_code{secondary->GetDefinition()->GetPDGEncoding()};
16 continue;
17 }
18 const auto energy{secondary->GetKineticEnergy()};
19 if (energy > threshold_) {
20 nhard++;
21 if (pdg_code == 2112) {
22 nhard_neutron++;
23 }
24 }
25 }
26 return nhard == 1 && nhard_neutron == 1;
27}
constexpr bool skipCountingParticle(const int pdgcode) const
Whether or not to include a particular particle type in any counting.
◆ acceptProjectile()
| bool simcore::BertiniSingleNeutronProcess::acceptProjectile |
( |
const G4HadProjectile & | projectile | ) |
const |
|
inlineoverridevirtual |
◆ acceptTarget()
| bool simcore::BertiniSingleNeutronProcess::acceptTarget |
( |
const G4Nucleus & | targetNucleus | ) |
const |
|
inlineoverridevirtual |
◆ emin_
| double simcore::BertiniSingleNeutronProcess::emin_ |
|
private |
◆ threshold_
| double simcore::BertiniSingleNeutronProcess::threshold_ |
|
private |
◆ zmin_
| int simcore::BertiniSingleNeutronProcess::zmin_ |
|
private |
The documentation for this class was generated from the following files: