12 """This steering file shows how to use 'ECLHitDebug'
13 module to dump ECL-related quantities in an ntuple.
19 Root file named 'Output.root'
22 $ basf2 EclHitDebug.py
26 from simulation
import add_simulation
27 from reconstruction
import add_tracking_reconstruction
28 from reconstruction
import add_ecl_modules
32 mainPath = b2.create_path()
34 b2.set_log_level(b2.LogLevel.ERROR)
37 eventInfoSetter = b2.register_module(
'EventInfoSetter')
38 eventInfoSetter.param({
'evtNumList': [3],
41 mainPath.add_module(eventInfoSetter)
44 eventInfoPrinter = b2.register_module(
'EventInfoPrinter')
45 mainPath.add_module(eventInfoPrinter)
49 gearbox = b2.register_module(
'Gearbox')
52 geometry = b2.register_module(
'Geometry')
55 g4sim = b2.register_module(
'FullSim')
58 b2.set_random_seed(123456)
61 particleGun = b2.register_module(
'ParticleGun')
63 'pdgCodes': [22, 111],
65 'momentumGeneration':
'uniform',
66 'momentumParams': [1., 2.],
67 'thetaGeneration':
'uniform',
68 'thetaParams': [50., 130.],
69 'phiGeneration':
'uniform',
70 'phiParams': [0, 360.],
71 'vertexGeneration':
'uniform',
72 'xVertexParams': [0.0, 0.0],
73 'yVertexParams': [0.0, 0.0],
74 'zVertexParams': [0.0, 0.0],
76 particleGun.param(param_particleGun)
77 mainPath.add_module(particleGun)
80 eclDigitizer = b2.register_module(
'ECLDigitizer')
81 mainPath.add_module(eclDigitizer)
84 eclHitDebug = b2.register_module(
'ECLHitDebug')
85 mainPath.add_module(eclHitDebug)
88 mcMatcherECLClusters = b2.register_module(
'MCMatcherECLClusters')
91 add_simulation(mainPath)
94 add_tracking_reconstruction(mainPath)
97 add_ecl_modules(mainPath)
100 outputFile = b2.register_module(
'RootOutput')
101 outputFile.param(
'outputFileName',
'Output.root')
102 mainPath.add_module(outputFile)
105 mainPath.add_module(
'Progress')