Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue 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
Peter Sherwood
athena
Commits
409b9f9f
Commit
409b9f9f
authored
7 years ago
by
wbuttinger
Browse files
Options
Downloads
Patches
Plain Diff
remade the update of these packages
Former-commit-id:
ae32512b
parent
a6f0de50
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PhysicsAnalysis/POOLRootAccess/test/ut_elementLink_test.py
+20
-0
20 additions, 0 deletions
PhysicsAnalysis/POOLRootAccess/test/ut_elementLink_test.py
with
20 additions
and
0 deletions
PhysicsAnalysis/POOLRootAccess/test/ut_elementLink_test.py
0 → 100644
+
20
−
0
View file @
409b9f9f
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
#Tests the element links are correctly available
import
sys
import
ROOT
evt
=
ROOT
.
POOL
.
TEvent
(
ROOT
.
POOL
.
TEvent
.
kClassAccess
)
evt
.
readFrom
(
"
$ASG_TEST_FILE_MC
"
)
#FIXME This relies on electrons being present in the first event!
evt
.
getEntry
(
0
)
els
=
evt
.
retrieve
(
"
xAOD::ElectronContainer
"
,
"
Electrons
"
)
for
el
in
els
:
if
not
el
.
trackParticle
():
print
"
ERROR: Element link is invalid for kClassAccess .. exit
"
sys
.
exit
(
-
1
)
print
"
Element links were valid. Test passed
"
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