G4ionEffectiveCharge.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 // $Id$
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 // GEANT4 Class file
00031 //
00032 //
00033 // File name:     G4ionEffectiveCharge
00034 //
00035 // Author:        Vladimir Ivanchenko
00036 //
00037 // Creation date: 07.05.2002
00038 //
00039 // Modifications:
00040 // 12.09.2004 Set low energy limit to 1 keV (V.Ivanchenko) 
00041 // 25.01.2005 Add protection - min Charge 0.1 eplus (V.Ivanchenko) 
00042 // 28.04.2006 Set upper energy limit to 50 MeV (V.Ivanchenko) 
00043 // 23.05.2006 Set upper energy limit to Z*10 MeV (V.Ivanchenko) 
00044 // 15.08.2006 Add protection for not defined material (V.Ivanchenko) 
00045 // 27-09-2007 Use Fermi energy from material, optimazed formulas (V.Ivanchenko)
00046 //
00047 
00048 // -------------------------------------------------------------------
00049 //
00050 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00051 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00052 
00053 #include "G4ionEffectiveCharge.hh"
00054 #include "G4PhysicalConstants.hh"
00055 #include "G4SystemOfUnits.hh"
00056 #include "G4UnitsTable.hh"
00057 #include "G4Material.hh"
00058 #include "G4NistManager.hh"
00059 
00060 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00061 
00062 G4ionEffectiveCharge::G4ionEffectiveCharge()
00063 {
00064   chargeCorrection = 1.0;
00065   energyHighLimit  = 20.0*MeV;
00066   energyLowLimit   = 1.0*keV;
00067   energyBohr       = 25.*keV;
00068   massFactor       = amu_c2/(proton_mass_c2*keV);
00069   minCharge        = 1.0;
00070   lastPart         = 0;
00071   lastMat          = 0;
00072   lastKinEnergy    = 0.0;
00073   effCharge        = eplus;
00074   nist = G4NistManager::Instance();
00075 }
00076 
00077 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00078 
00079 G4ionEffectiveCharge::~G4ionEffectiveCharge()
00080 {}
00081 
00082 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00083 
00084 G4double G4ionEffectiveCharge::EffectiveCharge(const G4ParticleDefinition* p,
00085                                                const G4Material* material,
00086                                                G4double kineticEnergy)
00087 {
00088   if(p == lastPart && material == lastMat && kineticEnergy == lastKinEnergy)
00089     return effCharge;
00090 
00091   lastPart      = p;
00092   lastMat       = material;
00093   lastKinEnergy = kineticEnergy;
00094 
00095   G4double mass   = p->GetPDGMass();
00096   G4double charge = p->GetPDGCharge();
00097   G4double Zi     = charge/eplus;
00098 
00099   chargeCorrection = 1.0;
00100   effCharge = charge;
00101 
00102   // The aproximation of ion effective charge from:
00103   // J.F.Ziegler, J.P. Biersack, U. Littmark
00104   // The Stopping and Range of Ions in Matter,
00105   // Vol.1, Pergamon Press, 1985
00106   // Fast ions or hadrons
00107   G4double reducedEnergy = kineticEnergy * proton_mass_c2/mass ;
00108 
00109   //G4cout << "e= " << reducedEnergy << " Zi= " << Zi << "  " << material->GetName() << G4endl;
00110 
00111   if( reducedEnergy > Zi*energyHighLimit || Zi < 1.5 || !material) return charge;
00112 
00113   G4double z    = material->GetIonisation()->GetZeffective();
00114   reducedEnergy = std::max(reducedEnergy,energyLowLimit);
00115 
00116   // Helium ion case
00117   if( Zi < 2.5 ) {
00118 
00119     static G4double c[6] = {0.2865,  0.1266, -0.001429,
00120                             0.02402,-0.01135, 0.001475} ;
00121 
00122     G4double Q = std::max(0.0,std::log(reducedEnergy*massFactor));
00123     G4double x = c[0];
00124     G4double y = 1.0;
00125     for (G4int i=1; i<6; i++) {
00126       y *= Q;
00127       x += y * c[i] ;
00128     }
00129     G4double ex;
00130     if(x < 0.2) ex = x * (1 - 0.5*x);
00131     else        ex = 1. - std::exp(-x);
00132 
00133     G4double tq = 7.6 - Q;
00134     G4double tq2= tq*tq;
00135     G4double tt = ( 0.007 + 0.00005 * z );
00136     if(tq2 < 0.2) tt *= (1.0 - tq2 + 0.5*tq2*tq2);
00137     else          tt *= std::exp(-tq2);
00138 
00139     effCharge = charge*(1.0 + tt) * std::sqrt(ex);
00140 
00141     // Heavy ion case
00142   } else {
00143     
00144     G4double y;
00145     //    = nist->GetZ13(z);
00146     //G4double z23  = y*y;
00147     G4double zi13 = nist->GetZ13(Zi);
00148     G4double zi23 = zi13*zi13;
00149     //    G4double e = std::max(reducedEnergy,energyBohr/z23);
00150     //G4double e = reducedEnergy;
00151 
00152     // v1 is ion velocity in vF unit
00153     G4double eF   = material->GetIonisation()->GetFermiEnergy();
00154     G4double v1sq = reducedEnergy/eF;
00155     G4double vFsq = eF/energyBohr;
00156     G4double vF   = std::sqrt(eF/energyBohr);
00157 
00158     // Faster than Fermi velocity
00159     if ( v1sq > 1.0 ) {
00160       y = vF * std::sqrt(v1sq) * ( 1.0 + 0.2/v1sq ) / zi23 ;
00161 
00162       // Slower than Fermi velocity
00163     } else {
00164       y = 0.692308 * vF * (1.0 + 0.666666*v1sq + v1sq*v1sq/15.0) / zi23 ;
00165     }
00166 
00167     G4double q;
00168     G4double y3 = std::pow(y, 0.3) ;
00169     // G4cout<<"y= "<<y<<" y3= "<<y3<<" v1= "<<v1<<" vF= "<<vF<<G4endl; 
00170     q = 1.0 - std::exp( 0.803*y3 - 1.3167*y3*y3 - 0.38157*y - 0.008983*y*y ) ;
00171     
00172     //y *= 0.77;
00173     //y *= (0.75 + 0.52/Zi);
00174 
00175     //if( y < 0.2 ) q = y*(1.0 - 0.5*y);
00176     //else          q = 1.0 - std::exp(-y);
00177 
00178     G4double qmin = minCharge/Zi;
00179     if(q < qmin) q = qmin;
00180   
00181     effCharge = q*charge;
00182 
00183     /*
00184     G4double x1 = 1.0*effCharge*(1.0 - 0.132*std::log(y))/(y*std::sqrt(z));
00185     G4double x2 = 0.1*effCharge*effCharge*energyBohr/reducedEnergy;
00186 
00187     chargeCorrection = 1.0 + x1 - x2;
00188 
00189     G4cout << "x1= "<<x1<<" x2= "<< x2<<" corr= "<<chargeCorrection<<G4endl;
00190     */
00191     
00192     G4double tq = 7.6 - std::log(reducedEnergy/keV);
00193     G4double tq2= tq*tq;
00194     G4double sq = ( 0.18 + 0.0015 * z ) / (Zi*Zi);
00195     if(tq2 < 0.2) sq *= (1.0 - tq2 + 0.5*tq2*tq2);
00196     else          sq *= std::exp(-tq2);
00197     sq += 1.0;
00198     //    G4cout << "sq= " << sq << G4endl;
00199 
00200     // Screen length according to
00201     // J.F.Ziegler and J.M.Manoyan, The stopping of ions in compaunds,
00202     // Nucl. Inst. & Meth. in Phys. Res. B35 (1988) 215-228.
00203 
00204     G4double lambda = 10.0 * vF / (zi13 * (6.0 + q));
00205     if(q < 0.2) lambda *= (1.0 - 0.66666667*q - q*q/9.0);
00206     else        lambda *= std::pow(1.0-q, 0.666666);
00207 
00208     G4double lambda2 = lambda*lambda;
00209 
00210     G4double xx = (0.5/q - 0.5)/vFsq;
00211     if(lambda2 < 0.2) xx *= lambda2*(1.0 - 0.5*lambda2);
00212     else              xx *= std::log(1.0 + lambda2); 
00213 
00214     chargeCorrection = sq * (1.0 + xx);
00215     
00216   }
00217   //  G4cout << "G4ionEffectiveCharge: charge= " << charge << " q= " << q 
00218   //         << " chargeCor= " << chargeCorrection 
00219   //       << " e(MeV)= " << kineticEnergy/MeV << G4endl;
00220   return effCharge;
00221 }
00222 
00223 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00224 
00225 

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