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

Fix entry logic error

parent 5a389ead
No related branches found
No related tags found
No related merge requests found
...@@ -123,10 +123,16 @@ class CosmicRay: ...@@ -123,10 +123,16 @@ class CosmicRay:
r = random() r = random()
if r < self.sampler.weightedXZ/self.sampler.weightedYZ : if r < self.sampler.weightedXZ/self.sampler.weightedYZ :
self.top = True self.top = True
self.frontback = False
self.sides = False
elif r < self.sampler.weightedXY/self.sampler.weightedYZ : elif r < self.sampler.weightedXY/self.sampler.weightedYZ :
self.frontback = True self.frontback = True
self.top = False
self.sides = False
else : else :
self.sides = True self.sides = True
self.top = False
self.frontback = False
def genCosTh(self): def genCosTh(self):
cosmin,cosmax=self.sampler.cosThMin,self.sampler.cosThMax 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