[819] | 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 | // |
---|
| 27 | // $Id: G4FinalStateChargeDecrease.cc,v 1.2 2007/11/09 20:11:04 pia Exp $ |
---|
| 28 | // GEANT4 tag $Name: $ |
---|
| 29 | // |
---|
| 30 | // Contact Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch) |
---|
| 31 | // |
---|
| 32 | // Reference: TNS Geant4-DNA paper |
---|
| 33 | // Reference for implementation model: NIM. 155, pp. 145-156, 1978 |
---|
| 34 | |
---|
| 35 | // History: |
---|
| 36 | // ----------- |
---|
| 37 | // Date Name Modification |
---|
| 38 | // 28 Apr 2007 M.G. Pia Created in compliance with design described in TNS paper |
---|
| 39 | // |
---|
| 40 | // ------------------------------------------------------------------- |
---|
| 41 | |
---|
| 42 | // Class description: |
---|
| 43 | // Reference: TNS Geant4-DNA paper |
---|
| 44 | // S. Chauvie et al., Geant4 physics processes for microdosimetry simulation: |
---|
| 45 | // design foundation and implementation of the first set of models, |
---|
| 46 | // IEEE Trans. Nucl. Sci., vol. 54, no. 6, Dec. 2007. |
---|
| 47 | // Further documentation available from http://www.ge.infn.it/geant4/dna |
---|
| 48 | |
---|
| 49 | // ------------------------------------------------------------------- |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | #include "G4FinalStateChargeDecrease.hh" |
---|
| 53 | #include "G4Track.hh" |
---|
| 54 | #include "G4Step.hh" |
---|
| 55 | #include "G4DynamicParticle.hh" |
---|
| 56 | //#include "Randomize.hh" |
---|
| 57 | |
---|
| 58 | #include "G4ParticleTypes.hh" |
---|
| 59 | #include "G4ParticleDefinition.hh" |
---|
| 60 | #include "G4SystemOfUnits.hh" |
---|
| 61 | //#include "G4ParticleMomentum.hh" |
---|
| 62 | #include "G4DNAGenericIonsManager.hh" |
---|
| 63 | |
---|
| 64 | G4FinalStateChargeDecrease::G4FinalStateChargeDecrease() |
---|
| 65 | { |
---|
| 66 | name = "ChargeDecrease"; |
---|
| 67 | lowEnergyLimit = 1 * keV; |
---|
| 68 | highEnergyLimit = 10 * MeV; |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | G4FinalStateChargeDecrease::~G4FinalStateChargeDecrease() |
---|
| 73 | {} |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | const G4FinalStateProduct& G4FinalStateChargeDecrease::GenerateFinalState(const G4Track& track, const G4Step& /* step */) |
---|
| 77 | { |
---|
| 78 | // Clear previous secondaries, energy deposit and particle kill status |
---|
| 79 | product.Clear(); |
---|
| 80 | |
---|
| 81 | G4double inK = track.GetDynamicParticle()->GetKineticEnergy(); |
---|
| 82 | |
---|
| 83 | G4ParticleDefinition* definition = track.GetDefinition(); |
---|
| 84 | G4int finalStateIndex = cross.RandomSelect(inK,definition); |
---|
| 85 | |
---|
| 86 | G4int n = NumberOfFinalStates(definition, finalStateIndex); |
---|
| 87 | G4double waterBindingEnergy = WaterBindingEnergyConstant(definition, finalStateIndex); |
---|
| 88 | G4double outgoingParticleBindingEnergy = OutgoingParticleBindingEnergyConstant(definition, finalStateIndex); |
---|
| 89 | |
---|
| 90 | G4double outK = 0.; |
---|
| 91 | if (definition==G4Proton::Proton()) |
---|
| 92 | outK = inK - n*(inK*electron_mass_c2/proton_mass_c2) - waterBindingEnergy + outgoingParticleBindingEnergy; |
---|
| 93 | else |
---|
| 94 | outK = inK - n*(inK*electron_mass_c2/(3728*MeV)) - waterBindingEnergy + outgoingParticleBindingEnergy; |
---|
| 95 | |
---|
| 96 | if (outK<0) |
---|
| 97 | { |
---|
| 98 | G4String message; |
---|
| 99 | message="ChargeDecreaseDingfelder::GenerateFinalState - Final kinetic energy is below 0! Process "; |
---|
| 100 | G4Exception(message); |
---|
| 101 | } |
---|
| 102 | |
---|
| 103 | // Primary particle |
---|
| 104 | product.KillPrimaryParticle(); |
---|
| 105 | product.AddEnergyDeposit(waterBindingEnergy); |
---|
| 106 | |
---|
| 107 | //Secondary particle |
---|
| 108 | G4DynamicParticle* aSecondary = new G4DynamicParticle(OutgoingParticleDefinition(definition, finalStateIndex), |
---|
| 109 | track.GetDynamicParticle()->GetMomentumDirection(), |
---|
| 110 | outK); |
---|
| 111 | |
---|
| 112 | product.AddSecondary(aSecondary); |
---|
| 113 | |
---|
| 114 | return product; |
---|
| 115 | } |
---|
| 116 | |
---|
| 117 | G4int G4FinalStateChargeDecrease::NumberOfFinalStates(G4ParticleDefinition* particleDefinition, |
---|
| 118 | G4int finalStateIndex ) |
---|
| 119 | |
---|
| 120 | { |
---|
| 121 | if (particleDefinition == G4Proton::Proton()) return 1; |
---|
| 122 | |
---|
| 123 | G4DNAGenericIonsManager*instance; |
---|
| 124 | instance = G4DNAGenericIonsManager::Instance(); |
---|
| 125 | |
---|
| 126 | if (particleDefinition == instance->GetIon("alpha++") ) |
---|
| 127 | { |
---|
| 128 | if (finalStateIndex==0) return 1; |
---|
| 129 | return 2; |
---|
| 130 | } |
---|
| 131 | |
---|
| 132 | if (particleDefinition == instance->GetIon("alpha+") ) return 1; |
---|
| 133 | |
---|
| 134 | return 0; |
---|
| 135 | } |
---|
| 136 | |
---|
| 137 | |
---|
| 138 | G4ParticleDefinition* G4FinalStateChargeDecrease::OutgoingParticleDefinition (G4ParticleDefinition* particleDefinition, |
---|
| 139 | G4int finalStateIndex) |
---|
| 140 | { |
---|
| 141 | G4DNAGenericIonsManager * instance(G4DNAGenericIonsManager::Instance()); |
---|
| 142 | |
---|
| 143 | if (particleDefinition == G4Proton::Proton()) return instance->GetIon("hydrogen"); |
---|
| 144 | |
---|
| 145 | if (particleDefinition == instance->GetIon("alpha++") ) |
---|
| 146 | { |
---|
| 147 | if (finalStateIndex == 0) return instance->GetIon("alpha+"); |
---|
| 148 | |
---|
| 149 | return instance->GetIon("helium"); |
---|
| 150 | } |
---|
| 151 | |
---|
| 152 | if (particleDefinition == instance->GetIon("alpha+") ) return instance->GetIon("helium"); |
---|
| 153 | |
---|
| 154 | return 0; |
---|
| 155 | } |
---|
| 156 | |
---|
| 157 | |
---|
| 158 | G4double G4FinalStateChargeDecrease::WaterBindingEnergyConstant(G4ParticleDefinition* particleDefinition, |
---|
| 159 | G4int finalStateIndex ) |
---|
| 160 | { |
---|
| 161 | // Ionization energy of first water shell |
---|
| 162 | // Rad. Phys. Chem. 59 p.267 by Dingf. et al. |
---|
| 163 | // W + 10.79 eV -> W+ + e- |
---|
| 164 | |
---|
| 165 | G4DNAGenericIonsManager * instance(G4DNAGenericIonsManager::Instance()); |
---|
| 166 | |
---|
| 167 | if(particleDefinition == G4Proton::Proton()) return 10.79*eV; |
---|
| 168 | |
---|
| 169 | if (particleDefinition == instance->GetIon("alpha++") ) |
---|
| 170 | { |
---|
| 171 | // Binding energy for W+ -> W++ + e- 10.79 eV |
---|
| 172 | // Binding energy for W -> W+ + e- 10.79 eV |
---|
| 173 | // |
---|
| 174 | // Ionization energy of first water shell |
---|
| 175 | // Rad. Phys. Chem. 59 p.267 by Dingf. et al. |
---|
| 176 | |
---|
| 177 | if (finalStateIndex == 0) return 10.79*eV; |
---|
| 178 | |
---|
| 179 | return 10.79*2*eV; |
---|
| 180 | } |
---|
| 181 | |
---|
| 182 | if (particleDefinition == instance->GetIon("alpha+") ) |
---|
| 183 | { |
---|
| 184 | // Binding energy for W+ -> W++ + e- 10.79 eV |
---|
| 185 | // Binding energy for W -> W+ + e- 10.79 eV |
---|
| 186 | // |
---|
| 187 | // Ionization energy of first water shell |
---|
| 188 | // Rad. Phys. Chem. 59 p.267 by Dingf. et al. |
---|
| 189 | |
---|
| 190 | return 10.79*eV; |
---|
| 191 | } |
---|
| 192 | |
---|
| 193 | return 0; |
---|
| 194 | } |
---|
| 195 | |
---|
| 196 | |
---|
| 197 | G4double G4FinalStateChargeDecrease::OutgoingParticleBindingEnergyConstant(G4ParticleDefinition* particleDefinition, |
---|
| 198 | G4int finalStateIndex) |
---|
| 199 | { |
---|
| 200 | G4DNAGenericIonsManager * instance(G4DNAGenericIonsManager::Instance()); |
---|
| 201 | |
---|
| 202 | if(particleDefinition == G4Proton::Proton()) return 13.6*eV; |
---|
| 203 | |
---|
| 204 | if (particleDefinition == instance->GetIon("alpha++") ) |
---|
| 205 | { |
---|
| 206 | // Binding energy for He+ -> He++ + e- 54.509 eV |
---|
| 207 | // Binding energy for He -> He+ + e- 24.587 eV |
---|
| 208 | |
---|
| 209 | if (finalStateIndex==0) return 54.509*eV; |
---|
| 210 | |
---|
| 211 | return (54.509 + 24.587)*eV; |
---|
| 212 | } |
---|
| 213 | |
---|
| 214 | if (particleDefinition == instance->GetIon("alpha+") ) |
---|
| 215 | { |
---|
| 216 | // Binding energy for He+ -> He++ + e- 54.509 eV |
---|
| 217 | // Binding energy for He -> He+ + e- 24.587 eV |
---|
| 218 | |
---|
| 219 | return 24.587*eV; |
---|
| 220 | } |
---|
| 221 | |
---|
| 222 | return 0; |
---|
| 223 | } |
---|
| 224 | |
---|