diff options
-rwxr-xr-x | utils/plot | 4 | ||||
-rwxr-xr-x | utils/plot-fit-results | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -95,6 +95,10 @@ if __name__ == '__main__': if 'ev' not in event: continue + if 'fit' not in event['ev'][0]: + # if nhit < 100 we don't fit the event + continue + if id not in event['ev'][0]['fit']: continue diff --git a/utils/plot-fit-results b/utils/plot-fit-results index 7a9708e..e1f7987 100755 --- a/utils/plot-fit-results +++ b/utils/plot-fit-results @@ -103,6 +103,10 @@ if __name__ == '__main__': a[i]['id'] = id + if 'fit' not in event['ev'][0]: + # if nhit < 100 we don't fit the event + continue + if id not in event['ev'][0]['fit']: a[i] = np.ma.masked continue |