// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4PhotoElectricEffect.icc,v 1.10 2002/04/18 10:12:01 maire Exp $ // GEANT4 tag $Name: geant4-06-00 $ // //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... // 12-06-96, update by M.Maire // 17-09-96, PartialSumSigma(i) // split ComputeBinbingEnergy(), M.Maire // 08-01-97, crossection table + meanfreepath table , M.Maire // 13-03-97, adapted for the new physics scheme, M.Maire // 20-11-97, change for lowest energy limit default action // 17-11-98, use table of atomic shells in PostStepDoIt, mma // 06-01-99, use Sandia crossSection, V.Grichine mma // 28-05-01, V.Ivanchenko minor changes to provide ANSI -wall compilation // 17-09-01, migration of Materials to pure STL (mma) // 10-01-02, moved few function from icc to cc // 17-04-02, Keep only Sandia crossSections. Remove BuildPhysicsTables. // Simplify public interface (mma) //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline G4bool G4PhotoElectricEffect::IsApplicable(const G4ParticleDefinition& particle) { return ( &particle == G4Gamma::Gamma() ); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline G4double G4PhotoElectricEffect::GetMeanFreePath(const G4Track& aTrack, G4double, G4ForceCondition*) // returns the gamma mean free path in GEANT4 internal units { G4double GammaEnergy = aTrack.GetDynamicParticle()->GetKineticEnergy(); G4double* SandiaCof = aTrack.GetMaterial()->GetSandiaTable() ->GetSandiaCofForMaterial(GammaEnergy); G4double energy2 = GammaEnergy*GammaEnergy, energy3 = GammaEnergy*energy2, energy4 = energy2*energy2; G4double SIGMA = SandiaCof[0]/GammaEnergy + SandiaCof[1]/energy2 + SandiaCof[2]/energy3 + SandiaCof[3]/energy4; MeanFreePath = SIGMA > DBL_MIN ? 1./SIGMA : DBL_MAX; return MeanFreePath; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......