Event helper class ##.
More...
Event helper class ##.
Definition at line 57 of file edmPickEvents.py.
def edmPickEvents.Event.__init__ |
( |
|
self, |
|
|
|
line, |
|
|
|
kwargs |
|
) |
| |
Definition at line 61 of file edmPickEvents.py.
63 pieces = Event.splitRE.split (line.strip())
65 self[
'run'] = int( pieces[0] )
66 self[
'lumi'] = int( pieces[1] )
67 self[
'event'] = int( pieces[2] )
68 self[
'dataset'] = Event.dataset
70 raise RuntimeError,
"Can not parse '%s' as Event object" \
72 if not self[
'dataset']:
73 print "No dataset is defined for '%s'. Aborting." % line.strip()
74 raise RuntimeError,
'Missing dataset'