| Summary: | yet another incorrect level evaluation in G4NeutronHPInelasticCompFS | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Artem Zontikov <zontikov.a> |
| Component: | processes/hadronic/models/neutron_hp | Assignee: | dennis.herbert.wright |
| Status: | RESOLVED FIXED | ||
| Severity: | trivial | CC: | dennis.herbert.wright |
| Priority: | P5 | ||
| Version: | 10.2 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1789 | ||
|
Description
Artem Zontikov
2016-03-06 18:49:45 CET
Or maybe rewrite line 402 as:
if (theTrack.GetDefinition() == aDefinition) {
if ( iLevel == -1 ) iLevel = 0;
}
Fix was made according to last post by Artem Zontikov. It has not been fixed yet.
I noticed that now G4ParticleHPInelasticCompFS uses QM-values which were introduced in version 10.6 (line #412-413 and #599-600). These values do not match with QM-values from evaluated data on which G4NDL is based. The trick with tolerance surely would not help here. Moreover, there is no need to perform the calculation of QM since it is already available in the data. I still think that definition of excitation as QI[0]-QI[it] is a robust solution.
The other problem is that G4ParticleHPInelasticCompFS deals with two types of reactions:
1. incident particle and outgoing particle are the same, e.g. (n,n_k), where k>0 is a level number. Otherwise (k=0) it would be an elastic scattering.
2. incident particle and outgoing particle are not the same, e.g (n,a_k), where k is a level number which could be equal to 0 (ground state).
That is why I proposed earlier to rewrite line 442 as:
if (theTrack.GetDefinition() == aDefinition) {
if ( iLevel == -1 ) iLevel = 0;
}
iLevel==-1 has no sense but GetDecayGammas() in this case would return zero pointer so there would be no gamma emission for nucleus in the ground state.
But, of course, a reliable solution would be to shift the level numbering up so the ground state would have iLevel==0, the first excited state - iLevel==1 and so on.
This would leave us only with theRestEnergy at line #479. The solution was proposed in problem 1790.
Your changes have been implemented. |