Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eleni Skorda
athena
Commits
e4073a70
Commit
e4073a70
authored
3 years ago
by
scott snyder
Browse files
Options
Downloads
Patches
Plain Diff
trigbs_dumpHLTNav.py needs to read bs-streamerinfos.root in order to handle schema evolution.
parent
dfc1b820
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Trigger/TrigTools/TrigByteStreamTools/CMakeLists.txt
+2
-1
2 additions, 1 deletion
Trigger/TrigTools/TrigByteStreamTools/CMakeLists.txt
Trigger/TrigTools/TrigByteStreamTools/bin/trigbs_dumpHLTNav.py
+16
-1
16 additions, 1 deletion
...er/TrigTools/TrigByteStreamTools/bin/trigbs_dumpHLTNav.py
with
18 additions
and
2 deletions
Trigger/TrigTools/TrigByteStreamTools/CMakeLists.txt
+
2
−
1
View file @
e4073a70
...
...
@@ -31,7 +31,8 @@ atlas_add_test( dumpHLTContentInBS_run3
LOG_IGNORE_PATTERN
"^----.*(bytes|B/ev)"
)
atlas_add_test
(
dumpHLTNav
SCRIPT trigbs_dumpHLTNav.py -n 3 -s 371
${
trigbs_testFileRun3
}
)
SCRIPT trigbs_dumpHLTNav.py -n 3 -s 371
${
trigbs_testFileRun3
}
LOG_IGNORE_PATTERN
"no dictionary for class"
)
atlas_add_test
(
updateMetadata
SCRIPT rm -f newMeta.*.data
...
...
This diff is collapsed.
Click to expand it.
Trigger/TrigTools/TrigByteStreamTools/bin/trigbs_dumpHLTNav.py
+
16
−
1
View file @
e4073a70
...
...
@@ -85,7 +85,7 @@ def dump_nav(collections):
cont_if
.
setStore
(
cont_aux
)
print
(
'
- %s
'
%
key
)
print
(
'
- %s
'
%
key
,
flush
=
True
)
for
i
in
range
(
cont_if
.
size
()):
obj
=
cont_if
.
at
(
i
)
print
(
'
- Element #%d
'
%
i
)
...
...
@@ -142,7 +142,22 @@ def dump_info(bsfile, args):
dump_nav
(
collections
)
def
load_streamerinfos
():
import
ROOT
import
os
import
sys
for
p
in
os
.
environ
[
'
DATAPATH
'
].
split
(
'
:
'
):
fname
=
os
.
path
.
join
(
p
,
'
bs-streamerinfos.root
'
)
if
os
.
path
.
exists
(
fname
):
f
=
ROOT
.
TFile
.
Open
(
fname
)
break
else
:
log
.
warning
(
'
Cannot find bs-streamerinfos.root file in DATAPATH
'
)
return
if
'
__main__
'
in
__name__
:
args
=
get_parser
().
parse_args
()
load_streamerinfos
()
for
f
in
args
.
files
:
dump_info
(
f
,
args
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment