Problem 1479 - Error in G4PSSphereSurfaceFlux::ProcessHits(G4Step* aStep,G4TouchableHistory*)
Summary: Error in G4PSSphereSurfaceFlux::ProcessHits(G4Step* aStep,G4TouchableHistory*)
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: digits_hits (show other problems)
Version: 9.6
Hardware: All All
: P5 critical
Assignee: aso
URL:
Depends on:
Blocks:
 
Reported: 2013-06-14 12:04 CEST by bair.banzarov
Modified: 2014-03-03 09:06 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 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;