source: trunk/source/materials/include/G4IonisParamMat.hh@ 1251

Last change on this file since 1251 was 1196, checked in by garnier, 16 years ago

update CVS release candidate geant4.9.3.01

File size: 7.8 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//
27// $Id: G4IonisParamMat.hh,v 1.17 2009/11/18 17:42:23 gcosmo Exp $
28// GEANT4 tag $Name: materials-V09-02-18 $
29//
30
31// class description
32//
33// The class contains few (physical) quantities related to the Ionisation
34// process, for a material defined by its pointer G4Material*
35//
36
37//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
38
39// 09-07-98: data moved from G4Material (mma)
40// 09-03-01: copy constructor and assignement operator in public (mma)
41// 28-10-02: add setMeanExcitationEnergy (V.Ivanchenko)
42// 27-09-07: add computation of parameters for ions (V.Ivanchenko)
43// 04-03-08: add fBirks constant (mma)
44
45//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
46
47#ifndef G4IonisParamMat_HH
48#define G4IonisParamMat_HH
49
50#include "G4ios.hh"
51#include "globals.hh"
52
53class G4Material; // forward declaration
54class G4DensityEffectData;
55
56//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
57
58class G4IonisParamMat // with description
59{
60public:
61
62 G4IonisParamMat(G4Material*);
63 virtual ~G4IonisParamMat();
64
65 //
66 // retrieval methods
67 //
68
69 // parameters for mean energy loss calculation:
70 G4double GetMeanExcitationEnergy() const {return fMeanExcitationEnergy;};
71 void SetMeanExcitationEnergy(G4double value);
72 G4double FindMeanExcitationEnergy(const G4String& chFormula);
73 G4double GetLogMeanExcEnergy() const {return fLogMeanExcEnergy;};
74 G4double* GetShellCorrectionVector() const {return fShellCorrectionVector;};
75 G4double GetTaul() const {return fTaul;};
76
77 // parameters of the density correction:
78 G4double GetPlasmaEnergy() const {return fPlasmaEnergy;};
79 G4double GetAdjustmentFactor() const {return fAdjustmentFactor;};
80 G4double GetCdensity() const {return fCdensity;};
81 G4double GetMdensity() const {return fMdensity;};
82 G4double GetAdensity() const {return fAdensity;};
83 G4double GetX0density() const {return fX0density;};
84 G4double GetX1density() const {return fX1density;};
85 G4double GetD0density() const {return fD0density;};
86
87 // compute density correction as a function of the kinematic variable
88 // x = log10(beta*gamma)
89 inline G4double DensityCorrection(G4double x);
90 static G4DensityEffectData* GetDensityEffectData();
91
92 // parameters of the energy loss fluctuation model:
93 G4double GetF1fluct() const {return fF1fluct;};
94 G4double GetF2fluct() const {return fF2fluct;};
95 G4double GetEnergy1fluct() const {return fEnergy1fluct;};
96 G4double GetLogEnergy1fluct() const {return fLogEnergy1fluct;};
97 G4double GetEnergy2fluct() const {return fEnergy2fluct;};
98 G4double GetLogEnergy2fluct() const {return fLogEnergy2fluct;};
99 G4double GetEnergy0fluct() const {return fEnergy0fluct;};
100 G4double GetRateionexcfluct() const {return fRateionexcfluct;};
101
102 // parameters for ion corrections computations
103 G4double GetZeffective() const {return fZeff;};
104 G4double GetFermiEnergy() const {return fFermiEnergy;};
105 G4double GetLFactor() const {return fLfactor;};
106
107 // parameters for Birks attenuation:
108 void SetBirksConstant(G4double value) {fBirks = value;};
109 G4double GetBirksConstant() const {return fBirks;};
110
111 // parameters for average energy per ion
112 void SetMeanEnergyPerIonPair(G4double value) {fMeanEnergyPerIon = value;};
113 G4double GetMeanEnergyPerIonPair() const {return fMeanEnergyPerIon;};
114
115public: // without description
116
117 G4IonisParamMat(const G4IonisParamMat&);
118 const G4IonisParamMat& operator=(const G4IonisParamMat&);
119 G4int operator==(const G4IonisParamMat&) const;
120 G4int operator!=(const G4IonisParamMat&) const;
121
122 G4IonisParamMat(__void__&);
123 // Fake default constructor for usage restricted to direct object
124 // persistency for clients requiring preallocation of memory for
125 // persistifiable objects.
126
127private:
128
129 // Compute mean parameters : ExcitationEnergy,Shell corretion vector ...
130 void ComputeMeanParameters();
131
132 // Compute parameters for the density effect
133 void ComputeDensityEffect();
134
135 // Compute parameters for the energy fluctuation model
136 void ComputeFluctModel();
137
138 // Compute parameters for ion parameterizations
139 void ComputeIonParameters();
140
141private:
142
143//
144// data members
145//
146 G4Material* fMaterial; // this material
147
148 // parameters for mean energy loss calculation
149 G4double fMeanExcitationEnergy; //
150 G4double fLogMeanExcEnergy; //
151 G4double* fShellCorrectionVector; // shell correction coefficients
152 G4double fTaul; // lower limit of Bethe-Bloch formula
153
154 // parameters of the density correction
155 G4double fCdensity; // mat.constant
156 G4double fMdensity; // exponent
157 G4double fAdensity; //
158 G4double fX0density; //
159 G4double fX1density; //
160 G4double fD0density;
161
162 G4double fPlasmaEnergy;
163 G4double fAdjustmentFactor;
164
165 // parameters of the energy loss fluctuation model
166 G4double fF1fluct;
167 G4double fF2fluct;
168 G4double fEnergy1fluct;
169 G4double fLogEnergy1fluct;
170 G4double fEnergy2fluct;
171 G4double fLogEnergy2fluct;
172 G4double fEnergy0fluct;
173 G4double fRateionexcfluct;
174
175 // parameters for ion corrections computations
176 G4double fZeff;
177 G4double fFermiEnergy;
178 G4double fLfactor;
179
180 // parameter for Birks attenuation
181 G4double fBirks;
182 // average energy per ion pair
183 G4double fMeanEnergyPerIon;
184
185 // static data created only once
186 static G4DensityEffectData* fDensityData;
187};
188
189 // x = log10(beta*gamma)
190inline G4double G4IonisParamMat::DensityCorrection(G4double x)
191{
192 static const G4double twoln10 = 2.*std::log(10.);
193 G4double y = 0.0;
194 if(x < fX0density) {
195 if(fD0density > 0.0) { y = fD0density*std::pow(10.,2*(x - fX0density)); }
196 } else if(x >= fX1density) { y = twoln10*x - fCdensity; }
197 else {y = twoln10*x - fCdensity + fAdensity*std::pow(fX1density - x, fMdensity);}
198 return y;
199}
200
201#endif
Note: See TracBrowser for help on using the repository browser.