13parser = argparse.ArgumentParser(
14 epilog=
"About nevt: when asking N events per file, the histograms from that "
15 "file are sent multiple times to the analysis module. Each time, they "
16 "are scaled by i/N, where i is the iteration number.")
17parser.add_argument(
"files", nargs=
"+", help=
"Input root files with histograms")
18parser.add_argument(
"-e",
"--exp", type=int, default=1, help=
"Experiment number")
19parser.add_argument(
"-r",
"--run", type=int, default=1, help=
"Run number")
20parser.add_argument(
"-n",
"--nevt", type=int, default=1, help=
"Events per file")
21args = parser.parse_args()
23main = b2.create_path()
26 'DQMHistAnalysisInputRootFile', SelectHistograms=[
'SVDDose*'],
27 FileList=args.files, RunList=[args.run] * len(args.files),
28 EventsList=[args.nevt] * len(args.files), Experiment=args.exp,
29 EventInterval=1, NullHistogramMode=
False)
33 'DQMHistAnalysisSVDDose', logLevel=b2.LogLevel.DEBUG, debugLevel=19,
37 'DQMHistAnalysisOutputFile', SaveHistos=
False, SaveCanvases=
True,
38 HistoFile=f
"analysis_E{args.exp:04d}R{args.run:05d}.root")
41 'DQMHistAnalysisOutputMonObj',
42 Filename=f
"mirabelle_E{args.exp:04d}R{args.run:05d}.root")