G4IonChuFluctuationModel.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // -------------------------------------------------------------------
00028 //
00029 // GEANT4 Class file
00030 //
00031 //
00032 // File name:     G4IonChuFluctuationModel
00033 //
00034 // Author:        V.Ivanchenko (Vladimir.Ivanchenko@cern.ch)
00035 // 
00036 // Creation date: 18 August 2000
00037 //
00038 // Modifications: 
00039 // 18/08/2000  V.Ivanchenko First implementation
00040 // 04/09/2000  V.Ivanchenko Rename fluctuations            
00041 // 03/10/2000  V.Ivanchenko CodeWizard clean up
00042 // 10/05/2001  V.Ivanchenko Clean up againist Linux compilation with -Wall
00043 //
00044 // -------------------------------------------------------------------
00045 //
00046 // Class Description: 
00047 //
00048 // The aproximation of additional ion energy loss fluctuations 
00049 // W.K.Chu, In: Ion Beam Handbook for Material Analysis.
00050 // eds. J.W. Mayer and E. Rimini (Academic Press, New York, 1977).
00051 // Q.Yang et al., NIM B61(1991)149-155.
00052 //
00053 // Class Description: End 
00054 //
00055 // -------------------------------------------------------------------
00056 //
00057 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00058 
00059 #include "G4IonChuFluctuationModel.hh"
00060 
00061 #include "globals.hh"
00062 #include "G4PhysicalConstants.hh"
00063 #include "G4SystemOfUnits.hh"
00064 #include "G4DynamicParticle.hh"
00065 #include "G4ParticleDefinition.hh"
00066 #include "G4Material.hh"
00067 
00068 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00069 
00070 G4IonChuFluctuationModel::G4IonChuFluctuationModel(const G4String& name)
00071   : G4VLowEnergyModel(name) 
00072 {;}
00073 
00074 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00075 
00076 G4IonChuFluctuationModel::~G4IonChuFluctuationModel() 
00077 {;}
00078 
00079 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00080 
00081 G4double G4IonChuFluctuationModel::TheValue(const G4DynamicParticle* particle,
00082                                             const G4Material* material) 
00083 {
00084   G4double energy = particle->GetKineticEnergy() ;
00085   G4double particleMass = particle->GetMass() ;
00086 
00087   G4double q = ChuFluctuationModel(material,energy,particleMass) ;
00088 
00089   return q ;
00090 }
00091 
00092 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00093 
00094 G4double G4IonChuFluctuationModel::TheValue(
00095                                    const G4ParticleDefinition* aParticle,
00096                                    const G4Material* material,
00097                                          G4double kineticEnergy) 
00098 {
00099   G4double particleMass = aParticle->GetPDGMass() ;
00100 
00101   G4double q = ChuFluctuationModel(material,kineticEnergy,particleMass);
00102 
00103   return q ;
00104 }
00105 
00106 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00107 
00108 G4double G4IonChuFluctuationModel::HighEnergyLimit(const G4ParticleDefinition*,
00109                                                    const G4Material* ) const
00110 {
00111   return 1.0*TeV ;
00112 }
00113 
00114 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00115 
00116 G4double G4IonChuFluctuationModel::LowEnergyLimit(const G4ParticleDefinition*,
00117                                                   const G4Material*) const
00118 {
00119   return 0.0 ;
00120 }
00121 
00122 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00123 
00124 G4double G4IonChuFluctuationModel::HighEnergyLimit(const G4ParticleDefinition*) const
00125 {
00126   return 1.0*TeV ;
00127 }
00128 
00129 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00130 
00131 G4double G4IonChuFluctuationModel::LowEnergyLimit(const G4ParticleDefinition*) const
00132 {
00133   return 0.0 ;
00134 }
00135 
00136 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00137  
00138 G4bool G4IonChuFluctuationModel::IsInCharge(const G4DynamicParticle*,
00139                                             const G4Material*) const
00140 {
00141   return true ;
00142 }
00143 
00144 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00145  
00146 G4bool G4IonChuFluctuationModel::IsInCharge(const G4ParticleDefinition*,
00147                                             const G4Material*) const
00148 {
00149   return true ;
00150 }
00151 
00152 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00153 
00154 G4double G4IonChuFluctuationModel::ChuFluctuationModel(const G4Material* material,
00155                                                        G4double kineticEnergy,
00156                                                        G4double particleMass) const
00157 {
00158   // The aproximation of energy loss fluctuations 
00159   // Q.Yang et al., NIM B61(1991)149-155.
00160 
00161   // Reduced energy in MeV/AMU
00162   G4double energy = kineticEnergy * amu_c2/(particleMass*MeV) ;
00163 
00164   G4double zeff = (material->GetElectronDensity())/
00165                   (material->GetTotNbOfAtomsPerVolume()) ;
00166 
00167   static G4double a[96][4] = {
00168  {-0.3291, -0.8312,  0.2460, -1.0220},
00169  {-0.5615, -0.5898,  0.5205, -0.7258},
00170  {-0.5280, -0.4981,  0.5519, -0.5865},
00171  {-0.5125, -0.4625,  0.5660, -0.5190},
00172  {-0.5127, -0.8595,  0.5626, -0.8721},
00173  {-0.5174, -1.1930,  0.5565, -1.1980},
00174  {-0.5179, -1.1850,  0.5560, -1.2070},
00175  {-0.5209, -0.9355,  0.5590, -1.0250},
00176  {-0.5255, -0.7766,  0.5720, -0.9412},
00177 
00178  {-0.5776, -0.6665,  0.6598, -0.8484},
00179  {-0.6013, -0.6045,  0.7321, -0.7671},
00180  {-0.5781, -0.5518,  0.7605, -0.6919},
00181  {-0.5587, -0.4981,  0.7835, -0.6195},
00182  {-0.5466, -0.4656,  0.7978, -0.5771},
00183  {-0.5406, -0.4690,  0.8031, -0.5718},
00184  {-0.5391, -0.5061,  0.8024, -0.5974},
00185  {-0.5380, -0.6483,  0.7962, -0.6970},
00186  {-0.5355, -0.7722,  0.7962, -0.7839},
00187  {-0.5329, -0.7720,  0.7988, -0.7846},
00188 
00189  {-0.5335, -0.7671,  0.7984, -0.7933},
00190  {-0.5324, -0.7612,  0.7998, -0.8031},
00191  {-0.5305, -0.7300,  0.8031, -0.7990},
00192  {-0.5307, -0.7178,  0.8049, -0.8216},
00193  {-0.5248, -0.6621,  0.8165, -0.7919},
00194  {-0.5180, -0.6502,  0.8266, -0.7986},
00195  {-0.5084, -0.6408,  0.8396, -0.8048},
00196  {-0.4967, -0.6331,  0.8549, -0.8093},
00197  {-0.4861, -0.6508,  0.8712, -0.8432},
00198  {-0.4700, -0.6186,  0.8961, -0.8132},
00199 
00200  {-0.4545, -0.5720,  0.9227, -0.7710},
00201  {-0.4404, -0.5226,  0.9481, -0.7254},
00202  {-0.4288, -0.4778,  0.9701, -0.6850},
00203  {-0.4199, -0.4425,  0.9874, -0.6539},
00204  {-0.4131, -0.4188,  0.9998, -0.6332},
00205  {-0.4089, -0.4057,  1.0070, -0.6218},
00206  {-0.4039, -0.3913,  1.0150, -0.6107},
00207  {-0.3987, -0.3698,  1.0240, -0.5938},
00208  {-0.3977, -0.3608,  1.0260, -0.5852},
00209  {-0.3972, -0.3600,  1.0260, -0.5842},
00210 
00211  {-0.3985, -0.3803,  1.0200, -0.6013},
00212  {-0.3985, -0.3979,  1.0150, -0.6168},
00213  {-0.3968, -0.3990,  1.0160, -0.6195},
00214  {-0.3971, -0.4432,  1.0050, -0.6591},
00215  {-0.3944, -0.4665,  1.0010, -0.6825},
00216  {-0.3924, -0.5109,  0.9921, -0.7235},
00217  {-0.3882, -0.5158,  0.9947, -0.7343},
00218  {-0.3838, -0.5125,  0.9999, -0.7370},
00219  {-0.3786, -0.4976,  1.0090, -0.7310},
00220  {-0.3741, -0.4738,  1.0200, -0.7155},
00221 
00222  {-0.3969, -0.4496,  1.0320, -0.6982},
00223  {-0.3663, -0.4297,  1.0430, -0.6828},
00224  {-0.3630, -0.4120,  1.0530, -0.6689},
00225  {-0.3597, -0.3964,  1.0620, -0.6564},
00226  {-0.3555, -0.3809,  1.0720, -0.6454},
00227  {-0.3525, -0.3607,  1.0820, -0.6289},
00228  {-0.3505, -0.3465,  1.0900, -0.6171},
00229  {-0.3397, -0.3570,  1.1020, -0.6384},
00230  {-0.3314, -0.3552,  1.1130, -0.6441},
00231  {-0.3235, -0.3531,  1.1230, -0.6498},
00232 
00233  {-0.3150, -0.3483,  1.1360, -0.6539},
00234  {-0.3060, -0.3441,  1.1490, -0.6593},
00235  {-0.2968, -0.3396,  1.1630, -0.6649},
00236  {-0.2935, -0.3225,  1.1760, -0.6527},
00237  {-0.2797, -0.3262,  1.1940, -0.6722},
00238  {-0.2704, -0.3202,  1.2100, -0.6770},
00239  {-0.2815, -0.3227,  1.2480, -0.6775},
00240  {-0.2880, -0.3245,  1.2810, -0.6801},
00241  {-0.3034, -0.3263,  1.3270, -0.6778},
00242  {-0.2936, -0.3215,  1.3430, -0.6835},
00243 
00244  {-0.3282, -0.3200,  1.3980, -0.6650},
00245  {-0.3260, -0.3070,  1.4090, -0.6552},
00246  {-0.3511, -0.3074,  1.4470, -0.6442},
00247  {-0.3501, -0.3064,  1.4500, -0.6442},
00248  {-0.3490, -0.3027,  1.4550, -0.6418},
00249  {-0.3487, -0.3048,  1.4570, -0.6447},
00250  {-0.3478, -0.3074,  1.4600, -0.6483},
00251  {-0.3501, -0.3283,  1.4540, -0.6669},
00252  {-0.3494, -0.3373,  1.4550, -0.6765},
00253  {-0.3485, -0.3373,  1.4570, -0.6774},
00254 
00255  {-0.3462, -0.3300,  1.4630, -0.6728},
00256  {-0.3462, -0.3225,  1.4690, -0.6662},
00257  {-0.3453, -0.3094,  1.4790, -0.6553},
00258  {-0.3844, -0.3134,  1.5240, -0.6412},
00259  {-0.3848, -0.3018,  1.5310, -0.6303},
00260  {-0.3862, -0.2955,  1.5360, -0.6237},
00261  {-0.4262, -0.2991,  1.5860, -0.6115},
00262  {-0.4278, -0.2910,  1.5900, -0.6029},
00263  {-0.4303, -0.2817,  1.5940, -0.5927},
00264  {-0.4315, -0.2719,  1.6010, -0.5829},
00265 
00266  {-0.4359, -0.2914,  1.6050, -0.6010},
00267  {-0.4365, -0.2982,  1.6080, -0.6080},
00268  {-0.4253, -0.3037,  1.6120, -0.6150},
00269  {-0.4335, -0.3245,  1.6160, -0.6377},
00270  {-0.4307, -0.3292,  1.6210, -0.6447},
00271  {-0.4284, -0.3204,  1.6290, -0.6380},
00272  {-0.4227, -0.3217,  1.6360, -0.6438}
00273   } ;
00274 
00275   G4int iz = (G4int)zeff - 2 ;
00276   if( 0 > iz ) iz = 0 ;
00277   if(95 < iz ) iz = 95 ;
00278 
00279   G4double q = 1.0 / (1.0 + a[iz][0]*std::pow(energy,a[iz][1])+
00280                           + a[iz][2]*std::pow(energy,a[iz][3])) ; 
00281 
00282   return q ;    
00283 }
00284 
00285 

Generated on Mon May 27 17:48:39 2013 for Geant4 by  doxygen 1.4.7