Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DNAPTBExcitationModel.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// Authors: S. Meylan and C. Villagrasa (IRSN, France)
27// Models come from
28// M. Bug et al, Rad. Phys and Chem. 130, 459-479 (2017)
29//
30
31#ifndef G4DNAPTBExcitationModel_h
32#define G4DNAPTBExcitationModel_h 1
33
38#include "G4Electron.hh"
40#include "G4NistManager.hh"
43#include "G4Proton.hh"
44#include "G4VDNAModel.hh"
45/*!
46 * \brief The G4DNAPTBExcitationModel class
47 * This class implements the PTB excitation model.
48 */
49class G4Material;
51{
52 public:
53 using MapMeanEnergy = std::map<std::size_t, G4double>;
54 /*!
55 * \brief G4DNAPTBExcitationModel
56 * Constructor
57 * \param applyToMaterial
58 * \param p
59 * \param nam
60 */
61 G4DNAPTBExcitationModel(const G4String& applyToMaterial = "all",
62 const G4ParticleDefinition* p = nullptr, const G4String& nam = "DNAPTBExcitationModel");
63
64 /*!
65 * \brief ~G4DNAPTBExcitationModel
66 * Destructor
67 */
68 ~G4DNAPTBExcitationModel() override = default;
69
70 // copy constructor and hide assignment operator
71 G4DNAPTBExcitationModel(const G4DNAPTBExcitationModel&) = delete; // prevent copy-construction
73 const G4DNAPTBExcitationModel& right) = delete; // prevent assignement
74
75 /*!
76 * \brief Initialise
77 * Set the materials for which the model can be used and defined the energy limits
78 */
79 void Initialise(const G4ParticleDefinition* particle, const G4DataVector&) override;
80
81 /*!
82 * \brief CrossSectionPerVolume
83 * Retrieve the cross section corresponding to the current material, particle and energy
84 * \param material
85 * \param materialName
86 * \param p
87 * \param ekin
88 * \param emin
89 * \param emax
90 * \return the cross section value
91 */
93 G4double ekin, G4double emin, G4double emax) override;
94
95 /*!
96 * \brief SampleSecondaries
97 * If the model is selected for the ModelInterface then the SampleSecondaries method will be
98 * called. The method sets the incident particle characteristics after the ModelInterface. \param
99 * materialName \param particleChangeForGamma \param tmin \param tmax
100 */
101 void SampleSecondaries(std::vector<G4DynamicParticle*>*, const G4MaterialCutsCouple*,
102 const G4DynamicParticle*, G4double tmin, G4double tmax) override;
103
105
106 private:
107 G4int verboseLevel = 0; ///< verbose level
108 // Verbosity scale:
109 // 0 = nothing
110 // 1 = warning for energy non-conservation
111 // 2 = details of energy budget
112 // 3 = calculation of cross sections, file openings, sampling of atoms
113 // 4 = entering in methods
114 G4DNAWaterExcitationStructure waterStructure;
115
116 G4DNAPTBExcitationStructure ptbExcitationStructure;
117 G4DNAPTBIonisationStructure ptbIonisationStructure;
118
119 MapMeanEnergy fTableMeanEnergyPTB; ///< map: [materialName]=energyValue
120
121 G4Material* fpGuanine_PU = nullptr;
122 G4Material* fpTHF = nullptr;
123 G4Material* fpPY = nullptr;
124 G4Material* fpPU = nullptr;
125 G4Material* fpTMP = nullptr;
126 G4Material* fpG4_WATER = nullptr;
127 G4Material* fpBackbone_THF = nullptr;
128 G4Material* fpCytosine_PY = nullptr;
129 G4Material* fpThymine_PY = nullptr;
130 G4Material* fpAdenine_PU = nullptr;
131 G4Material* fpBackbone_TMP = nullptr;
132 G4Material* fpN2 = nullptr;
133 G4DNAPTBExcitationModel* fpModelData = nullptr;
134
135};
136
137#endif
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax) override
CrossSectionPerVolume Retrieve the cross section corresponding to the current material,...
G4DNAPTBExcitationModel(const G4DNAPTBExcitationModel &)=delete
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double tmax) override
SampleSecondaries If the model is selected for the ModelInterface then the SampleSecondaries method w...
std::map< std::size_t, G4double > MapMeanEnergy
G4ParticleChangeForGamma * fParticleChangeForGamma
void Initialise(const G4ParticleDefinition *particle, const G4DataVector &) override
Initialise Set the materials for which the model can be used and defined the energy limits.
~G4DNAPTBExcitationModel() override=default
~G4DNAPTBExcitationModel Destructor
G4DNAPTBExcitationModel(const G4String &applyToMaterial="all", const G4ParticleDefinition *p=nullptr, const G4String &nam="DNAPTBExcitationModel")
G4DNAPTBExcitationModel Constructor.
G4DNAPTBExcitationModel & operator=(const G4DNAPTBExcitationModel &right)=delete
The G4VDNAModel class.