Problem 1479

Summary: Error in G4PSSphereSurfaceFlux::ProcessHits(G4Step* aStep,G4TouchableHistory*)
Product: Geant4 Reporter: bair.banzarov
Component: digits_hitsAssignee: aso
Status: RESOLVED FIXED    
Severity: critical CC: aso
Priority: P5    
Version: 9.6   
Hardware: All   
OS: All   

Description bair.banzarov 2013-06-14 12:04:44 CEST
G4double anglefactor = (localdir.x()*localpos1.x()
			      +localdir.y()*localpos1.y()
			      +localdir.z()*localpos1.z())
	/std::sqrt(localdirL2)/std::sqrt(localR2);


anglefactor should be always positive.
Comment 1 aso 2014-03-03 05:24:36 CET
The angle factor in G4PSSphereSurfaceFlux was modified to keep it always positive. 
The modification in the code was same as the other scorers such as G4PSFlatSurfaceFlux,
i.e. :  if ( anglefactor < 0.0 ) anglefactor *= -1.0;