Problem 1035 - Problems migrating code to geant4.9.2.b01
Summary: Problems migrating code to geant4.9.2.b01
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic (show other problems)
Version: other
Hardware: PC Linux
: P5 trivial
Assignee: dennis.herbert.wright
URL:
Depends on:
Blocks:
 
Reported: 2008-11-25 16:07 CET by John LoSecco
Modified: 2008-12-02 20:04 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description John LoSecco 2008-11-25 16:07:29 CET
I encountered 4 problems in migrating code from geant4.9.1.p03 to geant4.9.2.b01

1) GetMeanFreePath has become a protected function of G4HadronicProcess.hh
and can not be called by the user.

2) GetPhotonMomentum() has become GetPhotonEnergy()

3) GetMaxPhotonMomentum() has become GetMaxPhotonEnergy()
and
GetMinPhotonMomentum() has become GetMinPhotonEnergy()

4) #include "G4NeutronInelasticProcess.hh" had to be added to a code to access
theNeutronInelasticProcess

Only the first of these is serious.  Can you suggest a solution?

Could you retain both old and new names for problems 2 and 3.
This would reduce the amount of conditional compilation we would have to do.

Thanks
John
Comment 1 dennis.herbert.wright 2008-12-02 20:04:05 CET
1) The MeanFreePath method will be made public again in the 9.2 release.  In the
   future (release 10.0) it will be renamed. 

For points 2) and 3), please open another bug report (although I expect these
are features) to the electromagnetic physics group as these methods are not in
hadronics.