From 35cea408335aba4017ed9731f676a01d3e27d204 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Wed, 14 Nov 2018 14:01:35 -0600 Subject: update plot.py --- utils/plot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/plot.py b/utils/plot.py index b74e14a..7abb7e3 100755 --- a/utils/plot.py +++ b/utils/plot.py @@ -65,6 +65,10 @@ if __name__ == '__main__': for event in data['data']: # get the particle ID id = event['mctk'][-1]['id'] + + if id not in event['ev'][0]['fit']: + continue + mass = SNOMAN_MASS[id] # for some reason it's the *second* track which seems to contain the # initial energy -- cgit