Problem 1035

Summary: Problems migrating code to geant4.9.2.b01
Product: Geant4 Reporter: John LoSecco <losecco>
Component: processes/hadronicAssignee: dennis.herbert.wright
Status: RESOLVED FIXED    
Severity: trivial CC: Marc.Verderi
Priority: P5    
Version: other   
Hardware: PC   
OS: Linux   

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.