Geant4 Cross Reference |
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 34 #include "G4DNACrossSectionDataSet.hh" 35 #include "G4DNAPTBExcitationStructure.hh" 36 #include "G4DNAPTBIonisationStructure.hh" 37 #include "G4DNAWaterExcitationStructure.hh" 38 #include "G4Electron.hh" 39 #include "G4LogLogInterpolation.hh" 40 #include "G4NistManager.hh" 41 #include "G4ParticleChangeForGamma.hh" 42 #include "G4ProductionCutsTable.hh" 43 #include "G4Proton.hh" 44 #include "G4VDNAModel.hh" 45 /*! 46 * \brief The G4DNAPTBExcitationModel class 47 * This class implements the PTB excitation model. 48 */ 49 class G4Material; 50 class G4DNAPTBExcitationModel : public G4VDNAModel 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 72 G4DNAPTBExcitationModel& operator=( 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 */ 92 G4double CrossSectionPerVolume(const G4Material* material, const G4ParticleDefinition* p, 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 104 G4ParticleChangeForGamma* fParticleChangeForGamma = nullptr; 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 138