1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#!/bin/bash
# Save current working dir so img can be outputted there later
W_DIR=$(pwd);
# Set SCRAM architecture var
SCRAM_ARCH=slc6_amd64_gcc630;
export SCRAM_ARCH;
source /afs/cern.ch/cms/cmsset_default.sh;
eval `scram run -sh`;
# Go back to original working directory
cd $W_DIR;
# Run get payload data script
coordinates=(X Y Z SigmaX SigmaY SigmaZ dXdZ dYdZ)
types=(History RunHistory) #TimeHistory) not testable
mkdir -p $W_DIR/results
if [ -f *.png ]; then
rm *.png
fi
echo "Tesing the trend plots plots"
for i in "${types[@]}"
do
for j in "${coordinates[@]}"
do
echo "plot_BeamSpot_${i}${j}"
getPayloadData.py \
--plugin pluginBeamSpot_PayloadInspector \
--plot plot_BeamSpot_${i}${j} \
--tag BeamSpotObjects_PCL_byLumi_v0_prompt \
--time_type Lumi \
--iovs '{"start_iov": "1406876667346979", "end_iov": "1406876667347162"}' \
--db Prod \
--test;
mv *.png $W_DIR/results/${i}_${j}.png
done
done
echo "Tesing the parameters difference plots"
getPayloadData.py \
--plugin pluginBeamSpot_PayloadInspector \
--plot plot_BeamSpotParametersDiffSingleTag \
--tag BeamSpotObjects_PCL_byLumi_v0_prompt \
--time_type Lumi \
--iovs '{"start_iov": "1406859487477814", "end_iov": "1488257707672138"}' \
--db Prod \
--test ;
mv *.png $W_DIR/results/BeamSpotParametersDiffSingleTag.png
getPayloadData.py \
--plugin pluginBeamSpot_PayloadInspector \
--plot plot_BeamSpotParametersDiffTwoTags \
--tag BeamSpotObjects_Realistic25ns_900GeV_2021PilotBeams_v2_mc \
--time_type Run \
--iovs '{"start_iov": "1", "end_iov": "1"}' \
--tagtwo BeamSpotObjects_Realistic25ns_900GeV_2021PilotBeams_v1_mc \
--iovstwo '{"start_iov": "1", "end_iov": "1"}' \
--db Prod \
--test ;
mv *.png $W_DIR/results/BeamSpotParametersDiffTwoTags.png
|