Definition at line 14 of file BertiniSingleNeutronModel.h.
◆ BertiniSingleNeutronProcess()
simcore::BertiniSingleNeutronProcess::BertiniSingleNeutronProcess |
( |
double |
threshold, |
|
|
int |
Zmin, |
|
|
double |
Emin, |
|
|
bool |
count_light_ions |
|
) |
| |
|
inline |
Definition at line 16 of file BertiniSingleNeutronModel.h.
18 : BertiniEventTopologyProcess{count_light_ions},
19 threshold_{threshold},
20 Zmin_{Zmin},
21 Emin_{Emin} {}
◆ acceptEvent()
bool simcore::BertiniSingleNeutronProcess::acceptEvent |
( |
| ) |
const |
|
overridevirtual |
Implements simcore::BertiniEventTopologyProcess.
Definition at line 5 of file BertiniSingleNeutronModel.cxx.
5 {
6 int Nhard{0};
7 int Nhard_neutron{0};
8 int secondaries{theParticleChange.GetNumberOfSecondaries()};
9 for (int i{0}; i < secondaries; ++i) {
10 const auto secondary{theParticleChange.GetSecondary(i)->GetParticle()};
11 const auto pdgCode{secondary->GetDefinition()->GetPDGEncoding()};
13 continue;
14 }
15 const auto energy{secondary->GetKineticEnergy()};
16 if (energy > threshold_) {
17 Nhard++;
18 if (pdgCode == 2112) {
19 Nhard_neutron++;
20 }
21 }
22 }
23 return Nhard == 1 && Nhard_neutron == 1;
24}
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: