source: trunk/source/processes/electromagnetic/standard/include/G4BraggIonModel.hh @ 846

Last change on this file since 846 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 6.0 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: G4BraggIonModel.hh,v 1.8 2007/05/22 17:34:36 vnivanch Exp $
27// GEANT4 tag $Name:  $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name:     G4BraggIonModel
35//
36// Author:        Vladimir Ivanchenko
37//
38// Creation date: 13.10.2004
39//
40// Modifications:
41// 09-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
42// 11-05-05 Major optimisation of internal interfaces (V.Ivantchenko)
43// 15-02-06 ComputeCrossSectionPerElectron, ComputeCrossSectionPerAtom (mma)
44// 25-04-06 Add stopping data from ASTAR (V.Ivanchenko)
45
46//
47// Class Description:
48//
49// Implementation of energy loss and delta-electron production
50// by heavy slow charged particles using eveluated data
51
52// -------------------------------------------------------------------
53//
54
55#ifndef G4BraggIonModel_h
56#define G4BraggIonModel_h 1
57
58#include "G4VEmModel.hh"
59#include "G4ASTARStopping.hh"
60
61class G4ParticleChangeForLoss;
62
63class G4BraggIonModel : public G4VEmModel
64{
65
66public:
67
68  G4BraggIonModel(const G4ParticleDefinition* p = 0,
69                  const G4String& nam = "BraggIon");
70
71  virtual ~G4BraggIonModel();
72
73  virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
74
75  G4double MinEnergyCut(const G4ParticleDefinition*,
76                        const G4MaterialCutsCouple*);
77                       
78  virtual G4double ComputeCrossSectionPerElectron(
79                                 const G4ParticleDefinition*,
80                                 G4double kineticEnergy,
81                                 G4double cutEnergy,
82                                 G4double maxEnergy);
83                                 
84  virtual G4double ComputeCrossSectionPerAtom(
85                                 const G4ParticleDefinition*,
86                                 G4double kineticEnergy,
87                                 G4double Z, G4double A,
88                                 G4double cutEnergy,
89                                 G4double maxEnergy);
90                                                                 
91  virtual G4double CrossSectionPerVolume(const G4Material*,
92                                 const G4ParticleDefinition*,
93                                 G4double kineticEnergy,
94                                 G4double cutEnergy,
95                                 G4double maxEnergy);
96                                 
97  virtual G4double ComputeDEDXPerVolume(const G4Material*,
98                                 const G4ParticleDefinition*,
99                                 G4double kineticEnergy,
100                                 G4double cutEnergy);
101
102  virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
103                                 const G4MaterialCutsCouple*,
104                                 const G4DynamicParticle*,
105                                 G4double tmin,
106                                 G4double maxEnergy);
107
108protected:
109
110  G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
111                              G4double kinEnergy);
112
113private:
114
115  void SetParticle(const G4ParticleDefinition* p);
116
117  G4double HeEffChargeSquare(G4double z, G4double kinEnergyInMeV) const;
118
119  // hide assignment operator
120  G4BraggIonModel & operator=(const  G4BraggIonModel &right);
121  G4BraggIonModel(const  G4BraggIonModel&);
122
123  G4bool HasMaterial(const G4Material* material);
124
125  G4double StoppingPower(const G4Material* material,
126                               G4double kineticEnergy);
127
128  G4double ElectronicStoppingPower(G4double z,
129                                   G4double kineticEnergy) const;
130
131  void SetMoleculaNumber(G4int number) {iMolecula = number;};
132
133  G4double DEDX(const G4Material* material, G4double kineticEnergy);
134
135  const G4ParticleDefinition* particle;
136  G4ParticleDefinition*       theElectron;
137  G4ParticleChangeForLoss*    fParticleChange;
138
139  G4ASTARStopping             astar;
140
141  G4double mass;
142  G4double spin;
143  G4double chargeSquare;
144  G4double massRate;
145  G4double ratio;
146  G4double highKinEnergy;
147  G4double lowKinEnergy;
148  G4double lowestKinEnergy;
149  G4double HeMass;
150  G4double massFactor;
151  G4double rateMassHe2p;
152  G4double theZieglerFactor;
153
154  G4int    iMolecula;          // index in the molecula's table
155  G4bool   isIon;
156};
157
158//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
159
160inline G4double G4BraggIonModel::MaxSecondaryEnergy(
161          const G4ParticleDefinition* pd,
162                G4double kinEnergy)
163{
164  if(pd != particle) SetParticle(pd);
165  G4double tau  = kinEnergy/mass;
166  G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.) /
167                  (1. + 2.0*(tau + 1.)*ratio + ratio*ratio);
168  return tmax;
169}
170
171//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
172
173inline void G4BraggIonModel::SetParticle(const G4ParticleDefinition* p)
174{
175  particle = p;
176  mass = particle->GetPDGMass();
177  spin = particle->GetPDGSpin();
178  G4double q   = particle->GetPDGCharge()/eplus;
179  chargeSquare = q*q;
180  massRate     = mass/proton_mass_c2;
181  ratio        = electron_mass_c2/mass;
182}
183
184//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
185
186#endif
Note: See TracBrowser for help on using the repository browser.