20<output>ECLMuonOutput.root</output>
21<contact>Priyanka Cheema, pche3675@uni.sydney.edu.au</contact>
28from simulation
import add_simulation
29from reconstruction
import add_reconstruction
32main = b2.create_path()
35eventinfosetter = b2.register_module(
'EventInfoSetter')
36eventinfosetter.param({
'evtNumList': [1000],
'runList': [1]})
37main.add_module(eventinfosetter)
40b2.set_random_seed(123456)
43pGun = b2.register_module(
'ParticleGun')
47 'momentumGeneration':
'uniform',
48 'momentumParams': [0.5, 3],
49 'thetaGeneration':
'uniform',
50 'thetaParams': [13., 155.],
51 'phiGeneration':
'uniform',
52 'phiParams': [0, 360],
53 'vertexGeneration':
'uniform',
54 'xVertexParams': [0.0, 0.0],
55 'yVertexParams': [0.0, 0.0],
56 'zVertexParams': [0.0, 0.0],
62if 'BELLE2_BACKGROUND_DIR' in os.environ:
63 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
64 b2.B2INFO(
'Using background samples from ' +
65 os.environ[
'BELLE2_BACKGROUND_DIR'])
67 b2.B2FATAL(
'Environment variable BELLE2_BACKGROUND_DIR is not set.')
69add_simulation(main, bkgfiles=bg)
70add_reconstruction(main)
73ecldataanalysis = b2.register_module(
'ECLDataAnalysis')
74ecldataanalysis.param(
'rootFileName',
'../ECLMuonOutput.root')
75ecldataanalysis.param(
'doTracking', 1)
76main.add_module(ecldataanalysis)
78main.add_module(
'Progress')