[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 | // |
---|
| 26 | // $Id: G4MscModel71.hh,v 1.5 2007/05/22 17:34:36 vnivanch Exp $ |
---|
[1007] | 27 | // GEANT4 tag $Name: geant4-09-02 $ |
---|
[819] | 28 | // |
---|
| 29 | // ------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // |
---|
| 32 | // GEANT4 Class header file |
---|
| 33 | // |
---|
| 34 | // |
---|
| 35 | // File name: G4MscMOdel71 |
---|
| 36 | // |
---|
| 37 | // Author: Laszlo Urban |
---|
| 38 | // |
---|
| 39 | // Creation date: 01.03.2001 |
---|
| 40 | // |
---|
| 41 | // Modifications: |
---|
| 42 | // |
---|
| 43 | // 27-03-03 Move model part from G4MultipleScattering (V.Ivanchenko) |
---|
| 44 | // 27-03-03 Rename (V.Ivanchenko) |
---|
| 45 | // |
---|
| 46 | // 05-08-03 angle distribution has been modified (L.Urban) |
---|
| 47 | // 26-11-03 new data member currentRange (L.Urban) |
---|
| 48 | // 01-03-04 changes in data members + signature changed in SampleCosineTheta |
---|
| 49 | // 11-03-04 changes in data members (L.Urban) |
---|
| 50 | // 23-04-04 changes in data members and in signature of SampleCosineTheta |
---|
| 51 | // (L.Urban) |
---|
| 52 | // 17-08-04 name of data member facxsi changed to factail (L.Urban) |
---|
| 53 | // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko) |
---|
| 54 | // 15-04-05 optimize internal interface - add SampleSecondaries method (V.Ivanchenko) |
---|
| 55 | // 03-10-05 Model is freezed with the name McsModel71 (V.Ivanchenko) |
---|
| 56 | // 17-02-06 Save table of transport cross sections not mfp (V.Ivanchenko) |
---|
| 57 | // 07-03-06 Create G4UrbanMscModel and move there step limit calculation (V.Ivanchenko) |
---|
| 58 | // |
---|
| 59 | |
---|
| 60 | // |
---|
| 61 | // Class Description: |
---|
| 62 | // |
---|
| 63 | // Implementation of the model of multiple scattering based on |
---|
| 64 | // H.W.Lewis Phys Rev 78 (1950) 526 and L.Urban model |
---|
| 65 | |
---|
| 66 | // ------------------------------------------------------------------- |
---|
| 67 | // |
---|
| 68 | |
---|
| 69 | #ifndef G4MscModel71_h |
---|
| 70 | #define G4MscModel71_h 1 |
---|
| 71 | |
---|
| 72 | #include "G4VEmModel.hh" |
---|
| 73 | |
---|
| 74 | class G4ParticleChangeForMSC; |
---|
| 75 | class G4Navigator; |
---|
| 76 | |
---|
| 77 | class G4MscModel71 : public G4VEmModel |
---|
| 78 | { |
---|
| 79 | |
---|
| 80 | public: |
---|
| 81 | |
---|
| 82 | G4MscModel71(G4double&, G4double&, G4double&, G4double&, G4bool&, |
---|
| 83 | const G4String& nam = "MscUni"); |
---|
| 84 | |
---|
| 85 | virtual ~G4MscModel71(); |
---|
| 86 | |
---|
| 87 | virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); |
---|
| 88 | |
---|
| 89 | virtual G4double ComputeCrossSectionPerAtom( |
---|
| 90 | const G4ParticleDefinition* particle, |
---|
| 91 | G4double KineticEnergy, |
---|
| 92 | G4double AtomicNumber, |
---|
| 93 | G4double AtomicWeight=0., |
---|
| 94 | G4double cut =0., |
---|
| 95 | G4double emax=DBL_MAX); |
---|
| 96 | |
---|
| 97 | virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*, |
---|
| 98 | const G4MaterialCutsCouple*, |
---|
| 99 | const G4DynamicParticle*, |
---|
| 100 | G4double length, |
---|
| 101 | G4double safety); |
---|
| 102 | |
---|
| 103 | G4double GeomPathLength(G4PhysicsTable* theLambdaTable, |
---|
| 104 | const G4MaterialCutsCouple* couple, |
---|
| 105 | const G4ParticleDefinition* particle, |
---|
| 106 | G4double& kineticEnergy, |
---|
| 107 | G4double lambda, |
---|
| 108 | G4double range, |
---|
| 109 | G4double truePathLength); |
---|
| 110 | |
---|
| 111 | G4double TrueStepLength(G4double geomStepLength); |
---|
| 112 | |
---|
| 113 | G4double SampleCosineTheta(G4double trueStepLength,G4double KineticEnergy); |
---|
| 114 | |
---|
| 115 | G4double SampleDisplacement(); |
---|
| 116 | |
---|
| 117 | void SetLateralDisplasmentFlag(G4bool val); |
---|
| 118 | |
---|
| 119 | private: |
---|
| 120 | |
---|
| 121 | // hide assignment operator |
---|
| 122 | G4MscModel71 & operator=(const G4MscModel71 &right); |
---|
| 123 | G4MscModel71(const G4MscModel71&); |
---|
| 124 | |
---|
| 125 | const G4ParticleDefinition* particle; |
---|
| 126 | G4ParticleChangeForMSC* fParticleChange; |
---|
| 127 | G4Navigator* navigator; |
---|
| 128 | |
---|
| 129 | G4double mass; |
---|
| 130 | G4double charge; |
---|
| 131 | G4double massRate; |
---|
| 132 | |
---|
| 133 | G4double taubig; |
---|
| 134 | G4double tausmall; |
---|
| 135 | G4double taulim; |
---|
| 136 | G4double currentTau; |
---|
| 137 | G4double dtrl; |
---|
| 138 | G4double NuclCorrPar; |
---|
| 139 | G4double FactPar; |
---|
| 140 | G4double factail ; |
---|
| 141 | |
---|
| 142 | G4double sigmafactor; |
---|
| 143 | G4double b; |
---|
| 144 | G4double xsi; |
---|
| 145 | |
---|
| 146 | G4double lambda0; |
---|
| 147 | G4double tPathLength; |
---|
| 148 | G4double par1,par2,par3 ; |
---|
| 149 | |
---|
| 150 | G4double stepmin ; |
---|
| 151 | |
---|
| 152 | G4double currentKinEnergy; |
---|
| 153 | G4double currentRange ; |
---|
| 154 | G4double currentRadLength; |
---|
| 155 | |
---|
| 156 | G4bool samplez; |
---|
| 157 | G4bool latDisplasment; |
---|
| 158 | G4bool isInitialized; |
---|
| 159 | }; |
---|
| 160 | |
---|
| 161 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 162 | |
---|
| 163 | inline void G4MscModel71::SetLateralDisplasmentFlag(G4bool val) |
---|
| 164 | { |
---|
| 165 | latDisplasment = val; |
---|
| 166 | } |
---|
| 167 | |
---|
| 168 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 169 | |
---|
| 170 | #endif |
---|
| 171 | |
---|