Skip to content
Snippets Groups Projects
Commit 5b9edec4 authored by Dave Casper's avatar Dave Casper
Browse files

Merge branch 'master' into 'master'

Fix entry logic error

See merge request faser/calypso!113
parents 5a389ead f04a15d0
No related branches found
No related tags found
No related merge requests found
......@@ -123,10 +123,16 @@ class CosmicRay:
r = random()
if r < self.sampler.weightedXZ/self.sampler.weightedYZ :
self.top = True
self.frontback = False
self.sides = False
elif r < self.sampler.weightedXY/self.sampler.weightedYZ :
self.frontback = True
self.top = False
self.sides = False
else :
self.sides = True
self.top = False
self.frontback = False
def genCosTh(self):
cosmin,cosmax=self.sampler.cosThMin,self.sampler.cosThMax
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment