11"""This steering file shows how to use 'ECLHitDebug'
12 module to dump ECL-related quantities in an ntuple.
18 Root file named
'Output.root'
21 $ basf2 EclHitDebug.py
25from simulation import add_simulation
26from reconstruction import add_tracking_reconstruction
27from reconstruction import add_ecl_modules
30# Create path. Register necessary modules to this path.
31mainPath = b2.create_path()
33b2.set_log_level(b2.LogLevel.ERROR)
35# Register and add 'EventInfoSetter' module and settings
36eventInfoSetter = b2.register_module('EventInfoSetter')
37eventInfoSetter.param({'evtNumList': [3],
40mainPath.add_module(eventInfoSetter)
43eventInfoPrinter = b2.register_module(
'EventInfoPrinter')
44mainPath.add_module(eventInfoPrinter)
48gearbox = b2.register_module(
'Gearbox')
51geometry = b2.register_module(
'Geometry')
54g4sim = b2.register_module(
'FullSim')
57b2.set_random_seed(123456)
60particleGun = b2.register_module(
'ParticleGun')
62 'pdgCodes': [22, 111],
64 'momentumGeneration':
'uniform',
65 'momentumParams': [1., 2.],
66 'thetaGeneration':
'uniform',
67 'thetaParams': [50., 130.],
68 'phiGeneration':
'uniform',
69 'phiParams': [0, 360.],
70 'vertexGeneration':
'uniform',
71 'xVertexParams': [0.0, 0.0],
72 'yVertexParams': [0.0, 0.0],
73 'zVertexParams': [0.0, 0.0],
75particleGun.param(param_particleGun)
76mainPath.add_module(particleGun)
79eclDigitizer = b2.register_module(
'ECLDigitizer')
80mainPath.add_module(eclDigitizer)
83eclHitDebug = b2.register_module(
'ECLHitDebug')
84mainPath.add_module(eclHitDebug)
87mcMatcherECLClusters = b2.register_module(
'MCMatcherECLClusters')
90add_simulation(mainPath)
93add_tracking_reconstruction(mainPath)
96add_ecl_modules(mainPath)
99outputFile = b2.register_module(
'RootOutput')
100outputFile.param(
'outputFileName',
'Output.root')
101mainPath.add_module(outputFile)
104mainPath.add_module(
'Progress')