File indexing completed on 2025-01-18 09:58:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 #ifndef G4DNAEmfietzoglouExcitationModel_h
0037 #define G4DNAEmfietzoglouExcitationModel_h 1
0038
0039 #include "G4VEmModel.hh"
0040 #include "G4ParticleChangeForGamma.hh"
0041 #include "G4ProductionCutsTable.hh"
0042
0043 #include "G4DNACrossSectionDataSet.hh"
0044 #include "G4LogLogInterpolation.hh"
0045 #include "G4Electron.hh"
0046 #include "G4Proton.hh"
0047 #include "G4DNAEmfietzoglouWaterExcitationStructure.hh"
0048 #include "G4NistManager.hh"
0049
0050 class G4DNAEmfietzoglouExcitationModel : public G4VEmModel
0051 {
0052
0053 public:
0054
0055 G4DNAEmfietzoglouExcitationModel(const G4ParticleDefinition* p = nullptr,
0056 const G4String& nam =
0057 "DNAEmfietzoglouExcitationModel");
0058
0059 ~G4DNAEmfietzoglouExcitationModel() override;
0060
0061 G4DNAEmfietzoglouExcitationModel & operator=(const G4DNAEmfietzoglouExcitationModel &right) = delete;
0062 G4DNAEmfietzoglouExcitationModel(const G4DNAEmfietzoglouExcitationModel&) = delete;
0063
0064 void Initialise(const G4ParticleDefinition*,
0065 const G4DataVector& = *(new G4DataVector())) override;
0066
0067 G4double CrossSectionPerVolume(const G4Material* material,
0068 const G4ParticleDefinition* p,
0069 G4double ekin,
0070 G4double emin,
0071 G4double emax) override;
0072
0073 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0074 const G4MaterialCutsCouple*,
0075 const G4DynamicParticle*,
0076 G4double tmin,
0077 G4double maxEnergy) override;
0078
0079 inline void SelectStationary(G4bool input);
0080
0081 protected:
0082
0083 G4ParticleChangeForGamma* fParticleChangeForGamma;
0084
0085 private:
0086
0087 G4bool statCode;
0088
0089
0090 const std::vector<G4double>* fpMolWaterDensity;
0091
0092 std::map<G4String, G4double, std::less<G4String> > lowEnergyLimit;
0093 std::map<G4String, G4double, std::less<G4String> > highEnergyLimit;
0094
0095 G4bool isInitialised{false};
0096 G4int verboseLevel;
0097
0098
0099
0100 using MapFile = std::map<G4String, G4String, std::less<G4String>>;
0101 MapFile tableFile;
0102
0103 using MapData = std::map<G4String, G4DNACrossSectionDataSet *, std::less<G4String>>;
0104 MapData tableData;
0105
0106
0107
0108 G4int RandomSelect(G4double energy, const G4String& particle);
0109
0110
0111
0112 G4DNAEmfietzoglouWaterExcitationStructure waterStructure;
0113
0114 };
0115
0116
0117
0118 inline void G4DNAEmfietzoglouExcitationModel::SelectStationary (G4bool input)
0119 {
0120 statCode = input;
0121 }
0122
0123
0124
0125 #endif