Belle II Software  release-08-01-10
B2A901-PrintOutDataStore.py
1 #!/usr/bin/env python3
2 
3 
10 
11 
21 
22 import basf2 as b2
23 import modularAnalysis as ma
24 
25 # create path
26 my_path = b2.create_path()
27 
28 # load input ROOT file
29 ma.inputMdst(filename=b2.find_file('B2pi0D_D2hh_D2hhh_B2munu.root', 'examples', False),
30  path=my_path)
31 
32 # print out the contents of the DataStore
33 ma.printDataStore(path=my_path)
34 
35 # Process the events
36 b2.process(my_path)
37 
38 # print out the summary
39 print(b2.statistics)