14 <output>ECLClusterOutputBarrel.root</output>
15 <contact>Priyanka Cheema, pche3675@uni.sydney.edu.au</contact>
22 from simulation
import add_simulation
23 from reconstruction
import add_reconstruction
26 main = b2.create_path()
29 eventinfosetter = b2.register_module(
'EventInfoSetter')
30 eventinfosetter.param({
'evtNumList': [1000],
'runList': [1]})
31 main.add_module(eventinfosetter)
34 b2.set_random_seed(123456)
37 pGun = b2.register_module(
'ParticleGun')
41 'momentumGeneration':
'fixed',
42 'momentumParams': [0.1],
43 'thetaGeneration':
'uniform',
44 'thetaParams': [33., 130.],
45 'phiGeneration':
'uniform',
46 'phiParams': [0, 360],
47 'vertexGeneration':
'uniform',
48 'xVertexParams': [0.0, 0.0],
49 'yVertexParams': [0.0, 0.0],
50 'zVertexParams': [0.0, 0.0],
53 pGun.param(param_pGun)
56 if 'BELLE2_BACKGROUND_DIR' in os.environ:
57 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
58 b2.B2INFO(
'Using background samples from ' +
59 os.environ[
'BELLE2_BACKGROUND_DIR'])
61 b2.B2FATAL(
'Environment variable BELLE2_BACKGROUND_DIR is not set.')
63 add_simulation(main, bkgfiles=bg)
64 add_reconstruction(main)
67 ecldataanalysis = b2.register_module(
'ECLDataAnalysis')
68 ecldataanalysis.param(
'rootFileName',
'../ECLClusterOutputBarrel.root')
69 ecldataanalysis.param(
'doTracking', 1)
70 ecldataanalysis.param(
'doDigits', 1)
71 main.add_module(ecldataanalysis)
73 main.add_module(
'Progress')