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