File indexing completed on 2023-03-17 10:45:58
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 echo "Testing Alignment Configuration txt-png"
0011
0012 python3 CondCore/Utilities/scripts/getPayloadData.py \
0013 --plugin pluginPPSAlignmentConfiguration_PayloadInspector \
0014 --plot plot_PPSAlignmentConfig_Payload_TextInfo \
0015 --tag PPSAlignmentConfiguration_v1_express \
0016 --time_type Run \
0017 --iovs '{"start_iov": "303615", "end_iov": "314247"}' \
0018 --db Prod \
0019 --test
0020 mv *.png CondCore/CTPPSPlugins/test/results/PPSAlignmentConfig_Payload_TextInfo.png
0021
0022
0023 echo "Testing history plots for AlignmentDataCorrections"
0024
0025 for rp in 3 23 103 123
0026 do
0027 for shift in x y
0028 do
0029 python3 CondCore/Utilities/scripts/getPayloadData.py \
0030 --plugin pluginCTPPSRPAlignmentCorrectionsData_PayloadInspector \
0031 --plot plot_RPShift_History_RP${rp}_${shift} \
0032 --tag CTPPSRPAlignment_real_offline_v8 \
0033 --time_type Run \
0034 --iovs '{"start_iov": "322355", "end_iov": "322355"}' \
0035 --db Prod \
0036 --test 2> CondCore/CTPPSPlugins/test/results/RPShift_History_RP${rp}_${shift}Shift.json
0037 done
0038 done
0039
0040 echo "Testing history plots for AlignmentDataCorrections Uncertainty"
0041
0042 for rp in 3 23 103 123
0043 do
0044 for shift in x y
0045 do
0046 python3 CondCore/Utilities/scripts/getPayloadData.py \
0047 --plugin pluginCTPPSRPAlignmentCorrectionsData_PayloadInspector \
0048 --plot plot_RPShift_History_RP${rp}_${shift}_uncertainty \
0049 --tag CTPPSRPAlignment_real_offline_v8 \
0050 --time_type Run \
0051 --iovs '{"start_iov": "322355", "end_iov": "322355"}' \
0052 --db Prod \
0053 --test 2> CondCore/CTPPSPlugins/test/results/RPShift_History_RP${rp}_${shift}Shift_Unc.json
0054 done
0055 done
0056
0057 python3 CondCore/CTPPSPlugins/test/graph_check.py
0058
0059 elif [ "$1" == "clear" ]
0060 then
0061 rm -rf CondCore/CTPPSPlugins/test/results
0062
0063 else
0064 echo "Wrong option"
0065 fi