10 from simulation
import add_simulation
11 from reconstruction
import add_reconstruction
12 from L1trigger
import add_tsim
16 parser = argparse.ArgumentParser(
17 description=
"Tracking DQM Belle II for Phase 2 (Exp=1), Phase 3 Early (Exp=2) and Phase 3 regular (Exp=3)")
18 parser.add_argument(
'--experiment-type', dest=
'ExperimentType', action=
'store',
20 help=
'Set which experiment you want: 1 (Phase 2), 2 (Phase 3 Early) or 3 (Phase 3 regular), default = 2')
22 args = parser.parse_args()
24 print(
"Final setting of arguments: ")
25 print(
" ExperimentType: ", args.ExperimentType)
34 output_filename =
"RootOutput.root"
35 if (args.ExperimentType
is 1):
36 output_filename =
"RootOutput_Phase2.root"
37 if (args.ExperimentType
is 2):
38 output_filename =
"RootOutput_Phase3Early.root"
39 if (args.ExperimentType
is 3):
40 output_filename =
"RootOutput_Phase3.root"
45 if (args.ExperimentType
is 1):
47 main.add_module(
"EventInfoSetter", expList=1002, runList=1, evtNumList=num_events)
48 if (args.ExperimentType
is 2):
50 main.add_module(
"EventInfoSetter", expList=1003, runList=1, evtNumList=num_events)
51 if (args.ExperimentType
is 3):
53 main.add_module(
"EventInfoSetter", evtNumList=num_events)
59 main.add_module(
'EvtGenInput')
62 add_simulation(main, bkgfiles=bg)
68 add_reconstruction(main)
72 Histos_filename =
"Histos_DQMTracks.root"
73 if (args.ExperimentType
is 1):
74 Histos_filename =
"Histos_DQMTracks_Phase2.root"
75 if (args.ExperimentType
is 2):
76 Histos_filename =
"Histos_DQMTracks_Phase3Early.root"
77 if (args.ExperimentType
is 3):
78 Histos_filename =
"Histos_DQMTracks_Phase3.root"
79 main.add_module(
'HistoManager', histoFileName=Histos_filename)
82 trackDQM = main.add_module(
'TrackDQM', debugLevel=250)