source: trunk/source/processes/electromagnetic/standard/include/G4MollerBhabhaModel.hh@ 1036

Last change on this file since 1036 was 1007, checked in by garnier, 17 years ago

update to geant4.9.2

File size: 4.8 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: G4MollerBhabhaModel.hh,v 1.19 2007/05/22 17:34:36 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-02 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name: G4MollerBhabhaModel
35//
36// Author: Vladimir Ivanchenko on base of Laszlo Urban code
37//
38// Creation date: 07.01.2002
39//
40// Modifications:
41//
42// 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
43// 24-01-03 Make models region aware (V.Ivanchenko)
44// 13-02-03 Add name (V.Ivanchenko)
45// 06-02-06 ComputeCrossSectionPerElectron, ComputeCrossSectionPerAtom (mma)
46// 14-01-07 promote SetParticle() from private to protected (mma)
47
48//
49// Class Description:
50//
51// Implementation of energy loss process and delta-electrons production
52// of electrons and positrons
53
54// -------------------------------------------------------------------
55//
56
57#ifndef G4MollerBhabhaModel_h
58#define G4MollerBhabhaModel_h 1
59
60#include "G4VEmModel.hh"
61
62class G4ParticleChangeForLoss;
63
64class G4MollerBhabhaModel : public G4VEmModel
65{
66
67public:
68
69 G4MollerBhabhaModel(const G4ParticleDefinition* p = 0,
70 const G4String& nam = "MollerBhabha");
71
72 virtual ~G4MollerBhabhaModel();
73
74 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
75
76 G4double MinEnergyCut(const G4ParticleDefinition*,
77 const G4MaterialCutsCouple*);
78
79 virtual G4double ComputeCrossSectionPerElectron(
80 const G4ParticleDefinition*,
81 G4double kineticEnergy,
82 G4double cutEnergy,
83 G4double maxEnergy);
84
85 virtual G4double ComputeCrossSectionPerAtom(
86 const G4ParticleDefinition*,
87 G4double kineticEnergy,
88 G4double Z, G4double A,
89 G4double cutEnergy,
90 G4double maxEnergy);
91
92 virtual G4double CrossSectionPerVolume(const G4Material*,
93 const G4ParticleDefinition*,
94 G4double kineticEnergy,
95 G4double cutEnergy,
96 G4double maxEnergy);
97
98 virtual G4double ComputeDEDXPerVolume(const G4Material*,
99 const G4ParticleDefinition*,
100 G4double kineticEnergy,
101 G4double cutEnergy);
102
103 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
104 const G4MaterialCutsCouple*,
105 const G4DynamicParticle*,
106 G4double tmin,
107 G4double maxEnergy);
108
109protected:
110
111 G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
112 G4double kinEnergy);
113
114 void SetParticle(const G4ParticleDefinition* p);
115
116 const G4ParticleDefinition* particle;
117 G4ParticleDefinition* theElectron;
118 G4ParticleChangeForLoss* fParticleChange;
119
120 G4bool isElectron;
121 G4double twoln10;
122 G4double lowLimit;
123
124private:
125
126 // hide assignment operator
127 G4MollerBhabhaModel & operator=(const G4MollerBhabhaModel &right);
128 G4MollerBhabhaModel(const G4MollerBhabhaModel&);
129};
130
131//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
132
133inline G4double G4MollerBhabhaModel::MaxSecondaryEnergy(
134 const G4ParticleDefinition*,
135 G4double kinEnergy)
136{
137 G4double tmax = kinEnergy;
138 if(isElectron) tmax *= 0.5;
139 return tmax;
140}
141
142//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
143
144#endif
Note: See TracBrowser for help on using the repository browser.