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: G4FinalStateChargeIncrease.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 "G4FinalStateChargeIncrease.hh" |
---|
53 | #include "G4Track.hh" |
---|
54 | #include "G4Step.hh" |
---|
55 | #include "G4DynamicParticle.hh" |
---|
56 | #include "Randomize.hh" |
---|
57 | #include "G4Electron.hh" |
---|
58 | #include "G4ParticleTypes.hh" |
---|
59 | #include "G4ParticleDefinition.hh" |
---|
60 | #include "G4SystemOfUnits.hh" |
---|
61 | #include "G4ParticleMomentum.hh" |
---|
62 | #include "G4DNAGenericIonsManager.hh" |
---|
63 | |
---|
64 | G4FinalStateChargeIncrease::G4FinalStateChargeIncrease() |
---|
65 | { |
---|
66 | name = "ChargeIncrease"; |
---|
67 | lowEnergyLimit = 1 * keV; |
---|
68 | highEnergyLimit = 10 * MeV; |
---|
69 | } |
---|
70 | |
---|
71 | |
---|
72 | G4FinalStateChargeIncrease::~G4FinalStateChargeIncrease() |
---|
73 | {} |
---|
74 | |
---|
75 | |
---|
76 | const G4FinalStateProduct& G4FinalStateChargeIncrease::GenerateFinalState(const G4Track& track, const G4Step& /* step */) |
---|
77 | { |
---|
78 | // Clear previous secondaries, energy deposit and particle kill status |
---|
79 | product.Clear(); |
---|
80 | |
---|
81 | // Primary particle |
---|
82 | product.KillPrimaryParticle(); |
---|
83 | product.AddEnergyDeposit(0.); |
---|
84 | G4ParticleDefinition* definition = track.GetDefinition(); |
---|
85 | |
---|
86 | // Secondaries |
---|
87 | G4double inK = track.GetDynamicParticle()->GetKineticEnergy(); |
---|
88 | |
---|
89 | G4int finalStateIndex = cross.RandomSelect(inK,definition); |
---|
90 | |
---|
91 | G4int n = NumberOfFinalStates(track.GetDefinition(),finalStateIndex); |
---|
92 | G4double outK = inK - IncomingParticleBindingEnergyConstant(definition,finalStateIndex); |
---|
93 | |
---|
94 | G4DNAGenericIonsManager* instance; |
---|
95 | instance = G4DNAGenericIonsManager::Instance(); |
---|
96 | |
---|
97 | G4double electronK; |
---|
98 | if (definition == instance->GetIon("hydrogen")) electronK = inK*electron_mass_c2/proton_mass_c2; |
---|
99 | else electronK = inK*electron_mass_c2/(3728*MeV); |
---|
100 | |
---|
101 | if (outK<0) |
---|
102 | { |
---|
103 | G4String message; |
---|
104 | message="G4FinalStateChargeIncrease - Final kinetic energy is below 0! Process "; |
---|
105 | } |
---|
106 | |
---|
107 | product.AddSecondary(new G4DynamicParticle(OutgoingParticleDefinition(definition,finalStateIndex), |
---|
108 | track.GetDynamicParticle()->GetMomentumDirection(), |
---|
109 | outK)); |
---|
110 | |
---|
111 | n = n - 1; |
---|
112 | |
---|
113 | while (n>0) |
---|
114 | { |
---|
115 | n--; |
---|
116 | |
---|
117 | product.AddSecondary |
---|
118 | (new G4DynamicParticle(G4Electron::Electron(), track.GetDynamicParticle()->GetMomentumDirection(), electronK)); |
---|
119 | } |
---|
120 | |
---|
121 | return product; |
---|
122 | } |
---|
123 | |
---|
124 | G4int G4FinalStateChargeIncrease::NumberOfFinalStates(G4ParticleDefinition* particleDefinition, |
---|
125 | G4int finalStateIndex ) |
---|
126 | |
---|
127 | { |
---|
128 | G4DNAGenericIonsManager* instance; |
---|
129 | instance = G4DNAGenericIonsManager::Instance(); |
---|
130 | if (particleDefinition == instance->GetIon("hydrogen")) return 2; |
---|
131 | if (particleDefinition == instance->GetIon("alpha+")) return 2; |
---|
132 | |
---|
133 | if (particleDefinition == instance->GetIon("helium")) |
---|
134 | { if (finalStateIndex==0) return 2; |
---|
135 | return 3; |
---|
136 | } |
---|
137 | return 0; |
---|
138 | } |
---|
139 | |
---|
140 | |
---|
141 | G4ParticleDefinition* G4FinalStateChargeIncrease::OutgoingParticleDefinition (G4ParticleDefinition* particleDefinition, |
---|
142 | G4int finalStateIndex) |
---|
143 | { |
---|
144 | G4DNAGenericIonsManager * instance(G4DNAGenericIonsManager::Instance()); |
---|
145 | if (particleDefinition == instance->GetIon("hydrogen")) return G4Proton::Proton(); |
---|
146 | if (particleDefinition == instance->GetIon("alpha+")) return instance->GetIon("alpha++"); |
---|
147 | |
---|
148 | if (particleDefinition == instance->GetIon("alpha+")) return instance->GetIon("helium"); |
---|
149 | { |
---|
150 | if (finalStateIndex==0) return instance->GetIon("alpha+"); |
---|
151 | return instance->GetIon("alpha++"); |
---|
152 | } |
---|
153 | return 0; |
---|
154 | } |
---|
155 | |
---|
156 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
157 | |
---|
158 | G4double G4FinalStateChargeIncrease::IncomingParticleBindingEnergyConstant(G4ParticleDefinition* particleDefinition, |
---|
159 | G4int finalStateIndex ) |
---|
160 | { |
---|
161 | G4DNAGenericIonsManager * instance(G4DNAGenericIonsManager::Instance()); |
---|
162 | if(particleDefinition == instance->GetIon("hydrogen")) return 13.6*eV; |
---|
163 | |
---|
164 | if(particleDefinition == instance->GetIon("alpha+")) |
---|
165 | { |
---|
166 | // Binding energy for He+ -> He++ + e- 54.509 eV |
---|
167 | // Binding energy for He -> He+ + e- 24.587 eV |
---|
168 | return 54.509*eV; |
---|
169 | } |
---|
170 | |
---|
171 | if(particleDefinition == instance->GetIon("helium")) |
---|
172 | { |
---|
173 | // Binding energy for He+ -> He++ + e- 54.509 eV |
---|
174 | // Binding energy for He -> He+ + e- 24.587 eV |
---|
175 | |
---|
176 | if (finalStateIndex==0) return 24.587*eV; |
---|
177 | return (54.509 + 24.587)*eV; |
---|
178 | } |
---|
179 | |
---|
180 | return 0; |
---|
181 | } |
---|
182 | |
---|
183 | |
---|