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

Last change on this file since 1058 was 1055, checked in by garnier, 15 years ago

maj sur la beta de geant 4.9.3

File size: 6.5 KB
Line 
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// $Id: G4BraggModel.hh,v 1.13 2009/02/20 12:06:37 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
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)
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)
50
51//
52// Class Description:
53//
54// Implementation of energy loss and delta-electron production
55// by heavy slow charged particles using ICRU'49 and NIST evaluated data
56// for protons
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;
68class G4EmCorrections;
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
82  virtual G4double MinEnergyCut(const G4ParticleDefinition*,
83                                const G4MaterialCutsCouple*);
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
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
131protected:
132
133  virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
134                                      G4double kinEnergy);
135
136private:
137
138  inline void SetParticle(const G4ParticleDefinition* p);
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
162
163  G4EmCorrections*            corr;
164
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;
182  G4bool   isInitialised;
183};
184
185//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
186
187inline void G4BraggModel::SetParticle(const G4ParticleDefinition* p)
188{
189  particle = p;
190  mass = particle->GetPDGMass();
191  spin = particle->GetPDGSpin();
192  G4double q = particle->GetPDGCharge()/eplus;
193  chargeSquare = q*q;
194  massRate     = mass/proton_mass_c2;
195  ratio = electron_mass_c2/mass;
196}
197
198//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
199
200#endif
Note: See TracBrowser for help on using the repository browser.