Geant4  10.01.p02
G4IonisParamMat.hh
Go to the documentation of this file.
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: G4IonisParamMat.hh 81374 2014-05-27 13:07:25Z gcosmo $
27 //
28 
29 // class description
30 //
31 // The class contains few (physical) quantities related to the Ionisation
32 // process, for a material defined by its pointer G4Material*
33 //
34 
35 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
36 
37 // 09-07-98: data moved from G4Material (mma)
38 // 09-03-01: copy constructor and assignement operator in public (mma)
39 // 28-10-02: add setMeanExcitationEnergy (V.Ivanchenko)
40 // 27-09-07: add computation of parameters for ions (V.Ivanchenko)
41 // 04-03-08: add fBirks constant (mma)
42 
43 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
44 
45 #ifndef G4IonisParamMat_HH
46 #define G4IonisParamMat_HH
47 
48 #include "G4ios.hh"
49 #include "globals.hh"
50 
51 class G4Material; // forward declaration
53 
54 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
55 
56 class G4IonisParamMat // with description
57 {
58 public:
59 
61  virtual ~G4IonisParamMat();
62 
63  //
64  // retrieval methods
65  //
66 
67  // parameters for mean energy loss calculation:
70  G4double FindMeanExcitationEnergy(const G4String& chFormula);
73  G4double GetTaul() const {return fTaul;};
74 
75  // parameters of the density correction:
78  G4double GetCdensity() const {return fCdensity;};
79  G4double GetMdensity() const {return fMdensity;};
80  G4double GetAdensity() const {return fAdensity;};
81  G4double GetX0density() const {return fX0density;};
82  G4double GetX1density() const {return fX1density;};
83  G4double GetD0density() const {return fD0density;};
84 
85  // compute density correction as a function of the kinematic variable
86  // x = log10(beta*gamma)
89 
90  // parameters of the energy loss fluctuation model:
91  G4double GetF1fluct() const {return fF1fluct;};
92  G4double GetF2fluct() const {return fF2fluct;};
99 
100  // parameters for ion corrections computations
101  G4double GetZeffective() const {return fZeff;};
103  G4double GetLFactor() const {return fLfactor;};
104  G4double GetInvA23() const {return fInvA23;};
105 
106  // parameters for Birks attenuation:
107  void SetBirksConstant(G4double value) {fBirks = value;};
108  G4double GetBirksConstant() const {return fBirks;};
109 
110  // parameters for average energy per ion
113 
114  // operators
116  G4int operator==(const G4IonisParamMat&) const;
117  G4int operator!=(const G4IonisParamMat&) const;
118 
119  G4IonisParamMat(__void__&);
120  // Fake default constructor for usage restricted to direct object
121  // persistency for clients requiring preallocation of memory for
122  // persistifiable objects.
123 
124 private:
125 
126  // Compute mean parameters : ExcitationEnergy,Shell corretion vector ...
127  void ComputeMeanParameters();
128 
129  // Compute parameters for the density effect
130  void ComputeDensityEffect();
131 
132  // Compute parameters for the energy fluctuation model
133  void ComputeFluctModel();
134 
135  // Compute parameters for ion parameterizations
136  void ComputeIonParameters();
137 
139 
140 //
141 // data members
142 //
143  G4Material* fMaterial; // this material
144 
145  // parameters for mean energy loss calculation
148  G4double* fShellCorrectionVector; // shell correction coefficients
149  G4double fTaul; // lower limit of Bethe-Bloch formula
150 
151  // parameters of the density correction
152  G4double fCdensity; // mat.constant
153  G4double fMdensity; // exponent
158 
161 
162  // parameters of the energy loss fluctuation model
171 
172  // parameters for ion corrections computations
177 
178  // parameter for Birks attenuation
180  // average energy per ion pair
182 
183  // static data created only once
186 };
187 
188 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
189 
191 {
192  // x = log10(beta*gamma)
193 
194  G4double y = 0.0;
195  if(x < fX0density) {
196  if(fD0density > 0.0) { y = fD0density*std::pow(10.,2*(x - fX0density)); }
197  } else if(x >= fX1density) { y = twoln10*x - fCdensity; }
198  else {y = twoln10*x - fCdensity + fAdensity*std::pow(fX1density - x, fMdensity);}
199  return y;
200 }
201 
202 #endif
G4IonisParamMat & operator=(const G4IonisParamMat &)
G4double fLogEnergy2fluct
G4double GetAdensity() const
G4double GetEnergy2fluct() const
G4double GetMeanEnergyPerIonPair() const
G4double FindMeanExcitationEnergy(const G4String &chFormula)
void SetMeanExcitationEnergy(G4double value)
void SetBirksConstant(G4double value)
G4double GetX1density() const
G4double fAdjustmentFactor
G4double GetLogEnergy2fluct() const
G4double GetTaul() const
G4double GetLogMeanExcEnergy() const
int G4int
Definition: G4Types.hh:78
G4double GetZeffective() const
G4double GetBirksConstant() const
G4double GetFermiEnergy() const
G4double GetEnergy0fluct() const
G4double fRateionexcfluct
G4double GetInvA23() const
virtual ~G4IonisParamMat()
G4double GetAdjustmentFactor() const
G4double GetPlasmaEnergy() const
G4double fLogMeanExcEnergy
G4double fMeanEnergyPerIon
G4double fLogEnergy1fluct
static G4DensityEffectData * GetDensityEffectData()
G4double fMeanExcitationEnergy
G4double * fShellCorrectionVector
G4double GetLogEnergy1fluct() const
G4double GetX0density() const
G4double GetRateionexcfluct() const
G4double DensityCorrection(G4double x)
G4double GetCdensity() const
G4Material * fMaterial
G4IonisParamMat(G4Material *)
G4double * GetShellCorrectionVector() const
G4int operator!=(const G4IonisParamMat &) const
G4double GetMeanExcitationEnergy() const
G4double GetF2fluct() const
G4double GetLFactor() const
double G4double
Definition: G4Types.hh:76
G4double GetD0density() const
G4double GetMdensity() const
G4int operator==(const G4IonisParamMat &) const
G4double GetF1fluct() const
static G4DensityEffectData * fDensityData
void ComputeMeanParameters()
G4double GetEnergy1fluct() const
void SetMeanEnergyPerIonPair(G4double value)