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 header file 00031 // 00032 // 00033 // File name: G4ionEffectiveCharge 00034 // 00035 // Author: Vladimir Ivanchenko 00036 // 00037 // Creation date: 03.07.2004 00038 // 00039 // Modifications: 00040 // 00041 // 00042 // Class Description: 00043 // 00044 // This class manages the simulation of effective charge of ions 00045 // in the assumption of equilibrium between ion shelss and media. 00046 // J.F.Ziegler and J.M.Manoyan, The stopping of ions in compaunds, 00047 // Nucl. Inst. & Meth. in Phys. Res. B35 (1988) 215-228. 00048 // 00049 00050 // ------------------------------------------------------------------- 00051 // 00052 00053 #ifndef G4ionEffectiveCharge_h 00054 #define G4ionEffectiveCharge_h 1 00055 00056 #include "globals.hh" 00057 #include "G4ParticleDefinition.hh" 00058 00059 class G4Material; 00060 class G4NistManager; 00061 00062 class G4ionEffectiveCharge 00063 { 00064 00065 public: 00066 00067 G4ionEffectiveCharge(); 00068 00069 virtual ~G4ionEffectiveCharge(); 00070 00071 G4double EffectiveChargeSquareRatio( 00072 const G4ParticleDefinition* p, 00073 const G4Material* material, 00074 G4double kineticEnergy); 00075 00076 G4double EffectiveCharge(const G4ParticleDefinition* p, 00077 const G4Material* material, 00078 G4double kineticEnergy); 00079 00080 private: 00081 00082 // hide assignment operator 00083 G4ionEffectiveCharge & operator=(const G4ionEffectiveCharge &right); 00084 G4ionEffectiveCharge(const G4ionEffectiveCharge&); 00085 00086 G4NistManager* nist; 00087 00088 const G4ParticleDefinition* lastPart; 00089 const G4Material* lastMat; 00090 G4double lastKinEnergy; 00091 00092 G4double chargeCorrection; 00093 G4double effCharge; 00094 00095 G4double energyHighLimit; 00096 G4double energyLowLimit; 00097 G4double energyBohr; 00098 G4double massFactor; 00099 G4double minCharge; 00100 }; 00101 00102 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00103 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00104 00105 inline G4double G4ionEffectiveCharge::EffectiveChargeSquareRatio( 00106 const G4ParticleDefinition* p, 00107 const G4Material* material, 00108 G4double kineticEnergy) 00109 { 00110 G4double charge = effCharge; 00111 if( kineticEnergy != lastKinEnergy || material != lastMat || p != lastPart) { 00112 charge = EffectiveCharge(p,material,kineticEnergy); 00113 } 00114 charge *= chargeCorrection/CLHEP::eplus; 00115 00116 return charge*charge; 00117 } 00118 00119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00120 00121 #endif