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 //------------ G4ComptonScattering physics process ----------------------------- 00030 // by Michel Maire, April 1996 00031 // 00032 // 28-05-96, DoIt() small change in ElecDirection, by M.Maire 00033 // 10-06-96, simplification in ComputeMicroscopicCrossSection(), by M.Maire 00034 // 21-06-96, SetCuts implementation, M.Maire 00035 // 13-09-96, small changes in DoIt for better efficiency. Thanks to P.Urban 00036 // 06-01-97, crossection table + meanfreepath table, M.Maire 00037 // 05-03-97, new Physics scheme, M.Maire 00038 // 28-03-97, protection in BuildPhysicsTable, M.Maire 00039 // 07-04-98, remove 'tracking cut' of the scattered gamma, MMa 00040 // 04-06-98, in DoIt, secondary production condition: 00041 // range>std::min(threshold,safety) 00042 // 13-08-98, new methods SetBining() PrintInfo() 00043 // 15-12-98, cross section=0 below 10 keV 00044 // 28-05-01, V.Ivanchenko minor changes to provide ANSI -wall compilation 00045 // 13-07-01, DoIt: suppression of production cut for the electron (mma) 00046 // 03-08-01, new methods Store/Retrieve PhysicsTable (mma) 00047 // 06-08-01, BuildThePhysicsTable() called from constructor (mma) 00048 // 17-09-01, migration of Materials to pure STL (mma) 00049 // 20-09-01, DoIt: fminimalEnergy = 1*eV (mma) 00050 // 01-10-01, come back to BuildPhysicsTable(const G4ParticleDefinition&) 00051 // 17-04-02, LowestEnergyLimit = 1*keV 00052 // 26-05-04, cross section parametrization improved for low energy : 00053 // Egamma <~ 15 keV (Laszlo) 00054 // 08-11-04, Remove Store/Retrieve tables (V.Ivanchenko) 00055 // 09-03-05 Migrate to model interface 00056 // and inherit from G4VEmProcess (V.Ivanchenko) 00057 // 04-05-05, Make class to be default (V.Ivanchenko) 00058 // 09-09-06, modify SetModel(G4VEmModel*) (mma) 00059 // 12-09-06, move SetModel(G4VEmModel*) in G4VEmProcess (mma) 00060 // 00061 // ----------------------------------------------------------------------------- 00062 00063 #include "G4ComptonScattering.hh" 00064 #include "G4SystemOfUnits.hh" 00065 #include "G4KleinNishinaModel.hh" 00066 #include "G4KleinNishinaCompton.hh" 00067 #include "G4Electron.hh" 00068 00069 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00070 00071 using namespace std; 00072 00073 G4ComptonScattering::G4ComptonScattering(const G4String& processName, 00074 G4ProcessType type):G4VEmProcess (processName, type), 00075 isInitialised(false) 00076 { 00077 SetStartFromNullFlag(false); 00078 SetBuildTableFlag(true); 00079 SetSecondaryParticle(G4Electron::Electron()); 00080 SetProcessSubType(fComptonScattering); 00081 SetMinKinEnergyPrim(1*MeV); 00082 SetSplineFlag(true); 00083 } 00084 00085 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00086 00087 G4ComptonScattering::~G4ComptonScattering() 00088 {} 00089 00090 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00091 00092 G4bool G4ComptonScattering::IsApplicable(const G4ParticleDefinition& p) 00093 { 00094 return (&p == G4Gamma::Gamma()); 00095 } 00096 00097 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00098 00099 void G4ComptonScattering::InitialiseProcess(const G4ParticleDefinition*) 00100 { 00101 if(!isInitialised) { 00102 isInitialised = true; 00103 if(!EmModel(1)) { SetEmModel(new G4KleinNishinaCompton(), 1); } 00104 EmModel(1)->SetLowEnergyLimit(MinKinEnergy()); 00105 EmModel(1)->SetHighEnergyLimit(MaxKinEnergy()); 00106 AddEmModel(1, EmModel(1)); 00107 } 00108 } 00109 00110 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00111 00112 void G4ComptonScattering::PrintInfo() 00113 {} 00114 00115 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......