◆ BertiniAtLeastNProductsModel()
| simcore::BertiniAtLeastNProductsModel::BertiniAtLeastNProductsModel |
( |
const std::string & | name, |
|
|
const framework::config::Parameters & | parameters ) |
|
inline |
Definition at line 40 of file BertiniAtLeastNProductsModel.h.
43 threshold_{parameters.getParameter<double>("hard_particle_threshold")},
44 zmin_{parameters.getParameter<int>("zmin")},
45 emin_{parameters.getParameter<double>("emin")},
46 pdg_ids_{parameters.getParameter<std::vector<int>>("pdg_ids")},
47 min_products_{parameters.getParameter<int>("min_products")} {}
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::BertiniAtLeastNProductsModel::constructGammaProcess |
( |
G4ProcessManager * | processManager | ) |
|
|
virtual |
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 28 of file BertiniAtLeastNProductsModel.cxx.
29 {
30 auto photo_nuclear_process{
31 new G4HadronInelasticProcess("photonNuclear", G4Gamma::Definition())};
32 auto model{new BertiniAtLeastNProductsProcess{threshold_, zmin_, emin_,
33 pdg_ids_, min_products_}};
34 model->SetMaxEnergy(15 * CLHEP::GeV);
36 photo_nuclear_process->RegisterMe(model);
37 processManager->AddDiscreteProcess(photo_nuclear_process);
38}
virtual void addPNCrossSectionData(G4HadronInelasticProcess *process) const
Default implementation for adding XS data for the process.
References simcore::PhotoNuclearModel::addPNCrossSectionData().
◆ emin_
| double simcore::BertiniAtLeastNProductsModel::emin_ |
|
private |
◆ min_products_
| int simcore::BertiniAtLeastNProductsModel::min_products_ |
|
private |
◆ pdg_ids_
| std::vector<int> simcore::BertiniAtLeastNProductsModel::pdg_ids_ |
|
private |
◆ threshold_
| double simcore::BertiniAtLeastNProductsModel::threshold_ |
|
private |
◆ zmin_
| int simcore::BertiniAtLeastNProductsModel::zmin_ |
|
private |
The documentation for this class was generated from the following files: