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 Pedestals
0015 ####################
0016 getPayloadData.py \
0017     --plugin pluginSiStripPedestals_PayloadInspector \
0018     --plot plot_SiStripPedestalsTest \
0019     --tag SiStripPedestals_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 pluginSiStripPedestals_PayloadInspector \
0030     --plot plot_SiStripPedestalsValuePerDetId \
0031     --tag SiStripPedestals_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 \
0042     --plugin pluginSiStripPedestals_PayloadInspector \
0043     --plot plot_SiStripPedestalPerDetId \
0044     --tag SiStripPedestals_GR10_v2_hlt \
0045     --time_type Run \
0046     --iovs '{"start_iov": "303420", "end_iov": "303420"}' \
0047     --db Prod \
0048     --input_params '{"DetIds":"470065830,369121594,369124670,470177668"}' \
0049     --test ;
0050 
0051 ####################
0052 # Correlations
0053 ####################
0054 getPayloadData.py \
0055     --plugin pluginSiStripPedestals_PayloadInspector \
0056     --plot plot_SiStripPedestalCorrelationByPartition \
0057     --tag SiStripPedestals_v2_prompt \
0058     --time_type Run \
0059     --iovs '{"start_iov": "348767", "end_iov": "348878"}' \
0060     --db Prod \
0061     --test ;
0062 
0063 estimators=(Mean Min Max RMS)
0064 plotTypes=(Strip APV Module)
0065 
0066 mkdir -p $W_DIR/results
0067 
0068 if [ -f *.png ]; then    
0069     rm *.png
0070 fi
0071 
0072 for i in "${estimators[@]}" 
0073 do
0074 
0075     #// TrackerMaps
0076 
0077     getPayloadData.py \
0078         --plugin pluginSiStripPedestals_PayloadInspector \
0079         --plot plot_SiStripPedestals${i}_TrackerMap \
0080         --tag SiStripPedestals_v2_prompt \
0081         --time_type Run \
0082         --iovs '{"start_iov": "303420", "end_iov": "303420"}' \
0083         --db Prod \
0084         --test;
0085 
0086     mv *.png $W_DIR/results/SiStripPedestals${i}_TrackerMap.png
0087     
0088     #// Summaries
0089 
0090     getPayloadData.py \
0091         --plugin pluginSiStripPedestals_PayloadInspector \
0092         --plot plot_SiStripPedestals${i}ByRegion \
0093         --tag SiStripPedestals_v2_prompt \
0094         --time_type Run \
0095         --iovs '{"start_iov": "303420", "end_iov": "303420"}' \
0096         --db Prod \
0097         --test;
0098 
0099     mv *.png $W_DIR/results/SiStripPedestals${i}ByRegion.png
0100 
0101 done
0102 
0103 for j in "${plotTypes[@]}"
0104 do  
0105     getPayloadData.py \
0106         --plugin pluginSiStripPedestals_PayloadInspector \
0107         --plot plot_SiStripPedestalValuePer${j} \
0108         --tag SiStripPedestals_v2_prompt \
0109         --time_type Run \
0110         --iovs '{"start_iov": "303420", "end_iov": "303420"}' \
0111         --db Prod \
0112         --test ;
0113         
0114     mv *.png $W_DIR/results/SiStripPedestalsPer${j}Values.png
0115 
0116     getPayloadData.py \
0117         --plugin pluginSiStripPedestals_PayloadInspector \
0118         --plot plot_SiStripPedestalValueComparisonPer${j}SingleTag \
0119         --tag SiStripPedestals_v2_prompt \
0120         --time_type Run \
0121         --iovs '{"start_iov": "303420", "end_iov": "313120"}' \
0122         --db Prod \
0123         --test ;
0124 
0125     mv *.png $W_DIR/results/SiStripPedestalsPer${j}Comparison.png
0126 
0127 done