Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4IonisParamMat.hh
이 파일의 문서화 페이지로 가기
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 106243 2017-09-26 01:56:43Z 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 #include "G4Log.hh"
51 #include "G4Exp.hh"
52 #include "G4Threading.hh"
53 
54 class G4Material; // forward declaration
56 
57 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
58 
59 class G4IonisParamMat // with description
60 {
61 public:
62 
63  G4IonisParamMat(const G4Material*);
65 
66  // parameters for mean energy loss calculation:
67  inline
69 
72 
73  inline
75  inline
77  inline
78  G4double GetTaul() const {return fTaul;};
79 
80  // parameters of the density correction:
81  inline
83  inline
85  inline
86  G4double GetCdensity() const {return fCdensity;};
87  inline
88  G4double GetMdensity() const {return fMdensity;};
89  inline
90  G4double GetAdensity() const {return fAdensity;};
91  inline
92  G4double GetX0density() const {return fX0density;};
93  inline
94  G4double GetX1density() const {return fX1density;};
95  inline
96  G4double GetD0density() const {return fD0density;};
97 
98  // user defined density correction parameterisation
100  G4double x0, G4double x1, G4double d0);
101 
102  // defined density correction parameterisation via base material
103  void SetDensityEffectParameters(const G4Material* bmat);
104 
105  // compute density correction as a function of the kinematic variable
106  // x = log10(beta*gamma)
108 
110 
111  // parameters of the energy loss fluctuation model:
112  inline
113  G4double GetF1fluct() const {return fF1fluct;};
114  inline
115  G4double GetF2fluct() const {return fF2fluct;};
116  inline
118  inline
120  inline
122  inline
124  inline
126  inline
128 
129  // parameters for ion corrections computations
130  inline
131  G4double GetZeffective() const {return fZeff;};
132  inline
134  inline
135  G4double GetLFactor() const {return fLfactor;};
136  inline
137  G4double GetInvA23() const {return fInvA23;};
138 
139  // parameters for Birks attenuation:
140  inline
142  inline
143  G4double GetBirksConstant() const {return fBirks;};
144 
145  // parameters for average energy per ion
146  inline
148  inline
150 
151  G4IonisParamMat(__void__&);
152  // Fake default constructor for usage restricted to direct object
153  // persistency for clients requiring preallocation of memory for
154  // persistifiable objects.
155 
156 private:
157 
158  // Compute mean parameters : ExcitationEnergy,Shell corretion vector ...
159  void ComputeMeanParameters();
160 
161  // Compute parameters for the density effect
162  void ComputeDensityEffect();
163 
164  // Compute parameters for the energy fluctuation model
165  void ComputeFluctModel();
166 
167  // Compute parameters for ion parameterizations
168  void ComputeIonParameters();
169 
170  // operators
171  G4IonisParamMat& operator=(const G4IonisParamMat&) = delete;
172  G4int operator==(const G4IonisParamMat&) const = delete;
173  G4int operator!=(const G4IonisParamMat&) const = delete;
174  G4IonisParamMat(const G4IonisParamMat&) = delete;
175 
176  //
177  // data members
178  //
179  const G4Material* fMaterial; // this material
180 
181  // parameters for mean energy loss calculation
184  G4double* fShellCorrectionVector; // shell correction coefficients
185  G4double fTaul; // lower limit of Bethe-Bloch formula
186 
187  // parameters of the density correction
188  G4double fCdensity; // mat.constant
189  G4double fMdensity; // exponent
194 
197 
198  // parameters of the energy loss fluctuation model
207 
208  // parameters for ion corrections computations
213 
214  // parameter for Birks attenuation
216  // average energy per ion pair
218 
219  // static data created only once
222 #ifdef G4MULTITHREADED
223  static G4Mutex ionisMutex;
224 #endif
225 };
226 
227 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
228 
230 {
231  // x = log10(beta*gamma)
232  G4double y = 0.0;
233  if(x < fX0density) {
234  if(fD0density > 0.0) { y = fD0density*G4Exp(twoln10*(x - fX0density)); }
235  } else if(x >= fX1density) { y = twoln10*x - fCdensity; }
236  else {y = twoln10*x - fCdensity + fAdensity*G4Exp(G4Log(fX1density - x)*fMdensity);}
237  return y;
238 }
239 
240 #endif
Float_t x
Definition: compare.C:6
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition: G4Exp.hh:183
G4IonisParamMat & operator=(const G4IonisParamMat &)=delete
G4double FindMeanExcitationEnergy(const G4Material *) const
G4double GetLogEnergy1fluct() const
void SetDensityEffectParameters(G4double cd, G4double md, G4double ad, G4double x0, G4double x1, G4double d0)
G4double GetEnergy1fluct() const
static G4DensityEffectData * fDensityData
G4double GetF1fluct() const
Float_t x1[n_points_granero]
Definition: compare.C:5
Float_t y
Definition: compare.C:6
G4double GetLogMeanExcEnergy() const
G4double DensityCorrection(G4double x)
void SetMeanExcitationEnergy(G4double value)
G4double GetX1density() const
G4double fLogMeanExcEnergy
void SetBirksConstant(G4double value)
G4double * GetShellCorrectionVector() const
G4double fMeanExcitationEnergy
G4double G4Log(G4double x)
Definition: G4Log.hh:230
G4double fLogEnergy1fluct
G4double GetEnergy0fluct() const
void SetMeanEnergyPerIonPair(G4double value)
G4double fRateionexcfluct
double G4double
Definition: G4Types.hh:76
G4double GetFermiEnergy() const
const XML_Char int const XML_Char * value
Definition: expat.h:331
G4int operator!=(const G4IonisParamMat &) const =delete
G4double GetTaul() const
G4double GetEnergy2fluct() const
static const G4double cd
G4double GetAdensity() const
G4double GetMeanEnergyPerIonPair() const
G4double GetBirksConstant() const
G4double * fShellCorrectionVector
G4double GetMeanExcitationEnergy() const
G4double GetX0density() const
G4IonisParamMat(const G4Material *)
void ComputeMeanParameters()
G4double GetAdjustmentFactor() const
G4double GetInvA23() const
G4double GetCdensity() const
int G4int
Definition: G4Types.hh:78
G4double GetMdensity() const
G4double GetZeffective() const
G4double GetLogEnergy2fluct() const
G4double fLogEnergy2fluct
G4int operator==(const G4IonisParamMat &) const =delete
G4double fAdjustmentFactor
const G4Material * fMaterial
G4double fMeanEnergyPerIon
static G4DensityEffectData * GetDensityEffectData()
G4double GetF2fluct() const
G4double GetPlasmaEnergy() const
G4double GetLFactor() const
G4double GetRateionexcfluct() const
G4double GetD0density() const
std::mutex G4Mutex
Definition: G4Threading.hh:84