14 b2.set_log_level(b2.LogLevel.INFO)
16 input = b2.register_module(
'RootInput')
17 input.param(
'inputFileName',
'PXDRawHit.root')
19 input.param(
'branchNames', [
'EventMetaData',
'PXDDigits',
'PXDDigit'])
29 histoman = b2.register_module(
'HistoManager')
30 histoman.param(
'histoFileName',
'your_histo_file.root')
32 packer = b2.register_module(
'PXDPacker')
35 packer.param(
'dhe_to_dhc', [
36 [0, 2, 4, 34, 36, 38],
37 [1, 6, 8, 40, 42, 44],
38 [2, 10, 12, 46, 48, 50],
39 [3, 14, 16, 52, 54, 56],
40 [4, 3, 5, 35, 37, 39],
41 [5, 7, 9, 41, 43, 45],
42 [6, 11, 13, 47, 49, 51],
43 [7, 15, 17, 53, 55, 57],
54 unpacker = b2.register_module(
'PXDUnpacker')
56 simpleoutput = b2.register_module(
'RootOutput')
57 simpleoutput.param(
'outputFileName',
'Output.root')
60 gearbox = b2.register_module(
'Gearbox')
63 geometry = b2.register_module(
'Geometry')
67 geometry.param(
'components', [
'PXD'])
71 main = b2.create_path()
72 main.add_module(input)
73 main.add_module(gearbox)
74 main.add_module(geometry)
78 main.add_module(histoman)
79 main.add_module(packer)
80 main.add_module(unpacker)
81 main.add_module(
'PXDDAQDQM')
84 main.add_module(
'Progress')
85 main.add_module(simpleoutput)