17from simulation
import add_simulation
18from reconstruction
import add_reconstruction
21parser = argparse.ArgumentParser(
22 description=
"Tracking DQM Belle II for early phase 3 (Exp=1) and nominal phase 3 (Exp=2)")
23parser.add_argument(
'--experiment-type', dest=
'ExperimentType', action=
'store',
25 help=
'Set which experiment you want: 1 (early phase 3) or 2 (nominal phase 3), default = 2')
27args = parser.parse_args()
29if args.ExperimentType
not in [1, 2]:
31 print(
"Parameter experiment-type must be either 1 (early phase 3) "
32 f
"or 2 (nominal phase 3, default), but you set {args.ExperimentType}. Exiting.")
39main = b2.create_path()
41if (args.ExperimentType == 1):
43 main.add_module(
"EventInfoSetter", expList=1003, runList=1, evtNumList=num_events)
44elif (args.ExperimentType == 2):
46 main.add_module(
"EventInfoSetter", evtNumList=num_events)
49b2.set_random_seed(
'some_seed')
52main.add_module(
'EvtGenInput')
55add_simulation(main, bkgfiles=
None)
58add_reconstruction(main)
63if (args.ExperimentType == 1):
64 Histos_filename =
"Histos_DQMTracks_Phase3Early.root"
65elif (args.ExperimentType == 2):
66 Histos_filename =
"Histos_DQMTracks_Phase3.root"
67main.add_module(
'HistoManager', histoFileName=Histos_filename)
70trackDQM = main.add_module(
'TrackDQM', debugLevel=250)
76if (args.ExperimentType == 1):
77 output_filename =
"RootOutput_Phase3Early.root"
78elif (args.ExperimentType == 2):
79 output_filename =
"RootOutput_Phase3.root"
80main.add_module(
"RootOutput", outputFileName=output_filename)
82main.add_module(
'Progress')