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

Last change on this file since 1315 was 1315, checked in by garnier, 14 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 7.9 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.18 2010/05/10 10:44:39 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
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  G4double  GetInvA23()                 const {return fInvA23;};
107   
108  // parameters for Birks attenuation:
109  void      SetBirksConstant(G4double value) {fBirks = value;}; 
110  G4double  GetBirksConstant()         const {return fBirks;};
111
112  // parameters for average energy per ion
113  void      SetMeanEnergyPerIonPair(G4double value) {fMeanEnergyPerIon = value;}; 
114  G4double  GetMeanEnergyPerIonPair()         const {return fMeanEnergyPerIon;};
115     
116public:  // without description
117
118  G4IonisParamMat(const G4IonisParamMat&);
119  const G4IonisParamMat& operator=(const G4IonisParamMat&);         
120  G4int operator==(const G4IonisParamMat&) const;
121  G4int operator!=(const G4IonisParamMat&) const;
122
123  G4IonisParamMat(__void__&);
124  // Fake default constructor for usage restricted to direct object
125  // persistency for clients requiring preallocation of memory for
126  // persistifiable objects.
127
128private:
129   
130  // Compute mean parameters : ExcitationEnergy,Shell corretion vector ...
131  void ComputeMeanParameters();
132
133  // Compute parameters for the density effect
134  void ComputeDensityEffect();
135
136  // Compute parameters for the energy fluctuation model
137  void ComputeFluctModel();
138
139  // Compute parameters for ion parameterizations
140  void ComputeIonParameters();
141
142private:
143
144//
145// data members
146//
147  G4Material* fMaterial;                    // this material
148
149  // parameters for mean energy loss calculation
150  G4double  fMeanExcitationEnergy;          //
151  G4double  fLogMeanExcEnergy;              //
152  G4double* fShellCorrectionVector;         // shell correction coefficients
153  G4double  fTaul;                          // lower limit of Bethe-Bloch formula
154
155  // parameters of the density correction
156  G4double fCdensity;                      // mat.constant
157  G4double fMdensity;                      // exponent
158  G4double fAdensity;                      //
159  G4double fX0density;                     //
160  G4double fX1density;                     //
161  G4double fD0density;
162
163  G4double fPlasmaEnergy;
164  G4double fAdjustmentFactor;
165
166  // parameters of the energy loss fluctuation model
167  G4double fF1fluct;                       
168  G4double fF2fluct;                       
169  G4double fEnergy1fluct;
170  G4double fLogEnergy1fluct;
171  G4double fEnergy2fluct;
172  G4double fLogEnergy2fluct;
173  G4double fEnergy0fluct;
174  G4double fRateionexcfluct;
175
176  // parameters for ion corrections computations
177  G4double fZeff;
178  G4double fFermiEnergy;
179  G4double fLfactor;
180  G4double fInvA23;
181   
182  // parameter for Birks attenuation
183  G4double fBirks;
184  // average energy per ion pair
185  G4double fMeanEnergyPerIon;
186
187  // static data created only once
188  static G4DensityEffectData* fDensityData;
189};
190
191  // x = log10(beta*gamma) 
192inline G4double G4IonisParamMat::DensityCorrection(G4double x)
193{
194  static const G4double twoln10 = 2.*std::log(10.);
195  G4double y = 0.0;
196  if(x < fX0density) {
197    if(fD0density > 0.0) { y = fD0density*std::pow(10.,2*(x - fX0density)); }
198  } else if(x >= fX1density) { y = twoln10*x - fCdensity; }
199  else {y = twoln10*x - fCdensity + fAdensity*std::pow(fX1density - x, fMdensity);}
200  return y;
201}
202
203#endif
Note: See TracBrowser for help on using the repository browser.