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: G4eeToHadrons.cc 66996 2013-01-29 14:50:52Z gcosmo $ 00027 // 00028 // ------------------------------------------------------------------- 00029 // 00030 // GEANT4 Class file 00031 // 00032 // 00033 // File name: G4eeToHadrons 00034 // 00035 // Author: Vladimir Ivanchenko on base of Michel Maire code 00036 // 00037 // Creation date: 02.08.2004 00038 // 00039 // Modifications: 00040 // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko) 00041 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko) 00042 // 23-11-05 Istert AddEmModel which was lost (V.Ivantchenko) 00043 // 00044 00045 // 00046 // ------------------------------------------------------------------- 00047 // 00048 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00049 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00050 00051 #include "G4eeToHadrons.hh" 00052 #include "G4SystemOfUnits.hh" 00053 #include "G4MaterialCutsCouple.hh" 00054 #include "G4Gamma.hh" 00055 00056 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00057 00058 using namespace std; 00059 00060 G4eeToHadrons::G4eeToHadrons(const G4String& name) 00061 : G4VEmProcess(name), 00062 multimodel(0), 00063 csFactor(1.0), 00064 isInitialised(false) 00065 { 00066 SetVerboseLevel(1); 00067 SetProcessSubType(fAnnihilationToHadrons); 00068 } 00069 00070 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00071 00072 G4eeToHadrons::~G4eeToHadrons() 00073 {} 00074 00075 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00076 00077 G4bool G4eeToHadrons::IsApplicable(const G4ParticleDefinition& p) 00078 { 00079 return (&p == G4Positron::Positron()); 00080 } 00081 00082 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00083 00084 void G4eeToHadrons::InitialiseProcess(const G4ParticleDefinition*) 00085 { 00086 if(!isInitialised) { 00087 isInitialised = true; 00088 00089 SetBuildTableFlag(false); 00090 SetIntegral(true); 00091 SetMaxKinEnergy(10.0*TeV); 00092 00093 SetSecondaryParticle(G4Gamma::Gamma()); 00094 SetParticle(G4Positron::Positron()); 00095 00096 multimodel = new G4eeToHadronsMultiModel(verboseLevel); 00097 if(csFactor > 1.0) multimodel->SetCrossSecFactor(csFactor); 00098 AddEmModel(1, multimodel); 00099 } 00100 } 00101 00102 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00103 00104 void G4eeToHadrons::PrintInfo() 00105 { 00106 multimodel->PrintInfo(); 00107 } 00108 00109 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00110 00111 void G4eeToHadrons::SetCrossSecFactor(G4double fac) 00112 { 00113 if(multimodel) multimodel->SetCrossSecFactor(fac); 00114 csFactor = fac; 00115 } 00116 00117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....