Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-08 02:25:55

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 coordinates=(X Y Z SigmaX SigmaY SigmaZ dXdZ dYdZ)
0014 types=(History RunHistory) #TimeHistory) not testable
0015 
0016 mkdir -p $W_DIR/results
0017 
0018 if [ -f *.png ]; then    
0019     rm *.png
0020 fi
0021 
0022 echo "Tesing the trend plots plots"
0023 
0024 for i in "${types[@]}"
0025 do
0026     for j in "${coordinates[@]}"
0027     do
0028         echo "plot_BeamSpot_${i}${j}"
0029 
0030         getPayloadData.py \
0031             --plugin pluginBeamSpot_PayloadInspector \
0032             --plot plot_BeamSpot_${i}${j} \
0033             --tag BeamSpotObjects_PCL_byLumi_v0_prompt \
0034             --time_type Lumi \
0035             --iovs '{"start_iov": "1406876667346979", "end_iov": "1406876667347162"}' \
0036             --db Prod \
0037             --test;
0038 
0039         mv *.png  $W_DIR/results/${i}_${j}.png
0040     done
0041 done
0042 
0043 echo "Tesing the parameters difference plots"
0044 
0045 getPayloadData.py \
0046     --plugin pluginBeamSpot_PayloadInspector \
0047     --plot plot_BeamSpotParametersDiffSingleTag \
0048     --tag BeamSpotObjects_PCL_byLumi_v0_prompt \
0049     --time_type Lumi \
0050     --iovs '{"start_iov": "1406859487477814", "end_iov": "1488257707672138"}' \
0051     --db Prod \
0052     --test ;
0053 
0054 mv *.png  $W_DIR/results/BeamSpotParametersDiffSingleTag.png
0055 
0056 getPayloadData.py \
0057     --plugin pluginBeamSpot_PayloadInspector \
0058     --plot plot_BeamSpotParametersDiffTwoTags \
0059     --tag BeamSpotObjects_Realistic25ns_900GeV_2021PilotBeams_v2_mc \
0060     --time_type Run \
0061     --iovs '{"start_iov": "1", "end_iov": "1"}' \
0062     --tagtwo BeamSpotObjects_Realistic25ns_900GeV_2021PilotBeams_v1_mc \
0063     --iovstwo '{"start_iov": "1", "end_iov": "1"}' \
0064     --db Prod \
0065     --test ;
0066 
0067 mv *.png  $W_DIR/results/BeamSpotParametersDiffTwoTags.png