source: trunk/source/processes/electromagnetic/standard/include/G4BetheHeitlerModel.hh @ 1340

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 4.6 KB
Line 
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.9 2010/10/26 10:35:22 vnivanch Exp $
27// GEANT4 tag $Name: emstand-V09-03-24 $
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
57class G4ParticleChangeForGamma;
58
59class G4BetheHeitlerModel : public G4VEmModel
60{
61
62public:
63
64  G4BetheHeitlerModel(const G4ParticleDefinition* p = 0, 
65                      const G4String& nam = "BetheHeitler");
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
85private:
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};
100
101//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
102
103inline G4double G4BetheHeitlerModel::ScreenFunction1(G4double ScreenVariable)
104
105// compute the value of the screening function 3*PHI1 - PHI2
106
107{
108   G4double screenVal;
109
110   if (ScreenVariable > 1.)
111     screenVal = 42.24 - 8.368*std::log(ScreenVariable+0.952);
112   else
113     screenVal = 42.392 - ScreenVariable*(7.796 - 1.961*ScreenVariable);
114
115   return screenVal;
116}
117
118//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
119
120inline G4double G4BetheHeitlerModel::ScreenFunction2(G4double ScreenVariable)
121
122// compute the value of the screening function 1.5*PHI1 - 0.5*PHI2
123
124{
125   G4double screenVal;
126
127   if (ScreenVariable > 1.)
128     screenVal = 42.24 - 8.368*std::log(ScreenVariable+0.952);
129   else
130     screenVal = 41.405 - ScreenVariable*(5.828 - 0.8945*ScreenVariable);
131
132   return screenVal;
133}
134
135//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
136
137#endif
Note: See TracBrowser for help on using the repository browser.