| Summary: | G4NeutronCaptureXS isotopic cross-section problem | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Zoltan <zepofi> |
| Component: | processes/hadronic/cross_sections | Assignee: | Vladimir.Ivantchenko |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | Alberto.Ribon |
| Priority: | P4 | ||
| Version: | 10.7 | ||
| Hardware: | All | ||
| OS: | All | ||
Hello, thank you for this report. The bug is already fixed in Geant4 10.7patch03. Please, switch to this patch. VI |
Hello, I guess I found a bug in G4NeutronCaptureXS file. In Initialise(), it is written: for(G4int A=amin[Z]; A<=amax[Z]; ++A) { std::ostringstream ost1; ost1 << gDataDirectory << Z << "_" << A; v = RetrieveVector(ost1, false); data->AddComponent(Z, A, v); } So, isotopic cross-sections are added with ID number equal to the mass. However, in IsoCrossSection(), ID number = A-amin[Z] is used G4PhysicsVector* pviso = data->GetComponentDataByID(Z, A - amin[Z]); Regards, Zoltan