Problem 926 - Bug in G4MuonMinusCaptureAtRest.cc
Summary: Bug in G4MuonMinusCaptureAtRest.cc
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/stopping (show other problems)
Version: 8.1
Hardware: PC Linux
: P2 normal
Assignee: dennis.herbert.wright
URL:
Depends on:
Blocks:
 
Reported: 2007-01-19 08:02 CET by nanjo
Modified: 2007-01-25 10:05 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description nanjo 2007-01-19 08:02:46 CET
Dear geant4 developers,

I got an error message with Geant4 8.2 as follows.
G4NucleiProperties::GetNuclearMass: Wrong values for A = 1 and Z = 1.01

It is not appeared with Geant4 8.1.

I think it is due to a bug in
source/processes/hadronic/stopping/src/G4MuonMinusCaptureAtRest.cc
at the line number 101 (also at the line number 102).
 101   targetZ = G4lrint(aEle->GetZ())+perCent;  //...
 102   targetA = G4lrint(aEle->GetN())+perCent;  //...

I think it should be
 101   targetZ = G4lrint(aEle->GetZ()+perCent);  //...
 102   targetA = G4lrint(aEle->GetN()+perCent);  //...

Please check and fix it.

Best regards,
Hajime
Comment 1 dennis.herbert.wright 2007-01-25 10:05:59 CET
This has been fixed.  perCent was removed: G4lrint is sufficient to round to the
nearest integer.  Thanks for reporting this.