G4BetheHeitlerModel.hh

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$
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 // GEANT4 Class header file
00031 //
00032 //
00033 // File name:     G4BetheHeitlerModel
00034 //
00035 // Author:        Vladimir Ivanchenko on base of Michel Maire code
00036 //
00037 // Creation date: 19.04.2005
00038 //
00039 // Modifications:
00040 // 02-02-06 Remove InitialiseCrossSectionPerAtom();
00041 //
00042 // Class Description:
00043 //
00044 // Implementation of gamma convertion to e+e- in the field of a nucleus 
00045 // 
00046 
00047 // -------------------------------------------------------------------
00048 //
00049 
00050 #ifndef G4BetheHeitlerModel_h
00051 #define G4BetheHeitlerModel_h 1
00052 
00053 #include "G4VEmModel.hh"
00054 #include "G4PhysicsTable.hh"
00055 
00056 class G4ParticleChangeForGamma;
00057 
00058 class G4BetheHeitlerModel : public G4VEmModel
00059 {
00060 
00061 public:
00062 
00063   G4BetheHeitlerModel(const G4ParticleDefinition* p = 0, 
00064                       const G4String& nam = "BetheHeitler");
00065  
00066   virtual ~G4BetheHeitlerModel();
00067 
00068   virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00069 
00070   virtual G4double ComputeCrossSectionPerAtom(
00071                                 const G4ParticleDefinition*,
00072                                       G4double kinEnergy, 
00073                                       G4double Z, 
00074                                       G4double A=0., 
00075                                       G4double cut=0.,
00076                                       G4double emax=DBL_MAX);
00077 
00078   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00079                                  const G4MaterialCutsCouple*,
00080                                  const G4DynamicParticle*,
00081                                  G4double tmin,
00082                                  G4double maxEnergy);
00083 
00084 private:
00085 
00086   G4double ScreenFunction1(G4double ScreenVariable);
00087 
00088   G4double ScreenFunction2(G4double ScreenVariable);
00089 
00090   // hide assignment operator
00091   G4BetheHeitlerModel & operator=(const G4BetheHeitlerModel &right);
00092   G4BetheHeitlerModel(const  G4BetheHeitlerModel&);
00093 
00094   G4ParticleDefinition*     theGamma;
00095   G4ParticleDefinition*     theElectron;
00096   G4ParticleDefinition*     thePositron;
00097   G4ParticleChangeForGamma* fParticleChange;
00098 };
00099 
00100 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00101 
00102 inline G4double G4BetheHeitlerModel::ScreenFunction1(G4double ScreenVariable)
00103 
00104 // compute the value of the screening function 3*PHI1 - PHI2
00105 
00106 {
00107    G4double screenVal;
00108 
00109    if (ScreenVariable > 1.)
00110      screenVal = 42.24 - 8.368*std::log(ScreenVariable+0.952);
00111    else
00112      screenVal = 42.392 - ScreenVariable*(7.796 - 1.961*ScreenVariable);
00113 
00114    return screenVal;
00115 }
00116 
00117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00118 
00119 inline G4double G4BetheHeitlerModel::ScreenFunction2(G4double ScreenVariable)
00120 
00121 // compute the value of the screening function 1.5*PHI1 - 0.5*PHI2
00122 
00123 {
00124    G4double screenVal;
00125 
00126    if (ScreenVariable > 1.)
00127      screenVal = 42.24 - 8.368*std::log(ScreenVariable+0.952);
00128    else
00129      screenVal = 41.405 - ScreenVariable*(5.828 - 0.8945*ScreenVariable);
00130 
00131    return screenVal;
00132 }
00133 
00134 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00135 
00136 #endif

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