Problem 1427

Summary: G4HadronicProcessStore::GetCrossSectionPerAtom()
Product: Geant4 Reporter: michel.maire
Component: processes/hadronic/managementAssignee: dennis.herbert.wright
Status: RESOLVED FIXED    
Severity: normal CC: tkoi
Priority: P5    
Version: other   
Hardware: All   
OS: All   

Description michel.maire 2013-01-18 18:41:59 CET
While using neutronHP, one get a segmentation fault in G4HadronicProcessStore::GetCrossSectionPerAtom()
Comment 1 dennis.herbert.wright 2013-01-28 18:01:03 CET
Is this problem in version 9.6?
Comment 2 tkoi 2013-01-28 23:40:35 CET
Hi 

I think this is not a proble in HP.
The problem is happend in 

G4double GetElasticCrossSectionPerAtom(
     const G4ParticleDefinition *aParticle,
     G4double kineticEnergy,
     const G4Element *anElement, 
const G4Material* mat=0);


ComputeCrossSectionPerVolume()
Comment 3 tkoi 2013-01-28 23:46:56 CET
Please ignore previous comment that was issued by acccident accident

Hi 

I think this is not a problem in HP.
The problem is happened in 

G4double GetElasticCrossSectionPerAtom(
     const G4ParticleDefinition *aParticle,
     G4double kineticEnergy,
     const G4Element *anElement, 
     const G4Material* mat=0);

The last argument has default NULL value and this caused trouble in later phase
especially in HP.
This is not allowed in ComputeCrossSectionPerVolume() and this is the reason
this method works correctly as Michel wrote. 

Tatsumi
Comment 4 dennis.herbert.wright 2013-10-15 02:56:59 CEST
Hi Michel,

   Is this problem still happening?  Have you tried it with a recent tag?

Dennis
Comment 5 dennis.herbert.wright 2013-10-15 17:56:37 CEST
Problem solved and available in the 10.0.0 beta release.