Problem 1511 - typo in G4BinaryCascade::CorrectShortlivedPrimaryForFermi if ( std::abs(PDGcode > 1000) && PDGcode != 2112 && PDGcode != 2212 )
Summary: typo in G4BinaryCascade::CorrectShortlivedPrimaryForFermi if ( std::abs(PDGc...
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/models/binary_cascade (show other problems)
Version: 9.6
Hardware: All All
: P5 major
Assignee: Gunter.Folger
URL:
Depends on:
Blocks:
 
Reported: 2013-08-04 09:10 CEST by a.ramazani
Modified: 2013-09-10 14:57 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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