31 from modularAnalysis
import inputMdst
32 from simulation
import add_simulation
33 from reconstruction
import add_reconstruction
34 from mdst
import add_mdst_output
39 my_path = b2.create_path()
42 inputMdst(filename=b2.find_file(
'B2A101-Y4SEventGeneration-evtgen.root'), path=my_path)
46 if '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://confluence.desy.de/display/BI/Beam+background+samples to find them')
52 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
54 b2.B2FATAL(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_DIR'])
57 add_simulation(path=my_path, bkgfiles=bg)
60 add_reconstruction(path=my_path)
63 add_mdst_output(path=my_path,
65 filename=
'B2A101-Y4SEventGeneration-gsim-BKGx1.root')
68 my_path.add_module(
'ProgressBar')