source: trunk/source/processes/electromagnetic/standard/include/G4BraggModel.hh@ 1036

Last change on this file since 1036 was 1007, checked in by garnier, 17 years ago

update to geant4.9.2

File size: 7.0 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//
[1007]26// $Id: G4BraggModel.hh,v 1.12 2008/09/14 17:11:48 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-02 $
[819]28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name: G4BraggModel
35//
36// Author: Vladimir Ivanchenko
37//
38// Creation date: 03.01.2002
39//
40// Modifications:
41// 23-12-02 V.Ivanchenko change interface in order to moveto cut per region
42// 24-01-03 Make models region aware (V.Ivanchenko)
43// 13-02-03 Add name (V.Ivanchenko)
44// 12-11-03 Fix for GenericIons (V.Ivanchenko)
45// 11-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
46// 15-02-06 ComputeCrossSectionPerElectron, ComputeCrossSectionPerAtom (mma)
[961]47// 25-04-06 Added stopping data from PSTAR (V.Ivanchenko)
48// 12-08-08 Added methods GetParticleCharge, GetChargeSquareRatio,
49// CorrectionsAlongStep needed for ions(V.Ivanchenko)
[819]50
51//
52// Class Description:
53//
54// Implementation of energy loss and delta-electron production
[961]55// by heavy slow charged particles using ICRU'49 and NIST evaluated data
56// for protons
[819]57
58// -------------------------------------------------------------------
59//
60
61#ifndef G4BraggModel_h
62#define G4BraggModel_h 1
63
64#include "G4VEmModel.hh"
65#include "G4PSTARStopping.hh"
66
67class G4ParticleChangeForLoss;
[961]68class G4EmCorrections;
[819]69
70class G4BraggModel : public G4VEmModel
71{
72
73public:
74
75 G4BraggModel(const G4ParticleDefinition* p = 0,
76 const G4String& nam = "Bragg");
77
78 virtual ~G4BraggModel();
79
80 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
81
[1007]82 G4double MinEnergyCut(const G4ParticleDefinition*,
83 const G4MaterialCutsCouple*);
[819]84
85 virtual G4double ComputeCrossSectionPerElectron(
86 const G4ParticleDefinition*,
87 G4double kineticEnergy,
88 G4double cutEnergy,
89 G4double maxEnergy);
90
91 virtual G4double ComputeCrossSectionPerAtom(
92 const G4ParticleDefinition*,
93 G4double kineticEnergy,
94 G4double Z, G4double A,
95 G4double cutEnergy,
96 G4double maxEnergy);
97
98 virtual G4double CrossSectionPerVolume(const G4Material*,
99 const G4ParticleDefinition*,
100 G4double kineticEnergy,
101 G4double cutEnergy,
102 G4double maxEnergy);
103
104 virtual G4double ComputeDEDXPerVolume(const G4Material*,
105 const G4ParticleDefinition*,
106 G4double kineticEnergy,
107 G4double cutEnergy);
108
109 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
110 const G4MaterialCutsCouple*,
111 const G4DynamicParticle*,
112 G4double tmin,
113 G4double maxEnergy);
114
[961]115 // Compute ion charge
116 virtual G4double GetChargeSquareRatio(const G4ParticleDefinition*,
117 const G4Material*,
118 G4double kineticEnergy);
119
120 virtual G4double GetParticleCharge(const G4ParticleDefinition* p,
121 const G4Material* mat,
122 G4double kineticEnergy);
123
124 // add correction to energy loss and compute non-ionizing energy loss
125 virtual void CorrectionsAlongStep(const G4MaterialCutsCouple*,
126 const G4DynamicParticle*,
127 G4double& eloss,
128 G4double& niel,
129 G4double length);
130
[819]131protected:
132
[1007]133 G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
134 G4double kinEnergy);
[819]135
136private:
137
[1007]138 void SetParticle(const G4ParticleDefinition* p);
[819]139
140 G4bool HasMaterial(const G4Material* material);
141
142 G4double StoppingPower(const G4Material* material,
143 G4double kineticEnergy);
144
145 G4double ElectronicStoppingPower(G4double z,
146 G4double kineticEnergy) const;
147
148 void SetMoleculaNumber(G4int number) {iMolecula = number;};
149
150 G4double DEDX(const G4Material* material, G4double kineticEnergy);
151
152 G4bool MolecIsInZiegler1988(const G4Material* material);
153
154 G4double ChemicalFactor(G4double kineticEnergy, G4double eloss125) const;
155
156 void SetExpStopPower125(G4double value) {expStopPower125 = value;};
157
158 // hide assignment operator
159 G4BraggModel & operator=(const G4BraggModel &right);
160 G4BraggModel(const G4BraggModel&);
161
[961]162
163 G4EmCorrections* corr;
164
[819]165 const G4ParticleDefinition* particle;
166 G4ParticleDefinition* theElectron;
167 G4ParticleChangeForLoss* fParticleChange;
168 G4PSTARStopping pstar;
169
170 G4double mass;
171 G4double spin;
172 G4double chargeSquare;
173 G4double massRate;
174 G4double ratio;
175 G4double lowestKinEnergy;
176 G4double protonMassAMU;
177 G4double theZieglerFactor;
178 G4double expStopPower125; // Experimental Stopping power at 125keV
179
180 G4int iMolecula; // index in the molecula's table
181 G4bool isIon;
[961]182 G4bool isInitialised;
[819]183};
184
185//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
186
[1007]187inline G4double G4BraggModel::MaxSecondaryEnergy(
188 const G4ParticleDefinition* pd,
189 G4double kinEnergy)
190{
191 if(pd != particle) SetParticle(pd);
192 G4double tau = kinEnergy/mass;
193 G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.) /
194 (1. + 2.0*(tau + 1.)*ratio + ratio*ratio);
195 return tmax;
196}
197
198//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
199
[819]200inline void G4BraggModel::SetParticle(const G4ParticleDefinition* p)
201{
202 particle = p;
203 mass = particle->GetPDGMass();
204 spin = particle->GetPDGSpin();
205 G4double q = particle->GetPDGCharge()/eplus;
206 chargeSquare = q*q;
207 massRate = mass/proton_mass_c2;
208 ratio = electron_mass_c2/mass;
209}
210
211//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
212
213#endif
Note: See TracBrowser for help on using the repository browser.