Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:20

0001 LOG_FILE=$1
0002 echo "Number of invalid payloads found in the logs"
0003 for CONDITION in "crossingAngle == 0 for both X and Y" "crossingAngle != 0 for both X and Y" \
0004                  "negative crossingAngle: " "negative betaStar" "Number of records from PPS DB with fillNumber different from OMS" \
0005                  "Number of stable beam LS in OMS without corresponding record in PPS DB" ; do
0006     echo -n "$CONDITION:  max in one fill: "
0007     (cat $LOG_FILE | grep -E "$CONDITION" | awk '{print $NF}' ; echo 0) | sort -gr | head -n 1
0008     echo -n "$CONDITION:  total: "
0009     (cat $LOG_FILE | grep -E "$CONDITION" | awk '{print $NF}'; echo 0) | paste -sd+ | bc
0010 done