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