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 // $Id: G4UAtomicDeexcitation.cc,v 1.11 26 // 27 // 27 // ------------------------------------------- 28 // ------------------------------------------------------------------- 28 // 29 // 29 // Geant4 Header G4UAtomicDeexcitation 30 // Geant4 Header G4UAtomicDeexcitation 30 // 31 // 31 // Authors: Alfonso Mantero (Alfonso.Mantero@g 32 // Authors: Alfonso Mantero (Alfonso.Mantero@ge.infn.it) 32 // 33 // 33 // Created 22 April 2010 from old G4AtomicDeex 34 // Created 22 April 2010 from old G4AtomicDeexcitation class 34 // 35 // 35 // Modified: 36 // Modified: 36 // --------- 37 // --------- 37 // 38 // 38 // 39 // 39 // ------------------------------------------- 40 // ------------------------------------------------------------------- 40 // 41 // 41 // Class description: 42 // Class description: 42 // Implementation of atomic deexcitation 43 // Implementation of atomic deexcitation 43 // 44 // 44 // ------------------------------------------- 45 // ------------------------------------------------------------------- 45 46 46 #ifndef G4UAtomicDeexcitation_h 47 #ifndef G4UAtomicDeexcitation_h 47 #define G4UAtomicDeexcitation_h 1 48 #define G4UAtomicDeexcitation_h 1 48 49 49 #include "G4VAtomDeexcitation.hh" 50 #include "G4VAtomDeexcitation.hh" 50 #include "G4AtomicShell.hh" 51 #include "G4AtomicShell.hh" 51 #include "globals.hh" 52 #include "globals.hh" 52 #include "G4DynamicParticle.hh" 53 #include "G4DynamicParticle.hh" 53 #include <vector> 54 #include <vector> 54 55 55 class G4AtomicTransitionManager; 56 class G4AtomicTransitionManager; 56 class G4VhShellCrossSection; 57 class G4VhShellCrossSection; 57 class G4EmCorrections; 58 class G4EmCorrections; 58 class G4Material; 59 class G4Material; 59 60 60 class G4UAtomicDeexcitation : public G4VAtomDe 61 class G4UAtomicDeexcitation : public G4VAtomDeexcitation 61 { 62 { 62 public: 63 public: 63 explicit G4UAtomicDeexcitation(); << 64 >> 65 G4UAtomicDeexcitation(); 64 virtual ~G4UAtomicDeexcitation(); 66 virtual ~G4UAtomicDeexcitation(); 65 67 66 //========================================== 68 //================================================================= 67 // methods that are requested to be implemen 69 // methods that are requested to be implemented by the interface 68 //========================================== 70 //================================================================= 69 /// initialisation methods << 70 void InitialiseForNewRun() override; << 71 void InitialiseForExtraAtom(G4int Z) overrid << 72 71 73 /// Set threshold energy for fluorescence << 72 // initialisation methods >> 73 virtual void InitialiseForNewRun(); >> 74 virtual void InitialiseForExtraAtom(G4int Z); >> 75 >> 76 >> 77 // Set threshold energy for fluorescence 74 void SetCutForSecondaryPhotons(G4double cut) 78 void SetCutForSecondaryPhotons(G4double cut); 75 79 76 /// Set threshold energy for Auger electron << 80 // Set threshold energy for Auger electron production 77 void SetCutForAugerElectrons(G4double cut); 81 void SetCutForAugerElectrons(G4double cut); 78 82 79 83 80 /// Get atomic shell by shell index, used by << 84 // Get atomic shell by shell index, used by discrete processes 81 /// (for example, photoelectric), when shell << 85 // (for example, photoelectric), when shell vacancy sampled by the model >> 86 virtual 82 const G4AtomicShell* GetAtomicShell(G4int Z, 87 const G4AtomicShell* GetAtomicShell(G4int Z, 83 G4AtomicShellEnumerator shell) o << 88 G4AtomicShellEnumerator shell); 84 89 85 /// generation of deexcitation for given ato << 90 // generation of deexcitation for given atom, shell vacancy and cuts 86 void GenerateParticles(std::vector<G4Dynamic << 91 virtual void GenerateParticles(std::vector<G4DynamicParticle*>* secVect, 87 const G4AtomicShell*, << 92 const G4AtomicShell*, 88 G4int Z, << 93 G4int Z, 89 G4double gammaCut, << 94 G4double gammaCut, 90 G4double eCut) override; << 95 G4double eCut); 91 << 96 92 /// access or compute PIXE cross section << 97 // access or compute PIXE cross section >> 98 virtual 93 G4double GetShellIonisationCrossSectionPerAt 99 G4double GetShellIonisationCrossSectionPerAtom(const G4ParticleDefinition*, 94 G4int Z, 100 G4int Z, 95 G4AtomicShellEnumerator shell, 101 G4AtomicShellEnumerator shell, 96 G4double kinE, 102 G4double kinE, 97 << 103 const G4Material* mat = 0); 98 104 99 /// access or compute PIXE cross section << 105 // access or compute PIXE cross section >> 106 virtual 100 G4double ComputeShellIonisationCrossSectionP 107 G4double ComputeShellIonisationCrossSectionPerAtom(const G4ParticleDefinition*, 101 G4int Z, 108 G4int Z, 102 G4AtomicShellEnumerator shell 109 G4AtomicShellEnumerator shell, 103 G4double kinE, 110 G4double kinE, 104 const G4Material* mat = nullp << 111 const G4Material* mat = 0); 105 112 106 G4UAtomicDeexcitation(G4UAtomicDeexcitation << 113 //================================================================= 107 G4UAtomicDeexcitation & operator=(const G4UA << 114 // concrete methods of the deextation class >> 115 //================================================================= 108 116 109 private: 117 private: 110 /// Decides wether a radiative transition is << 118 111 /// returns the identity of the starting she << 119 // Decides wether a radiative transition is possible and, if it is, >> 120 // returns the identity of the starting shell for the transition 112 G4int SelectTypeOfTransition(G4int Z, G4int 121 G4int SelectTypeOfTransition(G4int Z, G4int shellId); 113 122 114 /// Generates a particle from a radiative tr << 123 // Generates a particle from a radiative transition and returns it 115 G4DynamicParticle* GenerateFluorescence(G4in 124 G4DynamicParticle* GenerateFluorescence(G4int Z, G4int shellId, 116 G4int provShellId); 125 G4int provShellId); 117 126 118 /// Generates a particle from a non-radiativ << 127 // Generates a particle from a non-radiative transition and returns it 119 G4DynamicParticle* GenerateAuger(G4int Z, G4 128 G4DynamicParticle* GenerateAuger(G4int Z, G4int shellId); 120 129 121 ///Auger cascade by Burkhant Suerfu on March << 130 //SI 122 ///Generates auger electron cascade. << 131 //Auger cascade by Burkhant Suerfu on March 24 2015 (Bugzilla 1727) >> 132 //Generates auger electron cascade. 123 G4DynamicParticle* GenerateAuger(G4int Z, G4 133 G4DynamicParticle* GenerateAuger(G4int Z, G4int shellId, G4int& newAugerShellId); >> 134 //ENDSI >> 135 >> 136 // copy constructor and hide assignment operator >> 137 G4UAtomicDeexcitation(G4UAtomicDeexcitation &); >> 138 G4UAtomicDeexcitation & operator=(const G4UAtomicDeexcitation &right); >> 139 124 G4AtomicTransitionManager* transitionManager 140 G4AtomicTransitionManager* transitionManager; >> 141 >> 142 // Data member which stores the shells to be filled by >> 143 // the radiative transition >> 144 G4int newShellId; >> 145 >> 146 G4double minGammaEnergy; >> 147 G4double minElectronEnergy; >> 148 >> 149 // Data member wich stores the id of the shell where is the vacancy >> 150 // left from the Auger electron >> 151 G4int augerVacancyId; >> 152 >> 153 // Data member for the calculation of the proton and alpha ionisation XS 125 154 126 /// Data member for the calculation of the p << 127 G4VhShellCrossSection* PIXEshellCS; 155 G4VhShellCrossSection* PIXEshellCS; 128 G4VhShellCrossSection* anaPIXEshellCS; 156 G4VhShellCrossSection* anaPIXEshellCS; 129 G4VhShellCrossSection* ePIXEshellCS; 157 G4VhShellCrossSection* ePIXEshellCS; 130 G4EmCorrections* emcorr; 158 G4EmCorrections* emcorr; 131 159 132 const G4ParticleDefinition* theElectron; 160 const G4ParticleDefinition* theElectron; 133 const G4ParticleDefinition* thePositron; 161 const G4ParticleDefinition* thePositron; 134 162 >> 163 //SI 135 //Auger cascade by Burkhant Suerfu on March 164 //Auger cascade by Burkhant Suerfu on March 24 2015 (Bugzilla 1727) 136 //Data member to keep track of cascading vac 165 //Data member to keep track of cascading vacancies. 137 std::vector<int> vacancyArray; 166 std::vector<int> vacancyArray; 138 << 167 //ENDSI 139 /// Data member which stores the shells to b << 140 /// the radiative transition << 141 G4double minGammaEnergy; << 142 G4double minElectronEnergy; << 143 G4int newShellId; << 144 }; 168 }; 145 169 146 #endif 170 #endif 147 171 148 172 149 173 150 174 151 175