Problem 1309 - Problem with G4AlphaInelasticProcess
Summary: Problem with G4AlphaInelasticProcess
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/processes (show other problems)
Version: 9.5
Hardware: All All
: P5 major
Assignee: dennis.herbert.wright
URL:
Depends on:
Blocks:
 
Reported: 2012-04-26 16:26 CEST by Marco Pinto
Modified: 2012-07-04 01:44 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.