Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-24 23:46:09

0001 #!/bin/bash
0002 # Save current working dir so img can be outputted there later
0003 W_DIR=$(pwd);
0004 # Set SCRAM architecture var
0005 SCRAM_ARCH=slc6_amd64_gcc630;
0006 export SCRAM_ARCH;
0007 source /afs/cern.ch/cms/cmsset_default.sh;
0008 eval `scram run -sh`;
0009 # Go back to original working directory
0010 cd $W_DIR;
0011 # Run get payload data script
0012 
0013 ####################
0014 # Test Noise
0015 ####################
0016 getPayloadData.py \
0017     --plugin pluginSiStripNoises_PayloadInspector \
0018     --plot plot_SiStripNoisesTest \
0019     --tag SiStripNoise_v2_prompt \
0020     --time_type Run \
0021     --iovs '{"start_iov": "303420", "end_iov": "303420"}' \
0022     --db Prod \
0023     --test;
0024 
0025 ####################
0026 # Single DetId
0027 ####################
0028 getPayloadData.py \
0029     --plugin pluginSiStripNoises_PayloadInspector \
0030     --plot plot_SiStripNoiseValuePerDetId \
0031     --tag SiStripNoise_v2_prompt \
0032     --time_type Run \
0033     --iovs '{"start_iov": "303420", "end_iov": "303420"}' \
0034     --db Prod \
0035     --input_params '{"DetId":"470065830"}' \
0036     --test ;
0037 
0038 ####################
0039 # Multiple DetIds
0040 ####################
0041 getPayloadData.py --plugin pluginSiStripNoises_PayloadInspector \
0042     --plot plot_SiStripNoisePerDetId \
0043     --tag SiStripNoise_v2_prompt \
0044     --time_type Run \
0045     --iovs '{"start_iov": "303420", "end_iov": "303420"}' \
0046     --db Prod \
0047     --input_params '{"DetIds":"470065830,369121594,369124670,470177668"}' \
0048     --test ;
0049 
0050 ####################
0051 # Correlations
0052 ####################
0053 getPayloadData.py --plugin pluginSiStripNoises_PayloadInspector \
0054     --plot plot_SiStripNoiseCorrelationByPartition \
0055     --tag SiStripNoise_v2_prompt \
0056     --time_type Run \
0057     --iovs '{"start_iov": "348767", "end_iov": "348878"}' \
0058     --db Prod \
0059     --test ;
0060 
0061 estimators=(Mean Min Max RMS)
0062 plotTypes=(Strip APV Module)
0063 partition=(TIB TOB TEC TID)
0064 
0065 mkdir -p $W_DIR/results
0066 
0067 if [ -f *.png ]; then    
0068     rm *.png
0069 fi
0070 
0071 for i in "${estimators[@]}" 
0072 do
0073 
0074     #// TrackerMaps
0075 
0076     getPayloadData.py \
0077         --plugin pluginSiStripNoises_PayloadInspector \
0078         --plot plot_SiStripNoise${i}_TrackerMap \
0079         --tag SiStripNoise_v2_prompt \
0080         --time_type Run \
0081         --iovs '{"start_iov": "303420", "end_iov": "303420"}' \
0082         --db Prod \
0083         --test;
0084 
0085     mv *.png $W_DIR/results/SiStripNoises${i}_TrackerMap.png
0086 
0087     #// Summaries
0088 
0089     getPayloadData.py \
0090         --plugin pluginSiStripNoises_PayloadInspector \
0091         --plot plot_SiStripNoise${i}ByRegion \
0092         --tag SiStripNoise_v2_prompt \
0093         --time_type Run \
0094         --iovs '{"start_iov": "303420", "end_iov": "303420"}' \
0095         --db Prod \
0096         --test;
0097 
0098     mv *.png $W_DIR/results/SiStripNoises${i}ByRegion.png
0099 
0100 done
0101 
0102 for j in "${plotTypes[@]}"
0103 do  
0104     getPayloadData.py \
0105         --plugin pluginSiStripNoises_PayloadInspector \
0106         --plot plot_SiStripNoiseValuePer${j} \
0107         --tag SiStripNoise_GR10_v1_hlt \
0108         --time_type Run \
0109         --iovs  '{"start_iov": "313210", "end_iov": "313120"}' \
0110         --db Prod \
0111         --test;
0112         
0113     mv *.png $W_DIR/results/SiStripNoisesPer${j}Values.png
0114 
0115     getPayloadData.py \
0116         --plugin pluginSiStripNoises_PayloadInspector \
0117         --plot plot_SiStripNoiseValueComparisonPer${j}SingleTag \
0118         --tag SiStripNoise_GR10_v1_hlt \
0119         --time_type Run \
0120         --iovs '{"start_iov": "312968", "end_iov": "313120"}' \
0121         --db Prod \
0122         --test ;
0123 
0124     mv *.png $W_DIR/results/SiStripNoisesPer${j}ComparisonSingleTag.png
0125 
0126 done
0127 
0128 for j in "${partition[@]}"
0129 do
0130        getPayloadData.py \
0131         --plugin pluginSiStripNoises_PayloadInspector \
0132         --plot plot_${j}NoiseLayerRunHistory \
0133         --tag SiStripNoise_GR10_v1_hlt \
0134         --time_type Run \
0135         --iovs  '{"start_iov": "315000", "end_iov": "325000"}' \
0136         --db Prod \
0137         --test;
0138 
0139     mv *.png $W_DIR/results/${j}NoiseLayerRunHistory.png
0140 done