[819] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // $Id: G4BetheHeitlerModel.hh,v 1.6 2007/05/22 17:34:36 vnivanch Exp $ |
---|
[1228] | 27 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
[819] | 28 | // |
---|
| 29 | // ------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // GEANT4 Class header file |
---|
| 32 | // |
---|
| 33 | // |
---|
| 34 | // File name: G4BetheHeitlerModel |
---|
| 35 | // |
---|
| 36 | // Author: Vladimir Ivanchenko on base of Michel Maire code |
---|
| 37 | // |
---|
| 38 | // Creation date: 19.04.2005 |
---|
| 39 | // |
---|
| 40 | // Modifications: |
---|
| 41 | // 02-02-06 Remove InitialiseCrossSectionPerAtom(); |
---|
| 42 | // |
---|
| 43 | // Class Description: |
---|
| 44 | // |
---|
| 45 | // Implementation of gamma convertion to e+e- in the field of a nucleus |
---|
| 46 | // |
---|
| 47 | |
---|
| 48 | // ------------------------------------------------------------------- |
---|
| 49 | // |
---|
| 50 | |
---|
| 51 | #ifndef G4BetheHeitlerModel_h |
---|
| 52 | #define G4BetheHeitlerModel_h 1 |
---|
| 53 | |
---|
| 54 | #include "G4VEmModel.hh" |
---|
| 55 | #include "G4PhysicsTable.hh" |
---|
| 56 | |
---|
| 57 | class G4ParticleChangeForGamma; |
---|
| 58 | |
---|
| 59 | class G4BetheHeitlerModel : public G4VEmModel |
---|
| 60 | { |
---|
| 61 | |
---|
| 62 | public: |
---|
| 63 | |
---|
| 64 | G4BetheHeitlerModel(const G4ParticleDefinition* p = 0, |
---|
| 65 | const G4String& nam = "Bethe-Heitler"); |
---|
| 66 | |
---|
| 67 | virtual ~G4BetheHeitlerModel(); |
---|
| 68 | |
---|
| 69 | virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); |
---|
| 70 | |
---|
| 71 | virtual G4double ComputeCrossSectionPerAtom( |
---|
| 72 | const G4ParticleDefinition*, |
---|
| 73 | G4double kinEnergy, |
---|
| 74 | G4double Z, |
---|
| 75 | G4double A=0., |
---|
| 76 | G4double cut=0., |
---|
| 77 | G4double emax=DBL_MAX); |
---|
| 78 | |
---|
| 79 | virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*, |
---|
| 80 | const G4MaterialCutsCouple*, |
---|
| 81 | const G4DynamicParticle*, |
---|
| 82 | G4double tmin, |
---|
| 83 | G4double maxEnergy); |
---|
| 84 | |
---|
| 85 | private: |
---|
| 86 | |
---|
| 87 | G4double ScreenFunction1(G4double ScreenVariable); |
---|
| 88 | |
---|
| 89 | G4double ScreenFunction2(G4double ScreenVariable); |
---|
| 90 | |
---|
| 91 | // hide assignment operator |
---|
| 92 | G4BetheHeitlerModel & operator=(const G4BetheHeitlerModel &right); |
---|
| 93 | G4BetheHeitlerModel(const G4BetheHeitlerModel&); |
---|
| 94 | |
---|
| 95 | G4ParticleDefinition* theGamma; |
---|
| 96 | G4ParticleDefinition* theElectron; |
---|
| 97 | G4ParticleDefinition* thePositron; |
---|
| 98 | G4ParticleChangeForGamma* fParticleChange; |
---|
| 99 | G4PhysicsTable* theCrossSectionTable; |
---|
| 100 | |
---|
| 101 | G4double lowGammaEnergy; |
---|
| 102 | G4double highGammaEnergy; |
---|
| 103 | |
---|
| 104 | G4int nbins; |
---|
| 105 | size_t indexZ[120]; |
---|
| 106 | |
---|
| 107 | }; |
---|
| 108 | |
---|
| 109 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 110 | |
---|
| 111 | inline G4double G4BetheHeitlerModel::ScreenFunction1(G4double ScreenVariable) |
---|
| 112 | |
---|
| 113 | // compute the value of the screening function 3*PHI1 - PHI2 |
---|
| 114 | |
---|
| 115 | { |
---|
| 116 | G4double screenVal; |
---|
| 117 | |
---|
| 118 | if (ScreenVariable > 1.) |
---|
| 119 | screenVal = 42.24 - 8.368*std::log(ScreenVariable+0.952); |
---|
| 120 | else |
---|
| 121 | screenVal = 42.392 - ScreenVariable*(7.796 - 1.961*ScreenVariable); |
---|
| 122 | |
---|
| 123 | return screenVal; |
---|
| 124 | } |
---|
| 125 | |
---|
| 126 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 127 | |
---|
| 128 | inline G4double G4BetheHeitlerModel::ScreenFunction2(G4double ScreenVariable) |
---|
| 129 | |
---|
| 130 | // compute the value of the screening function 1.5*PHI1 - 0.5*PHI2 |
---|
| 131 | |
---|
| 132 | { |
---|
| 133 | G4double screenVal; |
---|
| 134 | |
---|
| 135 | if (ScreenVariable > 1.) |
---|
| 136 | screenVal = 42.24 - 8.368*std::log(ScreenVariable+0.952); |
---|
| 137 | else |
---|
| 138 | screenVal = 41.405 - ScreenVariable*(5.828 - 0.8945*ScreenVariable); |
---|
| 139 | |
---|
| 140 | return screenVal; |
---|
| 141 | } |
---|
| 142 | |
---|
| 143 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 144 | |
---|
| 145 | #endif |
---|