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/models/chiral_inv_phase_space/cross_sections/src/G4QPhotonNuclearCrossSection.cc

    r1228 r1315  
    2626//
    2727// The lust update: M.V. Kossov, CERN/ITEP(Moscow) 17-June-02
    28 // GEANT4 tag $Name: geant4-09-03 $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929//
    3030//
     
    276276  //G4double mT= G4QPDGCode(111).GetNuclMass(Z,N,0);
    277277  G4double mT= 0.;
    278   if(G4NucleiProperties::IsInStableTable(A,Z))
     278  if(Z&&G4NucleiProperties::IsInStableTable(A,Z))
    279279                           mT = G4NucleiProperties::GetNuclearMass(A,Z)/MeV;
     280  else return 0.;       // If it is not in the Table of Stable Nuclei, then the Threshold=0
    280281  G4double mP= infEn;
    281   if(Z&&G4NucleiProperties::IsInStableTable(A-1,Z-1))
     282  if(A>1&&Z&&G4NucleiProperties::IsInStableTable(A-1,Z-1))
    282283          mP = G4NucleiProperties::GetNuclearMass(A-1,Z-1)/MeV;// ResNucMass for a proton
    283284
    284285  G4double mN= infEn;
    285   if(N&&G4NucleiProperties::IsInStableTable(A-1,Z))
     286  if(A>1&&G4NucleiProperties::IsInStableTable(A-1,Z))
    286287          mN = G4NucleiProperties::GetNuclearMass(A-1,Z)/MeV;  // ResNucMass for a neutron
    287288
    288289  G4double mA= infEn;
    289   if(N>1&&Z>1&&G4NucleiProperties::IsInStableTable(A-4,Z-2))
     290  if(A>4&&Z>1&&G4NucleiProperties::IsInStableTable(A-4,Z-2))
    290291          mA=G4NucleiProperties::GetNuclearMass(A-4,Z-2)/MeV;  // ResNucMass for an alpha
    291292
Note: See TracChangeset for help on using the changeset viewer.