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: G4hZiegler1985Nuclear 00033 // 00034 // Author: V.Ivanchenko (Vladimir.Ivanchenko@cern.ch) 00035 // 00036 // Creation date: 20 July 2000 00037 // 00038 // Modifications: 00039 // 20/07/2000 V.Ivanchenko First implementation 00040 // 00041 // Class Description: 00042 // 00043 // Nuclear stopping power parametrised according to 00044 // J.F.Ziegler, J.P. Biersack, U. Littmark 00045 // The Stopping and Range of Ions in Matter, 00046 // Vol.1, Pergamon Press, 1985 00047 // 00048 // Class Description: End 00049 // 00050 // ------------------------------------------------------------------- 00051 // 00052 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00053 00054 #include "G4hZiegler1985Nuclear.hh" 00055 00056 #include "globals.hh" 00057 #include "Randomize.hh" 00058 #include "G4SystemOfUnits.hh" 00059 #include "G4UnitsTable.hh" 00060 00061 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00062 00063 G4hZiegler1985Nuclear::G4hZiegler1985Nuclear():G4VhNuclearStoppingPower() 00064 {;} 00065 00066 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00067 00068 G4hZiegler1985Nuclear::~G4hZiegler1985Nuclear() 00069 {;} 00070 00071 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00072 00073 G4double G4hZiegler1985Nuclear::NuclearStoppingPower(G4double kineticEnergy, 00074 G4double z1, G4double z2, 00075 G4double m1, G4double m2Local) const 00076 { 00077 G4double energy = kineticEnergy/keV ; // energy in keV 00078 G4double ionloss ; 00079 00080 G4double rm = (m1 + m2Local) * ( std::pow(z1, .23) + std::pow(z2, .23)) ; 00081 00082 G4double er = 32.536 * m2Local * energy / ( z1 * z2 * rm ) ; // reduced energy 00083 00084 if ( er <= 30 ) { 00085 ionloss = 0.5*std::log(1+1.1383*er)/ 00086 (er+0.01312*std::pow(er,0.21226)+0.19593*std::sqrt(er)) ; 00087 00088 } else { 00089 ionloss = 0.5*std::log(er)/er ; 00090 } 00091 00092 // Stragling 00093 if(lossFlucFlag) { 00094 G4double sig = 4.0 * m1 * m2Local / ((m1 + m2Local)*(m1 + m2Local)* 00095 (4.0 + 0.197*std::pow(er,-1.6991)+6.584*std::pow(er,-1.0494))) ; 00096 00097 00098 ionloss *= G4RandGauss::shoot(1.0,sig) ; 00099 } 00100 00101 ionloss *= 8.462 * z1 * z2 * m1 / rm ; // Return to [ev/(10^15 atoms/cm^2] 00102 00103 if ( ionloss < 0.0) ionloss = 0.0 ; 00104 00105 return ionloss; 00106 } 00107 00108 00109 00110 00111