Belle II Software development
B2A901-PrintOutDataStore.py
1#!/usr/bin/env python3
2
3
10
11
21
22import basf2 as b2
23import modularAnalysis as ma
24
25# create path
26my_path = b2.create_path()
27
28# load input ROOT file
29ma.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
33ma.printDataStore(path=my_path)
34
35# Process the events
36b2.process(my_path)
37
38# print out the summary
39print(b2.statistics)