| Summary: | exampleRE05 exampleRE05.in G4FTFAnnihilation.cc:868 CandidatsN == 9 subscript check | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Vittorio Zecca <vitti570> |
| Component: | processes/hadronic/models/parton_string/diffraction | Assignee: | Alberto.Ribon |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | Gunter.Folger |
| Priority: | P5 | ||
| Version: | 10.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Vittorio Zecca
2013-12-22 10:11:19 CET
The problem has been studied and reproduced. It was indeed a bug in G4FTFAnnihilation which can affect the simulation of antiproton-proton and antineutron-neutron annihilation, both in-flight and at rest. The problem will be fixed in the beta release G4 10.1.beta, expected by the end of June. Thanks a lot for reporting this bug! Are you sure this is fixed in geant4 version 10 with patch?
After installing it I get the same subscript check
in G4FTFAnnihilation.cc:868
"if ( iAQ1 == 2 && iAQ2 == 0 ) { assert(CandidatsN < 9),CandAQ[CandidatsN] = 1; }"
here I added an assert to detect the bug.
The code fails
exampleRE05: /home/vitti/1tb/vitti/geant4.10.00.p01/source/processes/hadronic/models/parton_string/diffraction/src/G4FTFAnnihilation.cc:868: virtual G4bool G4FTFAnnihilation::Annihilate(G4VSplitableHadron*, G4VSplitableHadron*, G4VSplitableHadron*&, G4FTFParameters*) const: Assertion `CandidatsN < 9' failed.
Will you please double check?
The problem has been fixed in the *second* patch of version 10, i.e. in G4 10.0.p02, whereas you are running the first, older, patch, G4 10.0.p01. |