13 SVD Local Calibration CHECK Script
15 > basf2 SVDLOcalCalibrationsCheck.py -- --ref REF --check CHECK
23 parser = argparse.ArgumentParser(description=
"SVD Calibration Check against a Reference")
24 parser.add_argument(
'--ref', metavar=
'reference', dest=
'ref', type=str, nargs=1, help=
'Reference rootfile')
25 parser.add_argument(
'--check', metavar=
'check', dest=
'check', type=str, nargs=1, help=
'Calibration to check rootfile')
27 args = parser.parse_args()
29 main = b2.create_path()
32 the_check = args.check[0]
34 eventinfosetter = b2.register_module(
'EventInfoSetter')
35 eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
36 main.add_module(eventinfosetter)
37 main.add_module(
"Gearbox")
38 main.add_module(
"Geometry")
40 mod = b2.register_module(
"SVDLocalCalibrationsCheck")
42 mod.param(
'reference_root', str(the_ref))
43 mod.param(
'check_root', str(the_check))
44 mod.param(
'outputPdfName',
'SVDLocalCalibrationsCheck.pdf')
45 mod.param(
'cutN_outliers', 5)
46 mod.param(
'cutNoise_average', 0.1)
47 mod.param(
'cutNoise_outliers', 0.3)
48 mod.param(
'cutCalPeakADC_average', 0.015)
49 mod.param(
'cutCalPeakADC_outliers', 0.3)
50 mod.param(
'cutPedestal_average', 0.02)
51 mod.param(
'cutPedestal_outliers', 0.3)