Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

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

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4BetheBlochModel.cc,v 1.37 2010/05/27 10:25:59 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4BetheBlochModel.cc,v 1.40 2010/11/04 17:30:31 vnivanch Exp $
     27// GEANT4 tag $Name: emstand-V09-03-25 $
    2828//
    2929// -------------------------------------------------------------------
     
    8282{
    8383  fParticleChange = 0;
     84  theElectron = G4Electron::Electron();
    8485  if(p) {
    8586    SetGenericIon(p);
    8687    SetParticle(p);
    87   }
    88   theElectron = G4Electron::Electron();
     88  } else {
     89    SetParticle(theElectron);
     90  }
    8991  corr = G4LossTableManager::Instance()->EmCorrections(); 
    9092  nist = G4NistManager::Instance();
     
    117119  //     << G4endl;
    118120
    119   corrFactor = chargeSquare;
    120121  // always false before the run
    121122  SetDeexcitationFlag(false);
     
    157158  G4double q = particle->GetPDGCharge()/eplus;
    158159  chargeSquare = q*q;
     160  corrFactor = chargeSquare;
    159161  ratio = electron_mass_c2/mass;
    160162  G4double magmom =
     
    275277
    276278  // shell correction
    277   dedx -= 2.0*corr->ShellCorrection(p,material,kineticEnergy);
     279  //dedx -= 2.0*corr->ShellCorrection(p,material,kineticEnergy);
     280  dedx -= corr->ShellCorrection(p,material,kineticEnergy);
    278281
    279282  // now compute the total ionization loss
    280 
    281   if (dedx < 0.0) dedx = 0.0 ;
    282 
    283283  dedx *= twopi_mc2_rcl2*chargeSquare*eDensity/beta2;
    284284
     
    289289    dedx += corr->HighOrderCorrections(p,material,kineticEnergy,cutEnergy);
    290290  }
     291
     292  if (dedx < 0.0) { dedx = 0.0; }
    291293  return dedx;
    292294}
Note: See TracChangeset for help on using the changeset viewer.