source: trunk/source/processes/electromagnetic/lowenergy/src/G4FinalStateChargeDecrease.cc@ 992

Last change on this file since 992 was 991, checked in by garnier, 17 years ago

update

  • Property svn:executable set to *
File size: 6.9 KB
RevLine 
[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//
[991]26// $Id: G4FinalStateChargeDecrease.cc,v 1.3 2008/07/14 20:47:34 sincerti Exp $
27// GEANT4 tag $Name: geant4-09-02 $
[819]28
29#include "G4FinalStateChargeDecrease.hh"
30
[961]31//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
[819]32
33G4FinalStateChargeDecrease::G4FinalStateChargeDecrease()
34{
35 lowEnergyLimit = 1 * keV;
36 highEnergyLimit = 10 * MeV;
37}
38
[961]39//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
[819]40
41G4FinalStateChargeDecrease::~G4FinalStateChargeDecrease()
42{}
43
[961]44//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
[819]45
46const G4FinalStateProduct& G4FinalStateChargeDecrease::GenerateFinalState(const G4Track& track, const G4Step& /* step */)
47{
48 product.Clear();
49
50 G4double inK = track.GetDynamicParticle()->GetKineticEnergy();
51
52 G4ParticleDefinition* definition = track.GetDefinition();
53 G4int finalStateIndex = cross.RandomSelect(inK,definition);
54
55 G4int n = NumberOfFinalStates(definition, finalStateIndex);
56 G4double waterBindingEnergy = WaterBindingEnergyConstant(definition, finalStateIndex);
57 G4double outgoingParticleBindingEnergy = OutgoingParticleBindingEnergyConstant(definition, finalStateIndex);
58
59 G4double outK = 0.;
60 if (definition==G4Proton::Proton())
61 outK = inK - n*(inK*electron_mass_c2/proton_mass_c2) - waterBindingEnergy + outgoingParticleBindingEnergy;
62 else
63 outK = inK - n*(inK*electron_mass_c2/(3728*MeV)) - waterBindingEnergy + outgoingParticleBindingEnergy;
64
65 if (outK<0)
[961]66 {
67 G4String message;
68 message="ChargeDecreaseDingfelder::GenerateFinalState - Final kinetic energy is below 0! Process ";
69 G4Exception(message);
70 }
[819]71
72 product.KillPrimaryParticle();
73 product.AddEnergyDeposit(waterBindingEnergy);
[991]74
[819]75 G4DynamicParticle* aSecondary = new G4DynamicParticle(OutgoingParticleDefinition(definition, finalStateIndex),
76 track.GetDynamicParticle()->GetMomentumDirection(),
77 outK);
78
79 product.AddSecondary(aSecondary);
80
81 return product;
82}
83
[961]84//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
85
[819]86G4int G4FinalStateChargeDecrease::NumberOfFinalStates(G4ParticleDefinition* particleDefinition,
87 G4int finalStateIndex )
88
89{
90 if (particleDefinition == G4Proton::Proton()) return 1;
91
92 G4DNAGenericIonsManager*instance;
93 instance = G4DNAGenericIonsManager::Instance();
94
95 if (particleDefinition == instance->GetIon("alpha++") )
[961]96 {
97 if (finalStateIndex==0) return 1;
98 return 2;
99 }
[819]100
101 if (particleDefinition == instance->GetIon("alpha+") ) return 1;
102
103 return 0;
104}
105
[961]106//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
[819]107
108G4ParticleDefinition* G4FinalStateChargeDecrease::OutgoingParticleDefinition (G4ParticleDefinition* particleDefinition,
109 G4int finalStateIndex)
110{
111 G4DNAGenericIonsManager * instance(G4DNAGenericIonsManager::Instance());
112
113 if (particleDefinition == G4Proton::Proton()) return instance->GetIon("hydrogen");
114
115 if (particleDefinition == instance->GetIon("alpha++") )
[961]116 {
117 if (finalStateIndex == 0) return instance->GetIon("alpha+");
118 return instance->GetIon("helium");
119 }
[819]120
121 if (particleDefinition == instance->GetIon("alpha+") ) return instance->GetIon("helium");
122
123 return 0;
124}
125
[961]126//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
[819]127
128G4double G4FinalStateChargeDecrease::WaterBindingEnergyConstant(G4ParticleDefinition* particleDefinition,
129 G4int finalStateIndex )
130{
131 // Ionization energy of first water shell
132 // Rad. Phys. Chem. 59 p.267 by Dingf. et al.
133 // W + 10.79 eV -> W+ + e-
134
135 G4DNAGenericIonsManager * instance(G4DNAGenericIonsManager::Instance());
136
137 if(particleDefinition == G4Proton::Proton()) return 10.79*eV;
138
139 if (particleDefinition == instance->GetIon("alpha++") )
[961]140 {
[819]141 // Binding energy for W+ -> W++ + e- 10.79 eV
142 // Binding energy for W -> W+ + e- 10.79 eV
143 //
144 // Ionization energy of first water shell
145 // Rad. Phys. Chem. 59 p.267 by Dingf. et al.
146
147 if (finalStateIndex == 0) return 10.79*eV;
148
149 return 10.79*2*eV;
[961]150 }
[819]151
152 if (particleDefinition == instance->GetIon("alpha+") )
[961]153 {
[819]154 // Binding energy for W+ -> W++ + e- 10.79 eV
155 // Binding energy for W -> W+ + e- 10.79 eV
156 //
157 // Ionization energy of first water shell
158 // Rad. Phys. Chem. 59 p.267 by Dingf. et al.
159
160 return 10.79*eV;
[961]161 }
[819]162
163 return 0;
164}
165
[961]166//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
[819]167
168G4double G4FinalStateChargeDecrease::OutgoingParticleBindingEnergyConstant(G4ParticleDefinition* particleDefinition,
169 G4int finalStateIndex)
170{
171 G4DNAGenericIonsManager * instance(G4DNAGenericIonsManager::Instance());
172
173 if(particleDefinition == G4Proton::Proton()) return 13.6*eV;
174
175 if (particleDefinition == instance->GetIon("alpha++") )
[961]176 {
[819]177 // Binding energy for He+ -> He++ + e- 54.509 eV
178 // Binding energy for He -> He+ + e- 24.587 eV
179
180 if (finalStateIndex==0) return 54.509*eV;
181
182 return (54.509 + 24.587)*eV;
[961]183 }
[819]184
185 if (particleDefinition == instance->GetIon("alpha+") )
[961]186 {
[819]187 // Binding energy for He+ -> He++ + e- 54.509 eV
188 // Binding energy for He -> He+ + e- 24.587 eV
189
190 return 24.587*eV;
[961]191 }
[819]192
193 return 0;
194}
195
Note: See TracBrowser for help on using the repository browser.