17<output>ECLBkgOutput.root</output>
18<contact>Priyanka Cheema, pche3675@uni.sydney.edu.au</contact>
25from simulation
import add_simulation
26from reconstruction
import add_reconstruction
29main = b2.create_path()
32eventinfosetter = b2.register_module(
'EventInfoSetter')
33eventinfosetter.param({
'evtNumList': [1000],
'runList': [1]})
34main.add_module(eventinfosetter)
37pGun = b2.register_module(
'ParticleGun')
41 'momentumGeneration':
'fixed',
42 'momentumParams': [0.0],
43 'thetaGeneration':
'fixed',
45 'phiGeneration':
'fixed',
47 'vertexGeneration':
'fixed',
48 'xVertexParams': [0.0, 0.0],
49 'yVertexParams': [0.0, 0.0],
50 'zVertexParams': [0.0, 0.0],
56b2.set_random_seed(123456)
58if 'BELLE2_BACKGROUND_DIR' in os.environ:
59 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
60 b2.B2INFO(
'Using background samples from ' +
61 os.environ[
'BELLE2_BACKGROUND_DIR'])
63 b2.B2FATAL(
'Environment variable BELLE2_BACKGROUND_DIR is not set.')
65add_simulation(main, bkgfiles=bg)
66add_reconstruction(main)
69ecldataanalysis = b2.register_module(
'ECLDataAnalysis')
70ecldataanalysis.param(
'rootFileName',
'../ECLBkgOutput.root')
71ecldataanalysis.param(
'doTracking', 1)
72main.add_module(ecldataanalysis)
74main.add_module(
'Progress')