5baseConfig.parser.add_argument(
"-w",
"--tracking", dest=
"tracking", default=
"KF")
7args = baseConfig.parser.parse_args()
10histo_file = args.inFilename[0]
11out_file = args.outFilename[0]
13print(
'Histo file: %s' % histo_file)
14print(
'Out file: %s' % out_file)
19p.skip_events = options.skip_events
20p.max_events = options.nevents
25p.add_library(
"libprocessors")
37vtxPostProc.parameters[
"debug"] = 1
38vtxPostProc.parameters[
"rebin"] = 4
42if (args.tracking ==
"KF"):
43 vtxPostProc.parameters[
"selections"] = [
"vtxana_Tight"]
44elif (args.tracking ==
"GBL"):
45 vtxPostProc.parameters[
"selections"] = [
"vtxana_Tight"]
47 print(
"Error specify -w KF or -w GBL")
51vtxPostProc.parameters[
"projections"] = [
"ele_d0_vs_p_hh",
"pos_d0_vs_p_hh",
52 "ele_z0_vs_p_hh",
"pos_z0_vs_p_hh",
53 "vtx_InvM_vtx_svt_z_hh",
"vtx_p_svt_z_hh"]
57p.sequence = [vtxPostProc]
59p.input_files = [histo_file]
60p.output_files = [out_file]