source: trunk/source/processes/electromagnetic/standard/include/G4UrbanMscModel90.hh@ 1347

Last change on this file since 1347 was 1337, checked in by garnier, 15 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 5.7 KB
RevLine 
[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//
[1196]26// $Id: G4UrbanMscModel90.hh,v 1.6 2009/11/01 13:04:12 vnivanch Exp $
[1337]27// GEANT4 tag $Name: geant4-09-04-beta-01 $
[819]28//
29// -------------------------------------------------------------------
30//
31//
32// GEANT4 Class header file
33//
34//
35// File name: G4UrbanMscModel90
36//
37// Author: V.Ivanchenko clone Laszlo Urban model
38//
39// Creation date: 07.12.2007
40//
41// Modifications:
42//
43//
44// Class Description:
45//
46// Implementation of the model of multiple scattering based on
47// H.W.Lewis Phys Rev 78 (1950) 526 and L.Urban model
48
49// -------------------------------------------------------------------
50//
51
52#ifndef G4UrbanMscModel90_h
53#define G4UrbanMscModel90_h 1
54
55//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
56
[961]57#include "G4VMscModel.hh"
[819]58#include "G4PhysicsTable.hh"
59#include "G4MscStepLimitType.hh"
60
61class G4ParticleChangeForMSC;
62class G4SafetyHelper;
63class G4LossTableManager;
64
65//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
66
[961]67class G4UrbanMscModel90 : public G4VMscModel
[819]68{
69
70public:
71
[1196]72 G4UrbanMscModel90(const G4String& nam = "UrbanMsc90");
[819]73
74 virtual ~G4UrbanMscModel90();
75
[961]76 void Initialise(const G4ParticleDefinition*, const G4DataVector&);
[819]77
78 G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition* particle,
79 G4double KineticEnergy,
80 G4double AtomicNumber,
81 G4double AtomicWeight=0.,
82 G4double cut =0.,
83 G4double emax=DBL_MAX);
84
85 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
86 const G4MaterialCutsCouple*,
87 const G4DynamicParticle*,
88 G4double,
89 G4double);
90
91 void SampleScattering(const G4DynamicParticle*,
92 G4double safety);
93
94 G4double ComputeTruePathLengthLimit(const G4Track& track,
95 G4PhysicsTable* theLambdaTable,
96 G4double currentMinimalStep);
97
98 G4double ComputeGeomPathLength(G4double truePathLength);
99
100 G4double ComputeTrueStepLength(G4double geomStepLength);
101
102 G4double ComputeTheta0(G4double truePathLength,
103 G4double KineticEnergy);
104
105private:
106
107 G4double SampleCosineTheta(G4double trueStepLength, G4double KineticEnergy);
108
109 G4double SampleDisplacement();
110
111 G4double LatCorrelation();
112
[961]113 inline G4double GetLambda(G4double kinEnergy);
[819]114
[961]115 inline void SetParticle(const G4ParticleDefinition*);
116
[819]117 // hide assignment operator
118 G4UrbanMscModel90 & operator=(const G4UrbanMscModel90 &right);
119 G4UrbanMscModel90(const G4UrbanMscModel90&);
120
121 const G4ParticleDefinition* particle;
122 G4ParticleChangeForMSC* fParticleChange;
123
124 G4SafetyHelper* safetyHelper;
125 G4PhysicsTable* theLambdaTable;
126 const G4MaterialCutsCouple* couple;
127 G4LossTableManager* theManager;
128
129 G4double mass;
130 G4double charge;
131
132 G4double masslimite,masslimitmu;
133
134 G4double taubig;
135 G4double tausmall;
136 G4double taulim;
137 G4double currentTau;
138 G4double frscaling1,frscaling2;
139 G4double tlimit;
140 G4double tlimitmin;
141 G4double tlimitminfix;
142
143 G4double nstepmax;
144 G4double geombig;
145 G4double geommin;
146 G4double geomlimit;
147 G4double skindepth;
148 G4double smallstep;
149
150 G4double presafety;
151
152 G4double lambda0;
153 G4double lambdaeff;
154 G4double tPathLength;
155 G4double zPathLength;
[961]156 G4double par1,par2,par3;
[819]157
[961]158 G4double stepmin;
[819]159
160 G4double currentKinEnergy;
161 G4double currentRange;
162 G4double currentRadLength;
163
164 G4double Zeff;
165
166 G4int currentMaterialIndex;
167
168 G4bool isInitialized;
169 G4bool inside;
170 G4bool insideskin;
171
172};
173
174//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
175
176inline
177G4double G4UrbanMscModel90::GetLambda(G4double e)
178{
179 G4double x;
180 if(theLambdaTable) {
181 G4bool b;
182 x = ((*theLambdaTable)[currentMaterialIndex])->GetValue(e, b);
183 } else {
184 x = CrossSection(couple,particle,e);
185 }
186 if(x > DBL_MIN) x = 1./x;
187 else x = DBL_MAX;
188 return x;
189}
190
191//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
192
193inline
194void G4UrbanMscModel90::SetParticle(const G4ParticleDefinition* p)
195{
196 if (p != particle) {
197 particle = p;
198 mass = p->GetPDGMass();
199 charge = p->GetPDGCharge()/eplus;
200 }
201}
202
203//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
204
205#endif
206
Note: See TracBrowser for help on using the repository browser.