Belle II Software light-2406-ragdoll
b2decay-hash-interpreter.py
1#!/usr/bin/env python3
2
3
10
11import os
12import sys
13
14if __name__ == '__main__':
15 if len(sys.argv) < 4:
16 print(f'Usage {os.path.basename(__file__)} hashmap.root decayHash decayHashExtended')
17
18 # lazy import of decayHash for lazy import of ROOT, otherwise it seems that __file__ is root in the main
19 import decayHash
20 rootfile = sys.argv[1]
21 hashmap = decayHash.DecayHashMap(rootfile)
22 hashmap.print_hash(float(sys.argv[2]), float(sys.argv[3]))