- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/cross_sections/src/G4HadronCrossSections.cc
r1228 r1315 25 25 // 26 26 // 27 // GEANT4 tag $Name: geant4-09-0 3$27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 // … … 1585 1585 G4double ZZ, G4double /*AA*/) 1586 1586 { 1587 if (GetParticleCode(aParticle) != 16) return 0.;1587 if (GetParticleCode(aParticle) != 16) { return 0.; } 1588 1588 G4double ek = aParticle->GetKineticEnergy()/GeV; 1589 if (ek > 0.0327) return 0.;1589 if (ek > 0.0327) { return 0.; } 1590 1590 1591 1591 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 1592 1598 G4int izno = static_cast<G4int> (ZZ + 0.01); 1593 1599 if (izno > 100) izno = 100; // Not in GHESIG 1594 1600 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; 1596 1602 // Convert cross section from mb to default units 1597 1603 sigcap = sigcap*millibarn;
Note: See TracChangeset
for help on using the changeset viewer.