Problem 1587

Summary: GetTargetIsotope()
Product: Geant4 Reporter: michel.maire
Component: processes/hadronic/managementAssignee: dennis.herbert.wright
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P5    
Version: 9.6   
Hardware: All   
OS: All   

Description michel.maire 2014-03-10 15:30:15 CET
In SteppingAction :

   const G4StepPoint* endPoint = aStep->GetPostStepPoint();
   const G4VProcess* process   = endPoint->GetProcessDefinedStep();
   G4HadronicProcess* hproc = (G4HadronicProcess*) process;
   const G4Isotope* target = hproc->GetTargetIsotope();

 In case of neutronHP, it returns 0

  Tatsumi said :
Since v9.6, NeutronHP re-set target nucleus in hadronic process by the nucleus which HP system selected. 
So by getting the information in proper timing, then you should get correct information about the target.
Comment 1 dennis.herbert.wright 2014-06-13 20:43:19 CEST
Tatsumi Koi has reported this fixed.