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_alignments
0015 
0016 #*************************************************************************#
0017 elements=(X Y Z Alpha Beta Gamma)
0018 
0019 for i in "${elements[@]}"
0020 do
0021     echo "Processing: $i coordinate"
0022 
0023     getPayloadData.py  \
0024         --plugin pluginTrackerAlignment_PayloadInspector \
0025         --plot plot_TrackerAlignmentCompare${i} \
0026         --tag TrackerAlignment_PCL_byRun_v2_express \
0027         --time_type Run \
0028         --iovs '{"start_iov": "303809", "end_iov": "303886"}' \
0029         --db Prod \
0030         --test;
0031 
0032     mv *.png $W_DIR/results_alignments/TrackerAlignmentCompare${i}.png
0033 
0034 done
0035 
0036 #*************************************************************************#
0037 elements=(BPix FPix TIB TOB TID TEC)
0038 
0039 for i in "${elements[@]}"
0040 do
0041     echo "Processing: $i partition"
0042     
0043     getPayloadData.py  \
0044         --plugin pluginTrackerAlignment_PayloadInspector \
0045         --plot plot_TrackerAlignmentSummary${i} \
0046         --tag TrackerAlignment_PCL_byRun_v2_express \
0047         --time_type Run \
0048         --iovs '{"start_iov": "303809", "end_iov": "303886"}' \
0049         --db Prod \
0050         --test;
0051     
0052     mv *.png $W_DIR/results_alignments/TrackerAlignmentSummary${i}.png
0053 done
0054 
0055 #*************************************************************************#
0056 elements=(X Y Z)
0057 
0058 for i in "${elements[@]}"
0059 do
0060     echo "Processing: $i partition"
0061     
0062     getPayloadData.py  \
0063         --plugin pluginTrackerAlignment_PayloadInspector \
0064         --plot plot_${i}_BPixBarycenterHistory \
0065         --tag TrackerAlignment_v21_offline\
0066         --time_type Run \
0067         --iovs '{"start_iov": "294034", "end_iov": "305898"}' \
0068         --db Prod \
0069         --test;
0070     
0071 done
0072 
0073 # add example of single IOV barycenter dump
0074 #*************************************************************************#
0075 getPayloadData.py \
0076     --plugin pluginTrackerAlignment_PayloadInspector \
0077     --plot plot_TrackerAlignmentBarycenters \
0078     --tag TrackerAlignment_Upgrade2017_realistic_v3 \
0079     --time_type Run \
0080     --iovs '{"start_iov": "1", "end_iov": "1"}' \
0081     --db Prod \
0082     --test ;
0083 
0084 mv *.png $W_DIR/results_alignments/TrackerAlignmentBarycenters.png
0085 
0086 # add examples of Pixel barycenter comparison
0087 #*************************************************************************#
0088 getPayloadData.py \
0089     --plugin pluginTrackerAlignment_PayloadInspector \
0090     --plot plot_PixelBarycentersCompare \
0091     --tag TrackerAlignment_v28_offline \
0092     --time_type Run \
0093     --iovs '{"start_iov": "250000", "end_iov": "300000"}' \
0094     --db Prod \
0095     --test ;
0096 
0097 mv *.png $W_DIR/results_alignments/PixelBarycentersCompare.png
0098 
0099 getPayloadData.py \
0100     --plugin pluginTrackerAlignment_PayloadInspector \
0101     --plot plot_PixelBarycentersCompareTwoTags \
0102     --tag TrackerAlignment_Ideal62X_mc \
0103     --tagtwo TrackerAlignment_Upgrade2017_design_v4 \
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 ;
0109 
0110 mv *.png $W_DIR/results_alignments/PixelBarycentersCompareTwoTags.png
0111 
0112 # add examples of full 6 coordinate comparisons
0113 #*************************************************************************#
0114 getPayloadData.py \
0115     --plugin pluginTrackerAlignment_PayloadInspector \
0116     --plot plot_TrackerAlignmentComparatorTwoTags \
0117     --tag TrackerAlignment_collisions22_v3 \
0118     --tagtwo TrackerAlignment_PCL_byRun_v2_express \
0119     --time_type Run \
0120     --iovs '{"start_iov": "357710", "end_iov": "357710"}' \
0121     --iovstwo '{"start_iov": "358156", "end_iov": "358156"}' \
0122     --db Prod \
0123     --test ;
0124 
0125 mv *.png $W_DIR/results_alignments/TrackerAlignmentComparatorTwoTags.png