14 <input>EvtGenSimRec.root, EvtGenSimRec_B2Kpi.root</input>
15 <output>TOPNtuple.root</output>
16 <contact>marko.staric@ijs.si</contact>
17 <description>Makes a flat ntuple with TOP PID, track info and MC truth </description>
28 b2.set_log_level(b2.LogLevel.ERROR)
31 main = b2.create_path()
34 roinput = b2.register_module(
'RootInput')
35 roinput.param(
'inputFileNames', [
'../EvtGenSimRec_B2Kpi.root',
36 '../EvtGenSimRec.root'])
37 main.add_module(roinput)
40 gearbox = b2.register_module(
'Gearbox')
41 main.add_module(gearbox)
44 geometry = b2.register_module(
'Geometry')
45 geometry.param(
'components', [
'MagneticField',
'TOP'])
46 main.add_module(geometry)
49 output = b2.register_module(
'TOPNtuple')
50 output.param(
'outputFileName',
'../TOPNtuple.root')
51 main.add_module(output)
54 main.add_module(
'Progress')