File indexing completed on 2024-04-06 12:01:31
0001
0002
0003 if [ "$1" == "run" ]
0004 then
0005 mkdir -p CondCore/CTPPSPlugins/test/results
0006 if [ -f *.png ]; then
0007 rm *.png
0008 fi
0009
0010
0011 echo "Testing history plots"
0012
0013 for db in 0
0014 do
0015 for station in 1
0016 do
0017 for pl in 0
0018 do
0019 for ch in 0
0020 do
0021 for param in 0
0022 do
0023 python3 CondCore/Utilities/scripts/getPayloadData.py \
0024 --plugin pluginPPSTimingCalibration_PayloadInspector \
0025 --plot plot_PPSTimingCalibration_history_htdc_calibration_param${param} \
0026 --input_params '{"db (0,1)":"'${db}'","station (1,2)":"'${station}'", "plane (0-3)":"'${pl}'", "channel (0-11)":"'${ch}'"}' \
0027 --tag CTPPPSTimingCalibration_HPTDC_byPCL_v0_prompt \
0028 --time_type Run \
0029 --iovs '{"start_iov": "357079", "end_iov": "357079"}' \
0030 --db Prod \
0031 --test 2> CondCore/CTPPSPlugins/test/results/data_history__db${db}st${station}pl${pl}ch${ch}_param${param}.json
0032 done
0033 done
0034 done
0035 done
0036 done
0037
0038 python3 CondCore/CTPPSPlugins/test/graph_check.py
0039
0040 for db in 0
0041 do
0042 for station in 1
0043 do
0044 for pl in 0
0045 do
0046 for param in 0
0047 do
0048 getPayloadData.py \
0049 --plugin pluginPPSTimingCalibration_PayloadInspector \
0050 --plot plot_PPSTimingCalibration_htdc_calibration_param${param}_per_channels \
0051 --input_params '{"db (0,1)":"'${db}'","station (1,2)":"'${station}'", "plane (0-3)":"'${pl}'"}' \
0052 --tag CTPPPSTimingCalibration_HPTDC_byPCL_v1_prompt \
0053 --time_type Run \
0054 --iovs '{"start_iov": "370092", "end_iov": "370092"}' \
0055 --db Prod \
0056 --test
0057 mv *.png CondCore/CTPPSPlugins/test/results/plot_PPSTimingCalibration_db${db}pl${pl}param${param}_per_channels.png
0058 done
0059 done
0060 done
0061 done
0062
0063
0064 elif [ "$1" == "clear" ]
0065 then
0066 rm -rf CondCore/CTPPSPlugins/test/results
0067
0068 else
0069 echo "Wrong option"
0070 fi