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')
60main = b2.create_path()
65main.add_module(histoman)
66main.add_module(packer)
67main.add_module(unpacker)
68main.add_module(
'PXDRawDQM')
69main.add_module(
'PXDROIDQM')
70main.add_module(
'Progress')
71main.add_module(simpleoutput)