23 from simulation
import add_simulation
24 from reconstruction
import add_reconstruction
25 from reconstruction
import add_mdst_output
27 from ROOT
import Belle2
30 b2.set_log_level(b2.LogLevel.ERROR)
33 main = b2.create_path()
36 eventinfosetter = b2.register_module(
'EventInfoSetter')
37 eventinfosetter.param(
'evtNumList', [100])
38 main.add_module(eventinfosetter)
41 evtgeninput = b2.register_module(
'EvtGenInput')
42 evtgeninput.param(
'userDECFile',
44 main.add_module(evtgeninput)
48 if 'BELLE2_BACKGROUND_DIR' in os.environ:
49 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
50 add_simulation(main, bkgfiles=bg)
53 add_reconstruction(main)
56 add_mdst_output(main, filename=
'evtgenB2Kpi.mdst.root')
59 ntuple = b2.register_module(
'TOPNtuple')
60 ntuple.param(
'outputFileName',
'ntupleB2Kpi.root')
61 main.add_module(ntuple)
64 progress = b2.register_module(
'Progress')
65 main.add_module(progress)
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...