18 <output>ECLBkgOutput.root</output>
19 <contact>Priyanka Cheema, pche3675@uni.sydney.edu.au</contact>
26 from simulation
import add_simulation
27 from reconstruction
import add_reconstruction
30 main = b2.create_path()
33 eventinfosetter = b2.register_module(
'EventInfoSetter')
34 eventinfosetter.param({
'evtNumList': [1000],
'runList': [1]})
35 main.add_module(eventinfosetter)
38 pGun = b2.register_module(
'ParticleGun')
42 'momentumGeneration':
'fixed',
43 'momentumParams': [0.0],
44 'thetaGeneration':
'fixed',
46 'phiGeneration':
'fixed',
48 'vertexGeneration':
'fixed',
49 'xVertexParams': [0.0, 0.0],
50 'yVertexParams': [0.0, 0.0],
51 'zVertexParams': [0.0, 0.0],
53 pGun.param(param_pGun)
57 b2.set_random_seed(123456)
59 if 'BELLE2_BACKGROUND_DIR' in os.environ:
60 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
61 b2.B2INFO(
'Using background samples from ' +
62 os.environ[
'BELLE2_BACKGROUND_DIR'])
64 b2.B2FATAL(
'Environment variable BELLE2_BACKGROUND_DIR is not set.')
66 add_simulation(main, bkgfiles=bg)
67 add_reconstruction(main)
70 ecldataanalysis = b2.register_module(
'ECLDataAnalysis')
71 ecldataanalysis.param(
'rootFileName',
'../ECLBkgOutput.root')
72 ecldataanalysis.param(
'doTracking', 1)
73 main.add_module(ecldataanalysis)
75 main.add_module(
'Progress')