Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/cross_sections/src/G4HadronCrossSections.cc

    r1228 r1315  
    2525//
    2626//
    27 // GEANT4 tag $Name: geant4-09-03 $
     27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2828//
    2929//
     
    15851585                          G4double ZZ, G4double /*AA*/)
    15861586{
    1587    if (GetParticleCode(aParticle) != 16) return 0.;
     1587   if (GetParticleCode(aParticle) != 16)  { return 0.; }
    15881588   G4double ek = aParticle->GetKineticEnergy()/GeV;
    1589    if (ek > 0.0327) return 0.;
     1589   if (ek > 0.0327)  { return 0.; }
    15901590
    15911591   G4double ekx = std::max(ek, 1.e-9);
     1592   if( ekx != lastEkx )
     1593   {
     1594     lastEkx = ekx;
     1595     lastEkxPower = std::pow(ekx*1.e6, 0.577);
     1596   }
     1597
    15921598   G4int izno = static_cast<G4int> (ZZ + 0.01);
    15931599   if (izno > 100) izno = 100;      // Not in GHESIG
    15941600   izno = izno - 1;      // For array indexing
    1595    G4double sigcap = 11.12*cscap[izno]/std::pow(ekx*1.e6, 0.577);
     1601   G4double sigcap = 11.12*cscap[izno]/lastEkxPower;
    15961602   // Convert cross section from mb to default units
    15971603   sigcap = sigcap*millibarn;
Note: See TracChangeset for help on using the changeset viewer.