18 from simulation
import add_simulation
19 from reconstruction
import add_reconstruction
22 parser = argparse.ArgumentParser(
23 description=
"Tracking DQM Belle II for Phase 2 (Exp=1), Phase 3 Early (Exp=2) and Phase 3 regular (Exp=3)")
24 parser.add_argument(
'--experiment-type', dest=
'ExperimentType', action=
'store',
26 help=
'Set which experiment you want: 1 (Phase 2), 2 (Phase 3 Early) or 3 (Phase 3 regular), default = 2')
28 args = parser.parse_args()
30 print(
"Final setting of arguments: ")
31 print(
" ExperimentType: ", args.ExperimentType)
40 output_filename =
"RootOutput.root"
41 if (args.ExperimentType == 1):
42 output_filename =
"RootOutput_Phase2.root"
43 if (args.ExperimentType == 2):
44 output_filename =
"RootOutput_Phase3Early.root"
45 if (args.ExperimentType == 3):
46 output_filename =
"RootOutput_Phase3.root"
49 main = b2.create_path()
51 if (args.ExperimentType == 1):
53 main.add_module(
"EventInfoSetter", expList=1002, runList=1, evtNumList=num_events)
54 if (args.ExperimentType == 2):
56 main.add_module(
"EventInfoSetter", expList=1003, runList=1, evtNumList=num_events)
57 if (args.ExperimentType == 3):
59 main.add_module(
"EventInfoSetter", evtNumList=num_events)
65 main.add_module(
'EvtGenInput')
68 add_simulation(main, bkgfiles=bg)
71 add_reconstruction(main)
75 Histos_filename =
"Histos_DQMTracks.root"
76 if (args.ExperimentType == 1):
77 Histos_filename =
"Histos_DQMTracks_Phase2.root"
78 if (args.ExperimentType == 2):
79 Histos_filename =
"Histos_DQMTracks_Phase3Early.root"
80 if (args.ExperimentType == 3):
81 Histos_filename =
"Histos_DQMTracks_Phase3.root"
82 main.add_module(
'HistoManager', histoFileName=Histos_filename)
85 trackDQM = main.add_module(
'TrackDQM', debugLevel=250)