| Summary: | Problem with G4AlphaInelasticProcess | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Marco Pinto <pinto> |
| Component: | processes/hadronic/processes | Assignee: | dennis.herbert.wright |
| Status: | RESOLVED FIXED | ||
| Severity: | major | ||
| Priority: | P5 | ||
| Version: | 9.5 | ||
| Hardware: | All | ||
| OS: | All | ||
Thanks for your report. G4AlphaInelasticProcess.cc has been fixed as suggested. |
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