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

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPFissionData.cc

    r819 r962  
    3030// 070618 fix memory leaking by T. Koi
    3131// 071002 enable cross section dump by T. Koi
     32// 081024 G4NucleiPropertiesTable:: to G4NucleiProperties::
     33// 081124 Protect invalid read which caused run time errors by T. Koi
    3234
    3335#include "G4NeutronHPFissionData.hh"
     
    110112      G4cout << (*theElementTable)[i]->GetName() << G4endl;
    111113
     114      if ( (*((*theCrossSections)(i))).GetVectorLength() == 0 )
     115      {
     116         G4cout << "The cross-section data of the fission of this element is not available." << G4endl;
     117         G4cout << G4endl;
     118         continue;
     119      }
     120
    112121      G4int ie = 0;
    113122
     
    130139}
    131140
    132 #include "G4NucleiPropertiesTable.hh"
     141#include "G4NucleiProperties.hh"
    133142
    134143G4double G4NeutronHPFissionData::
     
    152161  G4double theZ = anE->GetZ();
    153162  G4double eleMass;
    154   eleMass = ( G4NucleiPropertiesTable::GetNuclearMass(static_cast<G4int>(theZ+eps), static_cast<G4int>(theA+eps))
     163  eleMass = ( G4NucleiProperties::GetNuclearMass( static_cast<G4int>(theA+eps) , static_cast<G4int>(theZ+eps) )
    155164             ) / G4Neutron::Neutron()->GetPDGMass();
    156165 
Note: See TracChangeset for help on using the changeset viewer.