source: trunk/source/processes/electromagnetic/standard/src/G4GammaConversion.cc@ 1199

Last change on this file since 1199 was 1196, checked in by garnier, 16 years ago

update CVS release candidate geant4.9.3.01

File size: 5.3 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: G4GammaConversion.cc,v 1.31 2009/02/20 12:06:37 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03-cand-01 $
28//
29//
30//------------------ G4GammaConversion physics process -------------------------
31// by Michel Maire, 24 May 1996
32//
33// 11-06-96 Added SelectRandomAtom() method, M.Maire
34// 21-06-96 SetCuts implementation, M.Maire
35// 24-06-96 simplification in ComputeCrossSectionPerAtom, M.Maire
36// 24-06-96 in DoIt : change the particleType stuff, M.Maire
37// 25-06-96 modification in the generation of the teta angle, M.Maire
38// 16-09-96 minors optimisations in DoIt. Thanks to P.Urban
39// dynamical array PartialSumSigma
40// 13-12-96 fast sampling of epsil below 2 MeV, L.Urban
41// 14-01-97 crossection table + meanfreepath table.
42// PartialSumSigma removed, M.Maire
43// 14-01-97 in DoIt the positron is always created, even with Ekine=0,
44// for further annihilation, M.Maire
45// 14-03-97 new Physics scheme for geant4alpha, M.Maire
46// 28-03-97 protection in BuildPhysicsTable, M.Maire
47// 19-06-97 correction in ComputeCrossSectionPerAtom, L.Urban
48// 04-06-98 in DoIt, secondary production condition:
49// range>std::min(threshold,safety)
50// 13-08-98 new methods SetBining() PrintInfo()
51// 28-05-01 V.Ivanchenko minor changes to provide ANSI -wall compilation
52// 11-07-01 PostStepDoIt - sampling epsil: power(rndm,0.333333)
53// 13-07-01 DoIt: suppression of production cut for the (e-,e+) (mma)
54// 06-08-01 new methods Store/Retrieve PhysicsTable (mma)
55// 06-08-01 BuildThePhysicsTable() called from constructor (mma)
56// 17-09-01 migration of Materials to pure STL (mma)
57// 20-09-01 DoIt: fminimalEnergy = 1*eV (mma)
58// 01-10-01 come back to BuildPhysicsTable(const G4ParticleDefinition&)
59// 11-01-02 ComputeCrossSection: correction of extrapolation below EnergyLimit
60// 21-03-02 DoIt: correction of the e+e- angular distribution (bug 363) mma
61// 08-11-04 Remove of Store/Retrieve tables (V.Ivantchenko)
62// 19-04-05 Migrate to model interface and inherit
63// from G4VEmProcess (V.Ivanchenko)
64// 04-05-05, Make class to be default (V.Ivanchenko)
65// 09-08-06, add SetModel(G4VEmModel*) (mma)
66// 12-09-06, move SetModel(G4VEmModel*) in G4VEmProcess (mma)
67// -----------------------------------------------------------------------------
68
69#include "G4GammaConversion.hh"
70#include "G4BetheHeitlerModel.hh"
71#include "G4Electron.hh"
72
73//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
74
75using namespace std;
76
77G4GammaConversion::G4GammaConversion(const G4String& processName,
78 G4ProcessType type):G4VEmProcess (processName, type),
79 isInitialised(false)
80{
81 SetMinKinEnergy(2.0*electron_mass_c2);
82 SetProcessSubType(fGammaConversion);
83}
84
85//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
86
87G4GammaConversion::~G4GammaConversion()
88{}
89
90//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
91
92G4bool G4GammaConversion::IsApplicable(const G4ParticleDefinition& p)
93{
94 return (&p == G4Gamma::Gamma());
95}
96
97//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
98
99void G4GammaConversion::InitialiseProcess(const G4ParticleDefinition*)
100{
101 if(!isInitialised) {
102 isInitialised = true;
103 SetBuildTableFlag(true);
104 SetSecondaryParticle(G4Electron::Electron());
105 G4double emin = std::max(MinKinEnergy(), 2.0*electron_mass_c2);
106 SetMinKinEnergy(emin);
107 if(!Model()) SetModel(new G4BetheHeitlerModel());
108 Model()->SetLowEnergyLimit(emin);
109 Model()->SetHighEnergyLimit(MaxKinEnergy());
110 AddEmModel(1, Model());
111 }
112}
113
114//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
115
116void G4GammaConversion::PrintInfo()
117{}
118
119//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.