-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42629 from CTPPS/jc_LHCInfoPerLS_PopCon_IOV_misal…
…ignment_fix Fix LHCInfoPerLS PopCon incorrectly matching LS between OMS and PPS db
- Loading branch information
Showing
6 changed files
with
168 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
CondTools/RunInfo/test/summarizePerLSPopConValidityLogs.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
LOG_FILE=$1 | ||
echo "Number of invalid payloads found in the logs" | ||
for CONDITION in "crossingAngle == 0 for both X and Y" "crossingAngle != 0 for both X and Y" \ | ||
"negative crossingAngle: " "negative betaStar" "Number of records from PPS DB with fillNumber different from OMS" \ | ||
"Number of stable beam LS in OMS without corresponding record in PPS DB" ; do | ||
echo -n "$CONDITION: max in one fill: " | ||
(cat $LOG_FILE | grep -E "$CONDITION" | awk '{print $NF}' ; echo 0) | sort -gr | head -n 1 | ||
echo -n "$CONDITION: total: " | ||
(cat $LOG_FILE | grep -E "$CONDITION" | awk '{print $NF}'; echo 0) | paste -sd+ | bc | ||
done |
Oops, something went wrong.