2#include "SimCore/PhotoNuclearModels/BertiniSingleNeutronModel.h"
5bool BertiniSingleNeutronProcess::acceptEvent()
const {
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()};
15 const auto energy{secondary->GetKineticEnergy()};
16 if (energy > threshold_) {
18 if (pdgCode == 2112) {
23 return Nhard == 1 && Nhard_neutron == 1;
27 G4ProcessManager* processManager) {
28 auto photoNuclearProcess{
29 new G4HadronInelasticProcess(
"photonNuclear", G4Gamma::Definition())};
32 model->SetMaxEnergy(15 * CLHEP::GeV);
34 photoNuclearProcess->RegisterMe(model);
35 processManager->AddDiscreteProcess(photoNuclearProcess);
constexpr bool skipCountingParticle(const int pdgcode) const
Whether or not to include a particular particle type in any counting.
void ConstructGammaProcess(G4ProcessManager *processManager) override
The primary part of the model interface, responsible for adding the desired G4HadronicInteraction to ...
virtual void addPNCrossSectionData(G4HadronInelasticProcess *process) const
Default implementation for adding XS data for the process.