33 import modularAnalysis
as ma
36 my_path = b2.create_path()
39 ma.inputMdst(filename=b2.find_file(
'B2pi0D_D2hh_D2hhh_B2munu_evtgen.root',
'examples',
False),
43 ma.printDataStore(path=my_path)
47 photons = (
'gamma:gen',
'')
48 electrons = (
'e-:gen',
'')
49 muons = (
'mu-:gen',
'')
50 pions = (
'pi-:gen',
'')
51 kaons = (
'K-:gen',
'')
52 protons = (
'anti-p-:gen',
'')
54 ma.fillParticleListsFromMC([photons, electrons, muons, pions, kaons, protons], path=my_path)
59 ma.printDataStore(path=my_path)
62 ma.printList(list_name=
'gamma:gen', full=
False, path=my_path)
63 ma.printList(list_name=
'e-:gen', full=
False, path=my_path)
64 ma.printList(list_name=
'mu-:gen', full=
False, path=my_path)
65 ma.printList(list_name=
'pi-:gen', full=
False, path=my_path)
66 ma.printList(list_name=
'K-:gen', full=
False, path=my_path)
67 ma.printList(list_name=
'anti-p-:gen', full=
False, path=my_path)