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

Fix primary particle barcode check

parent 006d7581
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,8 @@ class BarcodeCheckerAlg(PyAthena.Alg):
for mcEvt in evtCollection:
for mcParticle in mcEvt.particles:
barCode = mcParticle.barcode()
self.maxLow = max(self.maxLow, barCode%200000)
if barCode%1000000 <= 200000:
self.maxLow = max(self.maxLow, barCode%1000000)
if barCode%1000000 > 200000:
self.maxMid = max(self.maxMid, barCode%1000000 - 200000)
self.maxHi = max(self.maxHi, barCode//1000000)
......
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