Skip to content

Commit 86e0847

Browse files
committed
fix hltInfo
1 parent 845f354 commit 86e0847

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

HLTrigger/Tools/scripts/hltInfo

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,23 @@ if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
1717
exit 0
1818
fi
1919

20-
edmProvDump "$1" | awk 'BEGIN {keep=0} /Producers with data in file/ {keep=0} // { if (keep) print $1, gensub(/["'\'']/,"", "g", $3), gensub(/[()]/, "", "g", $5) } /^Processing History:/ {keep=1}' | while read P R H; do
21-
echo "process $P (release $R)"
22-
edmProvDump "$1" -i $H | grep 'tableName\|globaltag' | sed -e's/string \(un\)\?tracked = //' -e's/tableName:/HLT menu: /' -e's/globaltag:/global tag:/'
20+
FILE="$1"
21+
22+
edmProvDump "$FILE" | awk '
23+
BEGIN {keep=0}
24+
/Producers with data in file/ {keep=0}
25+
/^Processing History:/ {keep=1; next}
26+
keep && NF >= 4 {
27+
proc = $1;
28+
rel = gensub(/["'\'']/, "", "g", $2);
29+
hash = gensub(/[()]/, "", "g", $4);
30+
print proc, rel, hash;
31+
}
32+
' | while read PROC REL HASH; do
33+
echo "process $PROC (release $REL)"
34+
edmProvDump "$FILE" --dumpPSetID "$HASH" 2>/dev/null | \
35+
grep -E '^\s*tableName:|^\s*globaltag:' | \
36+
sed -E -e 's/.*tableName:[^=]*= */ HLT menu: /' \
37+
-e 's/.*globaltag:[^=]*= */ global tag: /'
2338
echo
2439
done

0 commit comments

Comments
 (0)