Ignore:
Timestamp:
Apr 6, 2009, 12:21:12 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/standard/src/G4eBremsstrahlungModel.cc

    r819 r961  
    2424// ********************************************************************
    2525//
    26 // $Id: G4eBremsstrahlungModel.cc,v 1.39 2007/05/23 08:47:35 vnivanch 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 $
    2828//
    2929// -------------------------------------------------------------------
     
    5454// 27-03-06  Fix calculation of fl parameter at low energy (energy loss) (VI)
    5555// 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)
    5657//
    5758// Class Description:
     
    8586    isElectron(true),
    8687    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),
    8889    LPMconstant(fine_structure_const*electron_mass_c2*electron_mass_c2/(4.*pi*hbarc)),
    89     theLPMflag(true),
    9090    isInitialised(false)
    9191{
     
    9393  theGamma = G4Gamma::Gamma();
    9494  minThreshold = 1.0*keV;
    95   highKinEnergy= 100.*TeV;
    96   lowKinEnergy = 1.0*keV;
    97   highEnergyTh = DBL_MAX;
    9895}
    9996
     
    164161  if(isInitialised) return;
    165162
    166   if(pParticleChange)
     163  if(pParticleChange) {
    167164    fParticleChange = reinterpret_cast<G4ParticleChangeForLoss*>(pParticleChange);
    168   else
     165  } else {
    169166    fParticleChange = new G4ParticleChangeForLoss();
    170 
     167  }
    171168  isInitialised = true;
    172169}
     
    834831    gammaEnergy = x*kineticEnergy;
    835832
    836     if (theLPMflag) {
     833    if (LPMFlag()) {
    837834     // take into account the supression due to the LPM effect
    838835      if (G4UniformRand() <= SupressionFunction(material,kineticEnergy,
     
    879876
    880877  // stop tracking and create new secondary instead of primary
    881   if(gammaEnergy > highEnergyTh) {
     878  if(gammaEnergy > SecondaryThreshold()) {
    882879    fParticleChange->ProposeTrackStatus(fStopAndKill);
    883880    fParticleChange->SetProposedKineticEnergy(0.0);
     
    951948  G4double supr = 1.0;
    952949
    953   if (theLPMflag) {
     950  if (LPMFlag()) {
    954951
    955952    G4double s2lpm = LPMEnergy*gammaEnergy/totEnergySquare;
Note: See TracChangeset for help on using the changeset viewer.