Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-09-18 22:46:39

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 
0085 # add examples of Pixel barycenter comparison
0086 #*************************************************************************#
0087 getPayloadData.py \
0088     --plugin pluginTrackerAlignment_PayloadInspector \
0089     --plot plot_PixelBarycentersCompare \
0090     --tag TrackerAlignment_v28_offline \
0091     --time_type Run \
0092     --iovs '{"start_iov": "250000", "end_iov": "300000"}' \
0093     --db Prod \
0094     --test ;
0095 
0096 getPayloadData.py \
0097     --plugin pluginTrackerAlignment_PayloadInspector \
0098     --plot plot_PixelBarycentersCompareTwoTags \
0099     --tag TrackerAlignment_Ideal62X_mc \
0100     --tagtwo TrackerAlignment_Upgrade2017_design_v4 \
0101     --time_type Run \
0102     --iovs '{"start_iov": "1", "end_iov": "1"}' \
0103     --iovstwo '{"start_iov": "1", "end_iov": "1"}' \
0104     --db Prod \
0105     --test ;
0106 
0107 # add examples of full 6 coordinate comparisons
0108 #*************************************************************************#
0109 getPayloadData.py \
0110     --plugin pluginTrackerAlignment_PayloadInspector \
0111     --plot plot_TrackerAlignmentComparatorTwoTags \
0112     --tag TrackerAlignment_collisions22_v3 \
0113     --tagtwo TrackerAlignment_PCL_byRun_v2_express \
0114     --time_type Run \
0115     --iovs '{"start_iov": "357710", "end_iov": "357710"}' \
0116     --iovstwo '{"start_iov": "358156", "end_iov": "358156"}' \
0117     --db Prod \
0118     --test ;