Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:23

0001 #!/bin/bash
0002 
0003 # Save current working dir so img can be outputted there later
0004 W_DIR=$(pwd);
0005 
0006 # Set SCRAM architecture var
0007 SCRAM_ARCH=slc6_amd64_gcc530; 
0008 export SCRAM_ARCH;
0009 
0010 cd $W_DIR;
0011 source /afs/cern.ch/cms/cmsset_default.sh;
0012 eval `scram run -sh`;
0013 
0014 mkdir -p $W_DIR/results_APE
0015 
0016 matrixelements=(XX YY ZZ XY XZ YZ)
0017 
0018 for i in "${matrixelements[@]}"
0019 do
0020     echo "Processing: $i element"
0021     
0022     #*************************************************************************#
0023 
0024     getPayloadData.py  \
0025         --plugin pluginTrackerAlignmentErrorExtended_PayloadInspector \
0026         --plot plot_TrackerAlignmentErrorExtended${i}Summary \
0027         --tag  TrackerAlignmentExtendedErr_2009_v2_express_IOVs \
0028         --time_type Run \
0029         --iovs '{"start_iov": "298759", "end_iov": "298759"}' \
0030         --db Prod \
0031         --test;
0032 
0033     mv *.png $W_DIR/results_APE/TrackerAlignmentErrorExtended${i}Summary.png
0034     
0035     #*************************************************************************#
0036 
0037     getPayloadData.py  \
0038         --plugin pluginTrackerAlignmentErrorExtended_PayloadInspector \
0039         --plot plot_TrackerAlignmentErrorExtended${i}Value \
0040         --tag  TrackerAlignmentExtendedErr_2009_v2_express_IOVs \
0041         --time_type Run \
0042         --iovs '{"start_iov": "1", "end_iov": "1"}' \
0043         --db Prod \
0044         --test;
0045 
0046     #*************************************************************************#
0047     
0048     getPayloadData.py  \
0049         --plugin pluginTrackerAlignmentErrorExtended_PayloadInspector \
0050         --plot plot_TrackerAlignmentErrorExtended${i}TrackerMap \
0051         --tag  TrackerAlignmentExtendedErr_2009_v2_express_IOVs \
0052         --time_type Run \
0053         --iovs '{"start_iov": "298759", "end_iov": "298759"}' \
0054         --db Prod \
0055         --test;
0056     
0057     mv *.png $W_DIR/results_APE/TrackerAlignmentErrorExtended${i}TrackerMap.png
0058     
0059     #*************************************************************************#
0060 
0061     getPayloadData.py  \
0062         --plugin pluginTrackerAlignmentErrorExtended_PayloadInspector \
0063         --plot plot_TrackerAlignmentErrorExtended${i}Comparator \
0064         --tag TrackerAlignmentExtendedErrors_v9_offline_IOVs \
0065         --time_type Run \
0066         --iovs '{"start_iov": "283681", "end_iov": "303886"}' \
0067         --db Prod \
0068         --test;
0069 
0070     mv *.png $W_DIR/results_APE/TrackerAlignmentErrorExtended_${i}_Comparison.png
0071 
0072     #*************************************************************************#
0073 
0074 done
0075 
0076 partitions=(BPix FPix TIB TOB TID)
0077 
0078 for i in "${partitions[@]}"
0079 do 
0080     echo "Processing $i partition"
0081 
0082     getPayloadData.py  \
0083         --plugin pluginTrackerAlignmentErrorExtended_PayloadInspector \
0084         --plot plot_TrackerAlignmentErrorExtended${i}Detail \
0085         --tag TrackerAlignmentExtendedErr_2009_v2_express_IOVs \
0086         --time_type Run \
0087         --iovs '{"start_iov": "1", "end_iov": "1"}' \
0088         --db Prod \
0089         --test;
0090 
0091     mv *.png $W_DIR/results_APE/TrackerAlignmentErrorExtended${i}Detail.png
0092 
0093 done
0094 
0095 #*************************************************************************#
0096 # test two tags comparison
0097 #*************************************************************************#
0098 
0099 getPayloadData.py \
0100     --plugin pluginTrackerAlignmentErrorExtended_PayloadInspector \
0101     --plot plot_TrackerAlignmentErrorExtendedXXComparatorTwoTags \
0102     --tag TrackerAlignmentExtendedErrors_2016_ultralegacymc_v1 \
0103     --tagtwo TrackerAlignmentExtendedErrors_2016_ultralegacymc_preVFP_v1 \
0104     --time_type Run \
0105     --iovs '{"start_iov": "1", "end_iov": "1"}' \
0106     --iovstwo '{"start_iov": "1", "end_iov": "1"}' \
0107     --db Prod \
0108     --test;