00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 #ifndef G4UrbanMscModel90_h
00052 #define G4UrbanMscModel90_h 1
00053
00054
00055
00056 #include <CLHEP/Units/SystemOfUnits.h>
00057
00058 #include "G4VMscModel.hh"
00059 #include "G4MscStepLimitType.hh"
00060
00061 class G4ParticleChangeForMSC;
00062 class G4LossTableManager;
00063
00064
00065
00066 class G4UrbanMscModel90 : public G4VMscModel
00067 {
00068
00069 public:
00070
00071 G4UrbanMscModel90(const G4String& nam = "UrbanMsc90");
00072
00073 virtual ~G4UrbanMscModel90();
00074
00075 void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00076
00077 void StartTracking(G4Track*);
00078
00079 G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition* particle,
00080 G4double KineticEnergy,
00081 G4double AtomicNumber,
00082 G4double AtomicWeight=0.,
00083 G4double cut =0.,
00084 G4double emax=DBL_MAX);
00085
00086 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00087 const G4MaterialCutsCouple*,
00088 const G4DynamicParticle*,
00089 G4double,
00090 G4double);
00091
00092 G4ThreeVector& SampleScattering(const G4ThreeVector&, G4double safety);
00093
00094 G4double ComputeTruePathLengthLimit(const G4Track& track,
00095 G4double& currentMinimalStep);
00096
00097 G4double ComputeGeomPathLength(G4double truePathLength);
00098
00099 G4double ComputeTrueStepLength(G4double geomStepLength);
00100
00101 G4double ComputeTheta0(G4double truePathLength,
00102 G4double KineticEnergy);
00103
00104 private:
00105
00106 G4double SampleCosineTheta(G4double trueStepLength, G4double KineticEnergy);
00107
00108 G4double SampleDisplacement();
00109
00110 G4double LatCorrelation();
00111
00112 inline void SetParticle(const G4ParticleDefinition*);
00113
00114
00115 G4UrbanMscModel90 & operator=(const G4UrbanMscModel90 &right);
00116 G4UrbanMscModel90(const G4UrbanMscModel90&);
00117
00118 const G4ParticleDefinition* particle;
00119 G4ParticleChangeForMSC* fParticleChange;
00120
00121 const G4MaterialCutsCouple* couple;
00122 G4LossTableManager* theManager;
00123
00124 G4double mass;
00125 G4double charge;
00126
00127 G4double masslimite,masslimitmu;
00128
00129 G4double taubig;
00130 G4double tausmall;
00131 G4double taulim;
00132 G4double currentTau;
00133 G4double frscaling1,frscaling2;
00134 G4double tlimit;
00135 G4double tlimitmin;
00136 G4double tlimitminfix;
00137
00138 G4double nstepmax;
00139 G4double geombig;
00140 G4double geommin;
00141 G4double geomlimit;
00142 G4double skindepth;
00143 G4double smallstep;
00144
00145 G4double presafety;
00146
00147 G4double lambda0;
00148 G4double lambdaeff;
00149 G4double tPathLength;
00150 G4double zPathLength;
00151 G4double par1,par2,par3;
00152
00153 G4double stepmin;
00154
00155 G4double currentKinEnergy;
00156 G4double currentRange;
00157 G4double currentRadLength;
00158
00159 G4double Zeff;
00160
00161 G4int currentMaterialIndex;
00162
00163 G4bool firstStep;
00164 G4bool inside;
00165 G4bool insideskin;
00166
00167 };
00168
00169
00170
00171 inline
00172 void G4UrbanMscModel90::SetParticle(const G4ParticleDefinition* p)
00173 {
00174 if (p != particle) {
00175 particle = p;
00176 mass = p->GetPDGMass();
00177 charge = p->GetPDGCharge()/CLHEP::eplus;
00178 }
00179 }
00180
00181
00182
00183 #endif
00184