17 from simulation
import add_simulation
18 from reconstruction
import add_reconstruction
21 parser = argparse.ArgumentParser(
22 description=
"Tracking DQM Belle II for Phase 2 (Exp=1), Phase 3 Early (Exp=2) and Phase 3 regular (Exp=3)")
23 parser.add_argument(
'--experiment-type', dest=
'ExperimentType', action=
'store',
25 help=
'Set which experiment you want: 1 (Phase 2), 2 (Phase 3 Early) or 3 (Phase 3 regular), default = 2')
27 args = parser.parse_args()
29 print(
"Final setting of arguments: ")
30 print(
" ExperimentType: ", args.ExperimentType)
39 output_filename =
"RootOutput.root"
40 if (args.ExperimentType == 1):
41 output_filename =
"RootOutput_Phase2.root"
42 if (args.ExperimentType == 2):
43 output_filename =
"RootOutput_Phase3Early.root"
44 if (args.ExperimentType == 3):
45 output_filename =
"RootOutput_Phase3.root"
48 main = b2.create_path()
50 if (args.ExperimentType == 1):
52 main.add_module(
"EventInfoSetter", expList=1002, runList=1, evtNumList=num_events)
53 if (args.ExperimentType == 2):
55 main.add_module(
"EventInfoSetter", expList=1003, runList=1, evtNumList=num_events)
56 if (args.ExperimentType == 3):
58 main.add_module(
"EventInfoSetter", evtNumList=num_events)
64 main.add_module(
'EvtGenInput')
67 add_simulation(main, bkgfiles=bg)
70 add_reconstruction(main)
74 Histos_filename =
"Histos_DQMTracks.root"
75 if (args.ExperimentType == 1):
76 Histos_filename =
"Histos_DQMTracks_Phase2.root"
77 if (args.ExperimentType == 2):
78 Histos_filename =
"Histos_DQMTracks_Phase3Early.root"
79 if (args.ExperimentType == 3):
80 Histos_filename =
"Histos_DQMTracks_Phase3.root"
81 main.add_module(
'HistoManager', histoFileName=Histos_filename)
84 trackDQM = main.add_module(
'TrackDQM', debugLevel=250)