Problem 1511

Summary: typo in G4BinaryCascade::CorrectShortlivedPrimaryForFermi if ( std::abs(PDGcode > 1000) && PDGcode != 2112 && PDGcode != 2212 )
Product: Geant4 Reporter: a.ramazani
Component: processes/hadronic/models/binary_cascadeAssignee: Gunter.Folger
Status: RESOLVED FIXED    
Severity: major    
Priority: P5    
Version: 9.6   
Hardware: All   
OS: All   

Description a.ramazani 2013-08-04 09:10:24 CEST
typo in 
G4double G4BinaryCascade::CorrectShortlivedPrimaryForFermi(
        G4KineticTrack* primary,G4KineticTrackVector target_collection)

abs(PDGcode )> 1000 :

Error:
  if ( std::abs(PDGcode > 1000) && PDGcode != 2112 && PDGcode != 2212 )
Correct:
  if ( std::abs(PDGcode )> 1000 && PDGcode != 2112 && PDGcode != 2212 )
Comment 1 Gunter.Folger 2013-09-10 14:57:25 CEST
Thanks for this fix, I have modified the source code.

Gunter