LDMX Software
Public Member Functions | Private Attributes | List of all members
simcore::BertiniNothingHardModel Class Reference

Public Member Functions

 BertiniNothingHardModel (const std::string &name, const framework::config::Parameters &parameters)
 
void ConstructGammaProcess (G4ProcessManager *processManager) override
 The primary part of the model interface, responsible for adding the desired G4HadronicInteraction to the process manager for the G4Gamma class.
 
- Public Member Functions inherited from simcore::PhotoNuclearModel
 PhotoNuclearModel (const std::string &name, const framework::config::Parameters &parameters)
 Base class does not take any parameters or do anything in particular, but any derived class may.
 
virtual void removeExistingModel (G4ProcessManager *processManager)
 Removes any existing photonNuclear process from the process manager of the G4Gamma class.
 
virtual void addPNCrossSectionData (G4HadronInelasticProcess *process) const
 Default implementation for adding XS data for the process.
 

Private Attributes

double threshold_
 
int Zmin_
 
double Emin_
 
bool count_light_ions_
 

Additional Inherited Members

- Public Types inherited from simcore::PhotoNuclearModel
using Factory = ::simcore::Factory< PhotoNuclearModel, std::shared_ptr< PhotoNuclearModel >, const std::string &, const framework::config::Parameters & >
 The factory for PhotoNuclearModels.
 

Detailed Description

Definition at line 39 of file BertiniNothingHardModel.h.

Constructor & Destructor Documentation

◆ BertiniNothingHardModel()

simcore::BertiniNothingHardModel::BertiniNothingHardModel ( const std::string &  name,
const framework::config::Parameters parameters 
)
inline

Definition at line 41 of file BertiniNothingHardModel.h.

43 : PhotoNuclearModel{name, parameters},
44 threshold_{parameters.getParameter<double>("hard_particle_threshold")},
45 Zmin_{parameters.getParameter<int>("zmin")},
46 Emin_{parameters.getParameter<double>("emin")},
47 count_light_ions_{parameters.getParameter<bool>("count_light_ions")} {}
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.
Definition Parameters.h:89
PhotoNuclearModel(const std::string &name, const framework::config::Parameters &parameters)
Base class does not take any parameters or do anything in particular, but any derived class may.

Member Function Documentation

◆ ConstructGammaProcess()

void simcore::BertiniNothingHardModel::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]processManagerthe process manager for the G4Gamma class, passed in automatically by the GammaPhysics module.

Implements simcore::PhotoNuclearModel.

Definition at line 20 of file BertiniNothingHardModel.cxx.

21 {
22 auto photoNuclearProcess{
23 new G4HadronInelasticProcess("photonNuclear", G4Gamma::Definition())};
24 auto model{new BertiniNothingHardProcess{threshold_, Zmin_, Emin_,
25 count_light_ions_}};
26 model->SetMaxEnergy(15 * CLHEP::GeV);
27 addPNCrossSectionData(photoNuclearProcess);
28 photoNuclearProcess->RegisterMe(model);
29 processManager->AddDiscreteProcess(photoNuclearProcess);
30}
virtual void addPNCrossSectionData(G4HadronInelasticProcess *process) const
Default implementation for adding XS data for the process.

References simcore::PhotoNuclearModel::addPNCrossSectionData().

Member Data Documentation

◆ count_light_ions_

bool simcore::BertiniNothingHardModel::count_light_ions_
private

Definition at line 55 of file BertiniNothingHardModel.h.

◆ Emin_

double simcore::BertiniNothingHardModel::Emin_
private

Definition at line 54 of file BertiniNothingHardModel.h.

◆ threshold_

double simcore::BertiniNothingHardModel::threshold_
private

Definition at line 52 of file BertiniNothingHardModel.h.

◆ Zmin_

int simcore::BertiniNothingHardModel::Zmin_
private

Definition at line 53 of file BertiniNothingHardModel.h.


The documentation for this class was generated from the following files: