source: trunk/source/processes/electromagnetic/lowenergy/include/G4Penelope08IonisationModel.hh

Last change on this file was 1350, checked in by garnier, 15 years ago

update to last version 4.9.4

File size: 6.3 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: G4Penelope08IonisationModel.hh,v 1.1 2010/07/28 07:12:13 pandola Exp $
27// GEANT4 tag $Name: geant4-09-04-ref-00 $
28//
29// Author: Luciano Pandola
30//
31// History:
32// -----------
33// 30 Mar 2010 L. Pandola 1st implementation.
34//
35// -------------------------------------------------------------------
36//
37// Class description:
38// Low Energy Electromagnetic Physics, e+ and e- ionisation
39// with Penelope Model, version 2008
40// -------------------------------------------------------------------
41
42#ifndef G4PENELOPE08IONISATIONMODEL_HH
43#define G4PENELOPE08IONISATIONMODEL_HH 1
44
45#include "globals.hh"
46#include "G4VEmModel.hh"
47#include "G4DataVector.hh"
48#include "G4ParticleChangeForLoss.hh"
49#include "G4AtomicDeexcitation.hh"
50
51class G4PhysicsFreeVector;
52class G4PhysicsLogVector;
53class G4ParticleDefinition;
54class G4DynamicParticle;
55class G4MaterialCutsCouple;
56class G4Material;
57class G4PenelopeOscillatorManager;
58class G4PenelopeOscillator;
59class G4PenelopeCrossSection;
60
61class G4Penelope08IonisationModel : public G4VEmModel
62{
63
64public:
65
66 G4Penelope08IonisationModel(const G4ParticleDefinition* p=0,
67 const G4String& processName ="PenIoni");
68
69 virtual ~G4Penelope08IonisationModel();
70
71 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
72
73 //*This is a dummy method. Never inkoved by the tracking, it just issues
74 //*a warning if one tries to get Cross Sections per Atom via the
75 //*G4EmCalculator.
76 virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*,
77 G4double,
78 G4double,
79 G4double,
80 G4double,
81 G4double);
82
83 virtual G4double CrossSectionPerVolume(const G4Material* material,
84 const G4ParticleDefinition* theParticle,
85 G4double kineticEnergy,
86 G4double cutEnergy,
87 G4double maxEnergy = DBL_MAX);
88
89 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
90 const G4MaterialCutsCouple*,
91 const G4DynamicParticle*,
92 G4double tmin,
93 G4double maxEnergy);
94
95 virtual G4double ComputeDEDXPerVolume(const G4Material*,
96 const G4ParticleDefinition*,
97 G4double kineticEnergy,
98 G4double cutEnergy);
99
100 // Min cut in kinetic energy allowed by the model
101 virtual G4double MinEnergyCut(const G4ParticleDefinition*,
102 const G4MaterialCutsCouple*);
103
104 void SetVerbosityLevel(G4int lev){verboseLevel = lev;};
105 G4int GetVerbosityLevel(){return verboseLevel;};
106
107 void ActivateAuger(G4bool);
108
109 G4double GetDensityCorrection(const G4Material*,G4double energy);
110
111protected:
112 G4ParticleChangeForLoss* fParticleChange;
113
114private:
115 void ClearTables();
116
117 G4Penelope08IonisationModel & operator=(const G4Penelope08IonisationModel &right);
118 G4Penelope08IonisationModel(const G4Penelope08IonisationModel&);
119
120 G4PenelopeCrossSection* GetCrossSectionTableForCouple(const G4ParticleDefinition*,
121 const G4Material*,G4double cut);
122
123 void BuildXSTable(const G4Material*,G4double cut,
124 const G4ParticleDefinition*);
125
126
127 void BuildDeltaTable(const G4Material*);
128
129 G4DataVector* ComputeShellCrossSectionsElectron(G4PenelopeOscillator* ,
130 G4double energy,G4double cut,
131 G4double delta);
132
133 G4DataVector* ComputeShellCrossSectionsPositron(G4PenelopeOscillator* ,
134 G4double energy,G4double cut,
135 G4double delta);
136
137 void SampleFinalStateElectron(const G4Material*,G4double cutEnergy,G4double kineticEnergy);
138 void SampleFinalStatePositron(const G4Material*,G4double cutEnergy,G4double kineticEnergy);
139
140 //Intrinsic energy limits of the model: cannot be extended by the parent process
141 G4double fIntrinsicLowEnergyLimit;
142 G4double fIntrinsicHighEnergyLimit;
143
144 G4int verboseLevel;
145
146 G4bool isInitialised;
147
148 G4AtomicDeexcitation deexcitationManager;
149
150 G4double kineticEnergy1;
151 G4double cosThetaPrimary;
152 G4double energySecondary;
153 G4double cosThetaSecondary;
154 G4int targetOscillator;
155
156 G4PenelopeOscillatorManager* oscManager;
157
158 //G4PenelopeCrossSection takes care of the logs
159 std::map< std::pair<const G4Material*,G4double>, G4PenelopeCrossSection*> *XSTableElectron;
160 std::map< std::pair<const G4Material*,G4double>, G4PenelopeCrossSection*> *XSTablePositron;
161
162 //delta vs. log(energy)
163 std::map<const G4Material*,G4PhysicsFreeVector*> *theDeltaTable;
164 G4PhysicsLogVector* energyGrid;
165
166 size_t nBins;
167
168
169};
170
171#endif
172
Note: See TracBrowser for help on using the repository browser.