| Summary: | G4ProtonAntiProtonAtRestChips compiler problem | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | michael.doser |
| Component: | processes/hadronic/stopping | Assignee: | Hans-Peter.Wellisch |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 6.2 | ||
| Hardware: | Other | ||
| OS: | Other | ||
unfortunately, this code is not at present supported. Greetings, Hans-Peter. |
In 4.5.1, I was using ProtonAntiProtonAtRestChips in my physics list, and it worked and produced a reasonable picture of the annihilation of antiprotons and heavy nuclei (contrary to the default AntiProtonAnnihilationAtRest, which produces incorrect physics). Now that I tried to include this process in 4.6.2, the compiler chokes, and gives me the following error message: In file included from include/A01HadronPhysics.hh:128, from src/A01HadronPhysics.cc:29: include/G4ProtonAntiProtonAtRestChips.hh: In member function `virtual G4VParticleChange* G4ProtonAntiProtonAtRestChips::AtRestDoIt(const G4Track&,const G4Step&)': include/G4ProtonAntiProtonAtRestChips.hh:97: error: cannot convert ` G4HadFinalState*' to `G4VParticleChange*' in return (I replaced the default AntiProtonAnnihilationAtRest in A01HadronPhysics with ProtonAntiProtonAtRestChips, and am using the SLAC distribution as a starting point). What I really don't understand is that in the code, both AntiProtonAnnihilationAtRest and ProtonAntiProtonAtRestChips methods 'AtRestDoIt' return the same type G4VParticleChange*. I am a beginner, and would appreciate any suggestion as to how to proceed.