Belle II Software  release-08-01-10
b2decay-hash-interpreter.py
1 #!/usr/bin/env python3
2 
3 
10 
11 import os
12 import sys
13 
14 if __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]))