G4hZiegler1977Nuclear.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:     G4hZiegler1977Nuclear
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, Helium Stopping Powers and
00045 // Ranges in All Elemental Matter, Vol.4, Pergamon Press, 1977
00046 //
00047 // Class Description: End 
00048 //
00049 // -------------------------------------------------------------------
00050 //
00051 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00052 
00053 #include "G4hZiegler1977Nuclear.hh"
00054 
00055 #include "globals.hh"
00056 #include "Randomize.hh"
00057 #include "G4SystemOfUnits.hh"
00058 #include "G4UnitsTable.hh"
00059 
00060 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00061 
00062 G4hZiegler1977Nuclear::G4hZiegler1977Nuclear():G4VhNuclearStoppingPower()
00063 {;}
00064 
00065 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00066 
00067 G4hZiegler1977Nuclear::~G4hZiegler1977Nuclear() 
00068 {;}
00069 
00070 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00071 
00072 G4double G4hZiegler1977Nuclear::NuclearStoppingPower(G4double kineticEnergy,
00073                                 G4double z1, G4double z2, 
00074                                 G4double m1, G4double m2Local) const
00075 {  
00076   G4double energy = kineticEnergy/keV ;  // energy in keV
00077   G4double ionloss ;
00078   
00079   G4double rm = (m1 + m2Local) * std::sqrt( std::pow(z1, 0.667) + std::pow(z2, 0.667) ) ;
00080   
00081   G4double er = 32.53 * m2Local * energy / ( z1 * z2 * rm ) ;  // reduced energy
00082   
00083   if ( er < 0.01 ) {
00084     ionloss = std::sqrt(er) * 1.593 ; 
00085     
00086   } else if ( er < 10.0 ) {
00087     ionloss = 1.7 * std::sqrt(er) * std::log(er + std::exp(1.0)) / 
00088       (1.0 + 6.8 * er + 3.4 * std::pow(er, 1.5)) ; 
00089     
00090   } else {
00091     ionloss = std::log(0.47 * er) * 0.5 / er  ;
00092   }
00093 
00094   // Stragling
00095   if(lossFlucFlag) {
00096     G4double sig = 4.0 * m1 * m2Local * std::sqrt( (std::pow(z1, 0.23) + std::pow(z2, 0.23)) / 
00097                                          (std::pow(z1, 0.667) + std::pow(z2, 0.667)) ) 
00098                  / ((m1 +m2Local)*(m1 + m2Local)*
00099                     (4.0 + 0.197*std::pow(er,-1.6991)+6.584*std::pow(er,-1.0494))) ;
00100 
00101     ionloss *= G4RandGauss::shoot(1.0,sig) ;
00102   }
00103   
00104   ionloss *= 8.462 * z1 * z2 * m1 / rm ; // Return to [ev/(10^15 atoms/cm^2]
00105 
00106   if ( ionloss < 0.0) ionloss = 0.0 ;
00107   
00108   return ionloss;
00109 }
00110 
00111 
00112 

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