14 <output>TOPNtupleRecoTest.root</output>
15 <contact>marko.staric@ijs.si</contact>
16 <description>Makes a flat ntuple for validation of top reconstruction </description>
28 b2.set_log_level(b2.LogLevel.ERROR)
30 b2.set_random_seed(123452)
33 main = b2.create_path()
36 eventinfosetter = b2.register_module(
'EventInfoSetter')
37 eventinfosetter.param(
'evtNumList', [10000])
38 main.add_module(eventinfosetter)
41 gearbox = b2.register_module(
'Gearbox')
42 main.add_module(gearbox)
45 geometry = b2.register_module(
'Geometry')
46 geometry.param(
'useDB',
False)
47 geometry.param(
'components', [
'MagneticField',
'TOP'])
48 main.add_module(geometry)
51 particlegun = b2.register_module(
'ParticleGun')
52 particlegun.param(
'pdgCodes', [211, -211, 321, -321])
53 particlegun.param(
'nTracks', 1)
54 particlegun.param(
'varyNTracks',
False)
55 particlegun.param(
'momentumGeneration',
'fixed')
56 particlegun.param(
'momentumParams', [3])
57 particlegun.param(
'thetaGeneration',
'uniformCos')
58 particlegun.param(
'thetaParams', [30, 122])
59 particlegun.param(
'phiGeneration',
'uniform')
60 particlegun.param(
'phiParams', [0, 360])
61 particlegun.param(
'vertexGeneration',
'fixed')
62 particlegun.param(
'xVertexParams', [0])
63 particlegun.param(
'yVertexParams', [0])
64 particlegun.param(
'zVertexParams', [0])
65 main.add_module(particlegun)
68 simulation = b2.register_module(
'FullSim')
69 main.add_module(simulation)
72 topdigi = b2.register_module(
'TOPDigitizer')
73 main.add_module(topdigi)
76 trackmaker = b2.register_module(
'TOPMCTrackMaker')
77 main.add_module(trackmaker)
80 main.add_module(
'TOPChannelMasker')
83 topreco = b2.register_module(
'TOPReconstructor')
84 main.add_module(topreco)
87 output = b2.register_module(
'TOPNtuple')
88 output.param(
'outputFileName',
'../TOPNtupleRecoTest.root')
89 main.add_module(output)
92 main.add_module(
'Progress')