G4hBremsstrahlungModel.cc

Go to the documentation of this file.
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: G4hBremsstrahlungModel.cc 66996 2013-01-29 14:50:52Z gcosmo $
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 // GEANT4 Class file
00031 //
00032 //
00033 // File name:     G4hBremsstrahlungModel
00034 //
00035 // Author:        Vladimir Ivanchenko on base of G4MuBremsstrahlungModel
00036 //
00037 // Creation date: 28.02.2008
00038 //
00039 // Modifications:
00040 //
00041 
00042 //
00043 // Class Description:
00044 //
00045 //
00046 // -------------------------------------------------------------------
00047 //
00048 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00049 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00050 
00051 #include "G4hBremsstrahlungModel.hh"
00052 #include "G4PhysicalConstants.hh"
00053 #include "G4SystemOfUnits.hh"
00054 
00055 using namespace std;
00056 
00057 G4hBremsstrahlungModel::G4hBremsstrahlungModel(const G4ParticleDefinition* p,
00058                                                const G4String& nam)
00059   : G4MuBremsstrahlungModel(p, nam)
00060 {}
00061 
00062 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00063 
00064 G4hBremsstrahlungModel::~G4hBremsstrahlungModel()
00065 {}
00066 
00067 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00068 
00069 G4double G4hBremsstrahlungModel::ComputeDMicroscopicCrossSection(
00070                                            G4double tkin,
00071                                            G4double Z,
00072                                            G4double gammaEnergy)
00073 //  differential cross section
00074 {
00075   G4double dxsection = 0.;
00076 
00077   if( gammaEnergy > tkin) return dxsection ;
00078   //  G4cout << "G4hBremsstrahlungModel m= " << mass 
00079   //     << "  " << particle->GetParticleName() << G4endl;
00080   G4double E = tkin + mass ;
00081   G4double v = gammaEnergy/E ;
00082   G4double delta = 0.5*mass*mass*v/(E-gammaEnergy) ;
00083   G4double rab0=delta*sqrte ;
00084 
00085   G4int iz = G4int(Z);
00086   if(iz < 1) iz = 1;
00087 
00088   G4double z13 = 1.0/nist->GetZ13(iz);
00089   G4double dn  = mass*nist->GetA27(iz)/(70.*MeV);
00090 
00091   G4double    b = btf;
00092   if(1 == iz) b = bh;
00093 
00094   // nucleus contribution logarithm
00095   G4double rab1=b*z13;
00096   G4double fn=log(rab1/(dn*(electron_mass_c2+rab0*rab1))*
00097               (mass+delta*(dn*sqrte-2.))) ;
00098   if(fn <0.) fn = 0. ;
00099 
00100   G4double x = 1.0 - v;
00101   if(particle->GetPDGSpin() != 0) x += 0.75*v*v;
00102 
00103   dxsection = coeff*x*Z*Z*fn/gammaEnergy;
00104 
00105   return dxsection;
00106 }
00107 
00108 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......

Generated on Mon May 27 17:48:27 2013 for Geant4 by  doxygen 1.4.7