4 Validation of PXD hot/dead pixel calibration.
9 from prompt
import ValidationSettings
18 settings = ValidationSettings(name=
'PXD hot/dead pixel calibration',
20 download_files=[
'PXDRawHotPixelMaskCollectordebug.root',
'stdout'],
24 def run_validation(job_path, input_data_path, requested_iov, expert_config):
29 txt_files = glob(f
"{job_path}/*PXDHot*/outputdb/database.txt")
30 cmds = [
"b2pxd-db-check",
"--only-hist",
"--maps",
31 "PXDMaskedPixelPar",
"PXDDeadPixelPar",
"PXDOccupancyInfoPar"]
32 for txt_file
in txt_files:
33 iov_entries = parse_testing_payloads_file(txt_file)
34 exp = iov_entries[0].firstRun[
"exp"]
35 run = iov_entries[0].firstRun[
"run"]
36 cmds_add = [
"--tag", txt_file,
37 "--exp", f
"{exp}",
"--runs", f
"{run}-9999",
38 "-o", f
"conditions_e{exp}_r{run}.root"]
39 subprocess.run(cmds + cmds_add, check=
True)
42 if __name__ ==
"__main__":
43 run_validation(*sys.argv[1:])