12from simulation
import add_simulation
13from reconstruction
import add_reconstruction
15import PXDROIUnpackerModule
19parser = argparse.ArgumentParser(
20 description=
"VXD DQM Belle II for Phase 2 (Exp=1), Phase 3 Early (Exp=2) and Phase 3 regular (Exp=3), show all possible histos")
21parser.add_argument(
'--experiment-type', dest=
'ExperimentType', action=
'store',
23 help=
'Set which experiment you want: 1 (Phase 2), 2 (Phase 3 Early) or 3 (Phase 3 regular), default = 2')
25args = parser.parse_args()
27print(
"Final setting of arguments: ")
28print(
" ExperimentType: ", args.ExperimentType)
37output_filename =
"RootOutput.root"
38if (args.ExperimentType == 1):
39 output_filename =
"RootOutput_Phase2.root"
40if (args.ExperimentType == 2):
41 output_filename =
"RootOutput_Phase3Early.root"
42if (args.ExperimentType == 3):
43 output_filename =
"RootOutput_Phase3.root"
46main = b2.create_path()
48if (args.ExperimentType == 1):
50 main.add_module(
"EventInfoSetter", expList=1002, runList=1, evtNumList=num_events)
51if (args.ExperimentType == 2):
53 main.add_module(
"EventInfoSetter", expList=1003, runList=1, evtNumList=num_events)
54if (args.ExperimentType == 3):
56 main.add_module(
"EventInfoSetter", evtNumList=num_events)
62main.add_module(
'EvtGenInput')
65add_simulation(main, bkgfiles=bg)
71PXDPACKER = b2.register_module(
'PXDPacker')
75PXDPACKER.param(
'dhe_to_dhc', [
76 [0, 2, 4, 34, 36, 38],
77 [1, 6, 8, 40, 42, 44],
78 [2, 10, 12, 46, 48, 50],
79 [3, 14, 16, 52, 54, 56],
80 [4, 3, 5, 35, 37, 39],
81 [5, 7, 9, 41, 43, 45],
82 [6, 11, 13, 47, 49, 51],
83 [7, 15, 17, 53, 55, 57],
85main.add_module(PXDPACKER)
87main.add_module(
'PXDUnpacker')
88'''Unpack ROIs from ONSEN output'''
90'''Unpack ROIs from HLT Payload (depends if there are in the sroot file)'''
94add_reconstruction(main)
98Histos_filename =
"Histos_DQMVXD.root"
99if (args.ExperimentType == 1):
100 Histos_filename =
"Histos_DQMVXD_Phase2.root"
101if (args.ExperimentType == 2):
102 Histos_filename =
"Histos_DQMVXD_Phase3Early.root"
103if (args.ExperimentType == 3):
104 Histos_filename =
"Histos_DQMVXD_Phase3.root"
105main.add_module(
'HistoManager', histoFileName=Histos_filename)
107main.add_module(
'PXDDAQDQM', histogramDirectoryName=
'PXDDAQ')
108main.add_module(
'PXDDQMClusters', histogramDirectoryName=
'PXDCls')
109main.add_module(
'PXDDQMCorr', histogramDirectoryName=
'PXDCor')
110main.add_module(
'PXDDQMEfficiency', histogramDirectoryName=
'PXDEff')
112main.add_module(
'PXDRawDQMChips', histogramDirectoryName=
'PXDRCh')
113main.add_module(
'PXDRawDQMCorr', histogramDirectoryName=
'PXDRCo')
114main.add_module(
'PXDRawDQM', histogramDirectoryName=
'PXDRaw')
115main.add_module(
'PXDROIDQM', histogramDirectoryName=
'PXDROI')
117pxddqmExpReco = b2.register_module(
'PXDDQMExpressReco')
118svddqmExpReco = b2.register_module(
'SVDDQMExpressReco')
119vxddqmExpReco = b2.register_module(
'VXDDQMExpressReco')
121main.add_module(pxddqmExpReco)
122main.add_module(svddqmExpReco)
123main.add_module(vxddqmExpReco)
126trackDQM = main.add_module(
'TrackDQM')