Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
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
atlas
athena
Commits
5ddc252f
Commit
5ddc252f
authored
4 years ago
by
Oldrich Kepka
Browse files
Options
Downloads
Patches
Plain Diff
minor updates
parent
fe6e09d2
No related branches found
No related tags found
1 merge request
!41777
PyEvtFilterFromFile - extention of PyEvtFilter functionality
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Control/GaudiSequencer/python/PyCompsExt.py
+5
-2
5 additions, 2 deletions
Control/GaudiSequencer/python/PyCompsExt.py
with
5 additions
and
2 deletions
Control/GaudiSequencer/python/PyCompsExt.py
+
5
−
2
View file @
5ddc252f
__doc__
=
'
Library defines a class for filtering events. Allows to provide run/event numbers from a file.
'
__author__
=
'
Oldrich Kepka <oldrich.kepka@cern.ch
'
from
GaudiSequencer.PyComps
import
PyEvtFilter
from
AthenaPython.PyAthena
import
StatusCode
class
PyEvtFilterFromFile
(
PyEvtFilter
):
"""
Algorithm which loads list of runnuber/eventnumbers from file for filtering and pass it to PyEvtFilter
"""
Algorithm which loads list of runnu
n
ber/eventnumbers from file for filtering and pass it to PyEvtFilter
"""
def
__init__
(
self
,
name
=
'
filterFromFile
'
,
**
kw
):
...
...
@@ -23,7 +26,7 @@ class PyEvtFilterFromFile (PyEvtFilter):
f
=
open
(
self
.
input_file
,
'
r
'
)
except
IOError
:
_error
=
self
.
msg
.
error
(
'
File {} cannot be opened.
'
.
format
(
self
.
input_file
))
return
StatusCode
.
Falure
return
StatusCode
.
Fa
i
lure
else
:
_info
(
'
==> File {} opened. Loading Runnumber/Eventnumber list
'
.
format
(
self
.
input_file
))
with
f
:
...
...
This diff is collapsed.
Click to expand it.
Rachid Mazini
@rmazini
mentioned in commit
0a31463c
·
4 years ago
mentioned in commit
0a31463c
mentioned in commit 0a31463ca43b849c90eb320d73a3866343e02e26
Toggle commit list
Atlas Nightlybuild
@atnight
mentioned in commit
6469b59e
·
4 years ago
mentioned in commit
6469b59e
mentioned in commit 6469b59ea4b87c866c369420f4407287292c82c0
Toggle commit list
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