31from modularAnalysis
import inputMdst
32from simulation
import add_simulation
33from reconstruction
import add_reconstruction
34from mdst
import add_mdst_output
39my_path = b2.create_path()
42inputMdst(filename=b2.find_file(
'B2A101-Y4SEventGeneration-evtgen.root'), path=my_path)
46if 'BELLE2_BACKGROUND_DIR' not in os.environ:
48 'BELLE2_BACKGROUND_DIR variable is not set. \n'
49 'Please export (setenv) the variable to the location of BG overlay sample. \n'
50 'Check https://xwiki.desy.de/xwiki/rest/p/90869 to find them')
52bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
54 b2.B2FATAL(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_DIR'])
57add_simulation(path=my_path, bkgfiles=bg)
60add_reconstruction(path=my_path)
63add_mdst_output(path=my_path,
65 filename=
'B2A101-Y4SEventGeneration-gsim-BKGx1.root')
68my_path.add_module(
'ProgressBar')