20import generators
as gen
21import simulation
as sim
23bklm_dataObjects = [
'BKLMDigits',
24 'BKLMDigitOutOfRanges',
32main = basf2.create_path()
35main.add_module(
'EventInfoSetter',
39main.add_module(
'Progress')
40main.add_module(
'ProgressBar')
43 gen.add_kkmc_generator(path=main,
46 main.add_module(
'ParticleGun',
49 momentumGeneration=
'fixed',
51 thetaGeneration=
'uniform',
52 thetaParams=[37, 130])
55main.add_module(
'Gearbox')
56main.add_module(
'Geometry',
59sim.add_simulation(path=main,
63main.add_module(
'KLMPacker')
64main.add_module(
'KLMUnpacker',
68main.add_module(
'BKLMDigitAnalyzer',
69 outputRootName=
'bklmHitmap')
72main.add_module(
'KLMReconstructor')
75main.add_module(
'BKLMTracking',
77 outputName=
'bklmEfficiency.root')
80main.add_module(
'RootOutput',
81 outputFileName=
'bklm_dataObjects.root',
82 branchNames=bklm_dataObjects,
83 branchNamesPersistent=
'FileMetaData')
87print(basf2.statistics)