Problem 1309

Summary: Problem with G4AlphaInelasticProcess
Product: Geant4 Reporter: Marco Pinto <pinto>
Component: processes/hadronic/processesAssignee: dennis.herbert.wright
Status: RESOLVED FIXED    
Severity: major    
Priority: P5    
Version: 9.5   
Hardware: All   
OS: All   

Description Marco Pinto 2012-04-26 16:26:42 CEST
Hi all, 

I found a bug in the newly added G4AlphaInelasticProcess.cc. 

The constructor is defined like this:

  G4AlphaInelasticProcess::G4AlphaInelasticProcess(const G4String& name) :G4HadronInelasticProcess(name, G4Proton::Proton() ){}

What leads to not have any inelastic process allocated to alphas but to protons. 

I think that it should be like this:
 G4AlphaInelasticProcess::G4AlphaInelasticProcess(const G4String& name) :G4HadronInelasticProcess(name, G4Alpha::Alpha() ){}

For all users that are reading this, the problem can be worked around by calling:

G4HadronInelasticProcess *alphaInelasticProcess = new G4HadronInelasticProcess("alphaInelastic",  G4Alpha::Alpha());

instead of:

G4AlphaInelasticProcess *alphaInelasticProcess = new G4AlphaInelasticProcess();


Best regards, 
Marco Pinto
Comment 1 dennis.herbert.wright 2012-07-04 01:44:10 CEST
Thanks for your report.  G4AlphaInelasticProcess.cc has been fixed as suggested.