- Timestamp:
- Apr 6, 2009, 12:21:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/src/G4eBremsstrahlungModel.cc
r819 r961 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4eBremsstrahlungModel.cc,v 1. 39 2007/05/23 08:47:35vnivanch Exp $27 // GEANT4 tag $Name: $26 // $Id: G4eBremsstrahlungModel.cc,v 1.43 2008/11/13 19:28:58 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 54 54 // 27-03-06 Fix calculation of fl parameter at low energy (energy loss) (VI) 55 55 // 15-02-07 correct LPMconstant by a factor 2, thanks to G. Depaola (mma) 56 // 09-09-08 MigdalConstant increased in (2pi)^2 times (A.Schaelicke) 56 57 // 57 58 // Class Description: … … 85 86 isElectron(true), 86 87 probsup(1.0), 87 MigdalConstant(classic_electr_radius*electron_Compton_length*electron_Compton_length /pi),88 MigdalConstant(classic_electr_radius*electron_Compton_length*electron_Compton_length*4.0*pi), 88 89 LPMconstant(fine_structure_const*electron_mass_c2*electron_mass_c2/(4.*pi*hbarc)), 89 theLPMflag(true),90 90 isInitialised(false) 91 91 { … … 93 93 theGamma = G4Gamma::Gamma(); 94 94 minThreshold = 1.0*keV; 95 highKinEnergy= 100.*TeV;96 lowKinEnergy = 1.0*keV;97 highEnergyTh = DBL_MAX;98 95 } 99 96 … … 164 161 if(isInitialised) return; 165 162 166 if(pParticleChange) 163 if(pParticleChange) { 167 164 fParticleChange = reinterpret_cast<G4ParticleChangeForLoss*>(pParticleChange); 168 else165 } else { 169 166 fParticleChange = new G4ParticleChangeForLoss(); 170 167 } 171 168 isInitialised = true; 172 169 } … … 834 831 gammaEnergy = x*kineticEnergy; 835 832 836 if ( theLPMflag) {833 if (LPMFlag()) { 837 834 // take into account the supression due to the LPM effect 838 835 if (G4UniformRand() <= SupressionFunction(material,kineticEnergy, … … 879 876 880 877 // stop tracking and create new secondary instead of primary 881 if(gammaEnergy > highEnergyTh) {878 if(gammaEnergy > SecondaryThreshold()) { 882 879 fParticleChange->ProposeTrackStatus(fStopAndKill); 883 880 fParticleChange->SetProposedKineticEnergy(0.0); … … 951 948 G4double supr = 1.0; 952 949 953 if ( theLPMflag) {950 if (LPMFlag()) { 954 951 955 952 G4double s2lpm = LPMEnergy*gammaEnergy/totEnergySquare;
Note: See TracChangeset
for help on using the changeset viewer.