14b2.set_log_level(b2.LogLevel.INFO)
16input = b2.register_module(
'RootInput')
17input.param(
'inputFileName',
'PXDRawHit.root')
19input.param(
'branchNames', [
'EventMetaData',
'PXDDigits',
'PXDDigit'])
29histoman = b2.register_module(
'HistoManager')
30histoman.param(
'histoFileName',
'your_histo_file.root')
32packer = b2.register_module(
'PXDPacker')
35packer.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],
54unpacker = b2.register_module(
'PXDUnpacker')
56simpleoutput = b2.register_module(
'RootOutput')
57simpleoutput.param(
'outputFileName',
'Output.root')
60gearbox = b2.register_module(
'Gearbox')
63geometry = b2.register_module(
'Geometry')
67geometry.param(
'components', [
'PXD'])
71main = b2.create_path()
73main.add_module(gearbox)
74main.add_module(geometry)
78main.add_module(histoman)
79main.add_module(packer)
80main.add_module(unpacker)
81main.add_module(
'PXDDAQDQM')
84main.add_module(
'Progress')
85main.add_module(simpleoutput)