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: G4PolarizedGammaConversion.cc 69847 2013-05-16 09:36:18Z gcosmo $ 00027 // 00028 // ------------------------------------------------------------------- 00029 // 00030 // 00031 // File name: G4PolarizedGammaConversion 00032 // 00033 // Author: Karim Laihem based on code by Michel Maire 00034 // 00035 // Creation date: 01.05.2005 00036 // 00037 // Class Description: 00038 // 00039 // polarized version of G4GammaConversion 00040 // 00041 // ----------------------------------------------------------------------------- 00042 00043 #include "G4PolarizedGammaConversion.hh" 00044 #include "G4PhysicalConstants.hh" 00045 #include "G4SystemOfUnits.hh" 00046 #include "G4PolarizedGammaConversionModel.hh" 00047 #include "G4Electron.hh" 00048 00049 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00050 00051 G4PolarizedGammaConversion::G4PolarizedGammaConversion(const G4String& processName, 00052 G4ProcessType type):G4VEmProcess (processName, type), 00053 isInitialised(false) 00054 { 00055 SetLambdaBinning(100); 00056 SetMinKinEnergy(2.0*electron_mass_c2); 00057 SetMaxKinEnergy(100.0*GeV); 00058 SetProcessSubType(fGammaConversion); 00059 } 00060 00061 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00062 00063 G4PolarizedGammaConversion::~G4PolarizedGammaConversion() 00064 {} 00065 00066 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00067 00068 void G4PolarizedGammaConversion::InitialiseProcess(const G4ParticleDefinition*) 00069 { 00070 if(!isInitialised) { 00071 isInitialised = true; 00072 // SetVerboseLevel(1); 00073 SetBuildTableFlag(true); 00074 SetSecondaryParticle(G4Electron::Electron()); 00075 G4double emin = std::max(MinKinEnergy(), 2.0*electron_mass_c2); 00076 SetMinKinEnergy(emin); 00077 G4double emax = MaxKinEnergy(); 00078 // G4VEmModel* model = new G4BetheHeitlerModel(); 00079 G4VEmModel* model = new G4PolarizedGammaConversionModel(); 00080 model->SetLowEnergyLimit(emin); 00081 model->SetHighEnergyLimit(emax); 00082 AddEmModel(1, model); 00083 } 00084 } 00085 00086 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00087 00088 void G4PolarizedGammaConversion::PrintInfo() 00089 { 00090 G4cout << " Total cross sections has a good parametrisation" 00091 << " from 1.5 MeV to 100 GeV for all Z;" 00092 << "\n sampling secondary e+e- according to the polarized compton cross section" 00093 << G4endl; 00094 } 00095 00096 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......