|
using | Factory |
| The factory for PhotoNuclearModels.
|
|
◆ BertiniAtLeastNProductsModel()
simcore::BertiniAtLeastNProductsModel::BertiniAtLeastNProductsModel |
( |
const std::string & | name, |
|
|
const framework::config::Parameters & | parameters ) |
|
inline |
Definition at line 43 of file BertiniAtLeastNProductsModel.h.
46 threshold_{parameters.getParameter<double>("hard_particle_threshold")},
47 Zmin_{parameters.getParameter<int>("zmin")},
48 Emin_{parameters.getParameter<double>("emin")},
49 pdg_ids_{parameters.getParameter<std::vector<int>>("pdg_ids")},
50 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 | ) |
|
|
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 25 of file BertiniAtLeastNProductsModel.cxx.
26 {
27 auto photoNuclearProcess{
28 new G4HadronInelasticProcess("photonNuclear", G4Gamma::Definition())};
29 auto model{new BertiniAtLeastNProductsProcess{threshold_, Zmin_, Emin_,
30 pdg_ids_, min_products_}};
31 model->SetMaxEnergy(15 * CLHEP::GeV);
33 photoNuclearProcess->RegisterMe(model);
34 processManager->AddDiscreteProcess(photoNuclearProcess);
35}
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: