File indexing completed on 2024-04-06 12:01:47
0001
0002
0003 W_DIR=$(pwd);
0004
0005 SCRAM_ARCH=slc7_amd64_gcc900;
0006 export SCRAM_ARCH;
0007 source /afs/cern.ch/cms/cmsset_default.sh;
0008 eval `scram run -sh`;
0009
0010 cd $W_DIR;
0011
0012 if [ -d $W_DIR/plots_VCal ]; then
0013 rm -fr $W_DIR/plots_VCal
0014 fi
0015
0016 mkdir $W_DIR/plots_VCal
0017
0018 TAGA=SiPixelVCal_v1
0019 TAGB=SiPixelVCal_phase1_2021_v0
0020
0021
0022
0023 singleTagPlots=(SiPixelVCalValues SiPixelVCalSlopeValuesBarrel SiPixelVCalSlopeValuesEndcap SiPixelVCalOffsetValuesBarrel SiPixelVCalOffsetValuesEndcap)
0024
0025 for i in "${singleTagPlots[@]}"
0026 do
0027 echo "Processing: $i plot"
0028
0029 getPayloadData.py \
0030 --plugin pluginSiPixelVCal_PayloadInspector \
0031 --plot plot_${i} \
0032 --tag $TAGA \
0033 --time_type Run \
0034 --iovs '{"start_iov": "1", "end_iov": "1"}' \
0035 --db Prep \
0036 --test;
0037
0038 mv *.png $W_DIR/plots_VCal/${i}.png
0039 done
0040
0041 twoTagPlots=(SiPixelVCalSlopesBarrelCompareTwoTags SiPixelVCalOffsetsBarrelCompareTwoTags SiPixelVCalSlopesEndcapCompareTwoTags SiPixelVCalOffsetsEndcapCompareTwoTags SiPixelVCalSlopesComparisonTwoTags SiPixelVCalOffsetsComparisonTwoTags)
0042
0043 for j in "${twoTagPlots[@]}"
0044 do
0045 echo "Processing: $j plot"
0046
0047 getPayloadData.py \
0048 --plugin pluginSiPixelVCal_PayloadInspector \
0049 --plot plot_${j} \
0050 --tag $TAGA \
0051 --tagtwo $TAGB \
0052 --time_type Run \
0053 --iovs '{"start_iov": "1", "end_iov": "1"}' \
0054 --iovstwo '{"start_iov": "1", "end_iov": "1"}' \
0055 --db Prep \
0056 --test;
0057
0058 mv *.png $W_DIR/plots_VCal/${j}.png
0059 done