Skip to content
Snippets Groups Projects
Commit 5ddc252f authored by Oldrich Kepka's avatar Oldrich Kepka
Browse files

minor updates

parent fe6e09d2
No related branches found
No related tags found
1 merge request!41777PyEvtFilterFromFile - extention of PyEvtFilter functionality
__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 runnunber/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.Failure
else:
_info('==> File {} opened. Loading Runnumber/Eventnumber list'.format(self.input_file))
with f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment