Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // Created on 2016/04/08 26 // Created on 2016/04/08 27 // 27 // 28 // Authors: D. Sakata, S. Incerti 28 // Authors: D. Sakata, S. Incerti 29 // 29 // 30 // This class perform transmission term of vol 30 // This class perform transmission term of volume plasmon excitation, 31 // based on Quinn Model, see Phys. Rev. vol 12 31 // based on Quinn Model, see Phys. Rev. vol 126, number 4 (1962) 32 32 33 #ifndef G4DNAQuinnPlasmonExcitationModel_h 33 #ifndef G4DNAQuinnPlasmonExcitationModel_h 34 #define G4DNAQuinnPlasmonExcitationModel_h 1 34 #define G4DNAQuinnPlasmonExcitationModel_h 1 35 35 36 #include "G4VEmModel.hh" 36 #include "G4VEmModel.hh" 37 #include "G4Electron.hh" 37 #include "G4Electron.hh" 38 #include "G4ParticleChangeForGamma.hh" 38 #include "G4ParticleChangeForGamma.hh" 39 #include "G4ProductionCutsTable.hh" 39 #include "G4ProductionCutsTable.hh" 40 40 41 class G4DNAQuinnPlasmonExcitationModel: public 41 class G4DNAQuinnPlasmonExcitationModel: public G4VEmModel 42 { 42 { 43 43 44 public: 44 public: 45 45 46 G4DNAQuinnPlasmonExcitationModel(const G4Par 46 G4DNAQuinnPlasmonExcitationModel(const G4ParticleDefinition* p = nullptr, 47 const G4String& 47 const G4String& nam = "DNAQuinnPlasmonExcitationModel"); 48 48 49 ~G4DNAQuinnPlasmonExcitationModel() override 49 ~G4DNAQuinnPlasmonExcitationModel() override; 50 50 51 G4DNAQuinnPlasmonExcitationModel & operator= 51 G4DNAQuinnPlasmonExcitationModel & operator=(const G4DNAQuinnPlasmonExcitationModel &right) = delete; 52 G4DNAQuinnPlasmonExcitationModel(const G4DN 52 G4DNAQuinnPlasmonExcitationModel(const G4DNAQuinnPlasmonExcitationModel&) = delete; 53 53 54 void Initialise(const G4ParticleDefinition*, 54 void Initialise(const G4ParticleDefinition*, 55 const G4DataVector& 55 const G4DataVector& = *(new G4DataVector())) override; 56 56 57 G4double CrossSectionPerVolume(const G4Mater 57 G4double CrossSectionPerVolume(const G4Material* material, 58 const 58 const G4ParticleDefinition* p, 59 G4dou 59 G4double ekin, 60 G4dou 60 G4double emin, 61 G4dou 61 G4double emax) override; 62 62 63 virtual G4double GetCrossSection(const G4Mat 63 virtual G4double GetCrossSection(const G4Material* material, 64 cons 64 const G4ParticleDefinition*, 65 G4do 65 G4double kineticEnergy); 66 66 67 void SampleSecondaries(std::vector<G4Dynamic 67 void SampleSecondaries(std::vector<G4DynamicParticle*>*, 68 const G4Mater 68 const G4MaterialCutsCouple*, 69 const G4Dynam 69 const G4DynamicParticle*, 70 G4double tmin 70 G4double tmin, 71 G4double maxE 71 G4double maxEnergy) override; 72 72 73 inline void SelectStationary(G4bool input); 73 inline void SelectStationary(G4bool input); 74 74 75 protected: 75 protected: 76 76 77 G4ParticleChangeForGamma* fParticleChangeFor 77 G4ParticleChangeForGamma* fParticleChangeForGamma; 78 78 79 private: 79 private: 80 80 81 G4double fLowEnergyLimit=0.; 81 G4double fLowEnergyLimit=0.; 82 G4double fHighEnergyLimit=0.; 82 G4double fHighEnergyLimit=0.; 83 83 84 G4bool isInitialised=false; 84 G4bool isInitialised=false; 85 G4bool statCode=false; 85 G4bool statCode=false; 86 G4int verboseLevel=0; 86 G4int verboseLevel=0; 87 G4int nValenceElectron[100]; 87 G4int nValenceElectron[100]; 88 88 89 const std::vector<G4double>* fpMaterialDens 89 const std::vector<G4double>* fpMaterialDensity=nullptr; 90 90 91 G4int GetNValenceElectron(G4int z); 91 G4int GetNValenceElectron(G4int z); 92 92 93 }; 93 }; 94 94 95 //....oooOO0OOooo........oooOO0OOooo........oo 95 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 96 96 97 inline void G4DNAQuinnPlasmonExcitationModel:: 97 inline void G4DNAQuinnPlasmonExcitationModel::SelectStationary(G4bool input) 98 { 98 { 99 statCode = input; 99 statCode = input; 100 } 100 } 101 101 102 #endif 102 #endif 103 103