13<output>ECLClusterOutputBWD_1000MeV.root</output>
14<contact>Priyanka Cheema, pche3675@uni.sydney.edu.au</contact>
21from simulation
import add_simulation
22from reconstruction
import add_reconstruction
25main = b2.create_path()
28eventinfosetter = b2.register_module(
'EventInfoSetter')
29eventinfosetter.param({
'evtNumList': [1000],
'runList': [1]})
30main.add_module(eventinfosetter)
33b2.set_random_seed(123456)
36pGun = b2.register_module(
'ParticleGun')
40 'momentumGeneration':
'fixed',
41 'momentumParams': [1.0],
42 'thetaGeneration':
'uniform',
43 'thetaParams': [131.5, 157.],
44 'phiGeneration':
'uniform',
45 'phiParams': [0, 360],
46 'vertexGeneration':
'uniform',
47 'xVertexParams': [0.0, 0.0],
48 'yVertexParams': [0.0, 0.0],
49 'zVertexParams': [0.0, 0.0],
55if 'BELLE2_BACKGROUND_DIR' in os.environ:
56 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
57 b2.B2INFO(
'Using background samples from ' +
58 os.environ[
'BELLE2_BACKGROUND_DIR'])
60 b2.B2FATAL(
'Environment variable BELLE2_BACKGROUND_DIR is not set.')
62add_simulation(main, bkgfiles=bg)
63add_reconstruction(main)
66ecldataanalysis = b2.register_module(
'ECLDataAnalysis')
67ecldataanalysis.param(
'rootFileName',
'../ECLClusterOutputBWD_1000MeV.root')
68ecldataanalysis.param(
'doTracking', 1)
69ecldataanalysis.param(
'doDigits', 1)
70main.add_module(ecldataanalysis)
72main.add_module(
'Progress')