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 //------------------ G4PhotoElectricEffect physics process --------------------- 00030 // by Michel Maire, 24 May 1996 00031 // 00032 // 12-06-96, Added SelectRandomAtom() method, by M.Maire 00033 // 21-06-96, SetCuts implementation, M.Maire 00034 // 17-09-96, PartialSumSigma(i) 00035 // split of ComputeBindingEnergy, M.Maire 00036 // 08-01-97, crossection table + meanfreepath table, M.Maire 00037 // 13-03-97, adapted for the new physics scheme, M.Maire 00038 // 28-03-97, protection in BuildPhysicsTable, M.Maire 00039 // 04-06-98, in DoIt, secondary production condition: 00040 // range > std::min(threshold,safety) 00041 // 13-08-98, new methods SetBining() PrintInfo() 00042 // 17-11-98, use table of Atomic shells in PostStepDoIt 00043 // 06-01-99, use Sandia crossSection below 50 keV, V.Grichine mma 00044 // 20-05-99, protection against very low energy photons ,L.Urban 00045 // 08-06-99, removed this above protection from the DoIt. mma 00046 // 21-06-00, in DoIt, killing photon: aParticleChange.SetEnergyChange(0.); mma 00047 // 22-06-00, in DoIt, absorbe very low energy photon (back to 20-05-99); mma 00048 // 22-02-01, back to 08-06-99 after correc in SandiaTable (materials-V03-00-05) 00049 // 28-05-01, V.Ivanchenko minor changes to provide ANSI -wall compilation 00050 // 13-07-01, DoIt: suppression of production cut of the electron (mma) 00051 // 06-08-01, new methods Store/Retrieve PhysicsTable (mma) 00052 // 06-08-01, BuildThePhysicsTable() called from constructor (mma) 00053 // 17-09-01, migration of Materials to pure STL (mma) 00054 // 20-09-01, DoIt: fminimalEnergy of generated electron = 1*eV (mma) 00055 // 01-10-01, come back to BuildPhysicsTable(const G4ParticleDefinition&) 00056 // 10-01-02, moved few function from icc to cc 00057 // 17-04-02, Keep only Sandia crossSections. Remove BuildPhysicsTables. 00058 // Simplify public interface (mma) 00059 // 29-04-02, Generate theta angle of the photoelectron from Sauter-Gavrila 00060 // distribution (mma) 00061 // 15-01-03, photoelectron theta ditribution : return costeta=1 if gamma>5 00062 // (helmut burkhardt) 00063 // 21-04-05 Migrate to model interface and inherit 00064 // from G4VEmProcess (V.Ivanchenko) 00065 // 04-05-05, Make class to be default (V.Ivanchenko) 00066 // 09-08-06, add SetModel(G4VEmModel*) (mma) 00067 // 12-09-06, move SetModel(G4VEmModel*) in G4VEmProcess (mma) 00068 // ----------------------------------------------------------------------------- 00069 00070 #include "G4PhotoElectricEffect.hh" 00071 #include "G4SystemOfUnits.hh" 00072 #include "G4PEEffectFluoModel.hh" 00073 #include "G4Electron.hh" 00074 00075 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00076 00077 using namespace std; 00078 00079 G4PhotoElectricEffect::G4PhotoElectricEffect(const G4String& processName, 00080 G4ProcessType type):G4VEmProcess (processName, type), 00081 isInitialised(false) 00082 { 00083 SetBuildTableFlag(false); 00084 SetSecondaryParticle(G4Electron::Electron()); 00085 SetProcessSubType(fPhotoElectricEffect); 00086 SetMinKinEnergyPrim(200*keV); 00087 } 00088 00089 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00090 00091 G4PhotoElectricEffect::~G4PhotoElectricEffect() 00092 {} 00093 00094 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00095 00096 G4bool G4PhotoElectricEffect::IsApplicable(const G4ParticleDefinition& p) 00097 { 00098 return (&p == G4Gamma::Gamma()); 00099 } 00100 00101 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00102 00103 void G4PhotoElectricEffect::InitialiseProcess(const G4ParticleDefinition*) 00104 { 00105 if(!isInitialised) { 00106 isInitialised = true; 00107 if(!EmModel(1)) { SetEmModel(new G4PEEffectFluoModel(),1); } 00108 EmModel(1)->SetLowEnergyLimit(MinKinEnergy()); 00109 EmModel(1)->SetHighEnergyLimit(MaxKinEnergy()); 00110 AddEmModel(1, EmModel(1)); 00111 } 00112 } 00113 00114 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00115 00116 void G4PhotoElectricEffect::PrintInfo() 00117 {} 00118 00119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......