Definition at line 37 of file BertiniSingleNeutronModel.h.
◆ BertiniSingleNeutronModel()
Definition at line 39 of file BertiniSingleNeutronModel.h.
42 threshold_{parameters.
getParameter<
double>(
"hard_particle_threshold")},
45 count_light_ions_{parameters.
getParameter<
bool>(
"count_light_ions")} {}
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.
PhotoNuclearModel(const std::string &name, const framework::config::Parameters ¶meters)
Base class does not take any parameters or do anything in particular, but any derived class may.
◆ ConstructGammaProcess()
void simcore::BertiniSingleNeutronModel::ConstructGammaProcess |
( |
G4ProcessManager * |
processManager | ) |
|
|
overridevirtual |
The primary part of the model interface, responsible for adding the desired G4HadronicInteraction to the process manager for the G4Gamma class.
- Parameters
-
[in] | processManager | the process manager for the G4Gamma class, passed in automatically by the GammaPhysics module. |
Implements simcore::PhotoNuclearModel.
Definition at line 26 of file BertiniSingleNeutronModel.cxx.
27 {
28 auto photoNuclearProcess{
29 new G4HadronInelasticProcess("photonNuclear", G4Gamma::Definition())};
30 auto model{new BertiniSingleNeutronProcess{threshold_, Zmin_, Emin_,
31 count_light_ions_}};
32 model->SetMaxEnergy(15 * CLHEP::GeV);
34 photoNuclearProcess->RegisterMe(model);
35 processManager->AddDiscreteProcess(photoNuclearProcess);
36}
virtual void addPNCrossSectionData(G4HadronInelasticProcess *process) const
Default implementation for adding XS data for the process.
References simcore::PhotoNuclearModel::addPNCrossSectionData().
◆ count_light_ions_
bool simcore::BertiniSingleNeutronModel::count_light_ions_ |
|
private |
◆ Emin_
double simcore::BertiniSingleNeutronModel::Emin_ |
|
private |
◆ threshold_
double simcore::BertiniSingleNeutronModel::threshold_ |
|
private |
◆ Zmin_
int simcore::BertiniSingleNeutronModel::Zmin_ |
|
private |
The documentation for this class was generated from the following files: