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: G4hBremsstrahlung.cc 66996 2013-01-29 14:50:52Z gcosmo $ 00027 // 00028 // ------------------------------------------------------------------- 00029 // 00030 // GEANT4 Class file 00031 // 00032 // 00033 // File name: G4hBremsstrahlung 00034 // 00035 // Author: Vladimir Ivanchenko on base of model for muons 00036 // 00037 // Creation date: 01.03.2008 00038 // 00039 // Modifications: 00040 // 00041 // 00042 // ------------------------------------------------------------------- 00043 // 00044 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00045 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00046 00047 #include "G4hBremsstrahlung.hh" 00048 #include "G4SystemOfUnits.hh" 00049 #include "G4Gamma.hh" 00050 #include "G4hBremsstrahlungModel.hh" 00051 #include "G4UniversalFluctuation.hh" 00052 00053 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00054 00055 using namespace std; 00056 00057 G4hBremsstrahlung::G4hBremsstrahlung(const G4String& name) 00058 : G4VEnergyLossProcess(name), 00059 theParticle(0), 00060 theBaseParticle(0), 00061 lowestKinEnergy(1.*GeV), 00062 isInitialised(false) 00063 { 00064 SetProcessSubType(fBremsstrahlung); 00065 SetSecondaryParticle(G4Gamma::Gamma()); 00066 SetIonisation(false); 00067 } 00068 00069 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00070 00071 G4hBremsstrahlung::~G4hBremsstrahlung() 00072 {} 00073 00074 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00075 00076 G4bool G4hBremsstrahlung::IsApplicable(const G4ParticleDefinition& p) 00077 { 00078 return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 110.0*MeV); 00079 } 00080 00081 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00082 00083 G4double G4hBremsstrahlung::MinPrimaryEnergy(const G4ParticleDefinition*, 00084 const G4Material*, 00085 G4double) 00086 { 00087 return lowestKinEnergy; 00088 } 00089 00090 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00091 00092 void G4hBremsstrahlung::InitialiseEnergyLossProcess( 00093 const G4ParticleDefinition* part, 00094 const G4ParticleDefinition*) 00095 { 00096 if(!isInitialised) { 00097 00098 isInitialised = true; 00099 00100 theParticle = part; 00101 00102 if (!EmModel()) { SetEmModel(new G4hBremsstrahlungModel()); } 00103 00104 G4VEmFluctuationModel* fm = 0; 00105 EmModel()->SetLowEnergyLimit(MinKinEnergy()); 00106 EmModel()->SetHighEnergyLimit(MaxKinEnergy()); 00107 AddEmModel(1, EmModel(), fm); 00108 } 00109 } 00110 00111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00112 00113 void G4hBremsstrahlung::PrintInfo() 00114 {} 00115 00116 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00117