Problem 663 - G4ProtonAntiProtonAtRestChips compiler problem
Summary: G4ProtonAntiProtonAtRestChips compiler problem
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/stopping (show other problems)
Version: 6.2
Hardware: Other Other
: P2 normal
Assignee: Hans-Peter.Wellisch
URL:
Depends on:
Blocks:
 
Reported: 2004-08-24 11:16 CEST by michael.doser
Modified: 2005-02-22 04:07 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description michael.doser 2004-08-24 11:16:46 CEST
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.
Comment 1 Hans-Peter.Wellisch 2005-02-22 04:07:59 CET
unfortunately, this code is not at present supported.

Greetings,

Hans-Peter.