Event helper class ##.
More...
Event helper class ##.
Definition at line 57 of file edmPickEvents.py.
◆ __init__()
def edmPickEvents.Event.__init__ |
( |
|
self, |
|
|
|
line, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 61 of file edmPickEvents.py.
61 def __init__ (self, line, **kwargs):
62 pieces = Event.splitRE.split (line.strip())
64 self[
'run'] =
int( pieces[0] )
65 self[
'lumi'] =
int( pieces[1] )
66 self[
'event'] =
int( pieces[2] )
67 self[
'dataset'] = Event.dataset
69 raise RuntimeError(
"Can not parse '%s' as Event object" \
71 if not self[
'dataset']:
72 print(
"No dataset is defined for '%s'. Aborting." % line.strip())
73 raise RuntimeError(
'Missing dataset')
References createfilelist.int, and edm.print().
◆ __getattr__()
def edmPickEvents.Event.__getattr__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
◆ __str__()
def edmPickEvents.Event.__str__ |
( |
|
self | ) |
|
Definition at line 78 of file edmPickEvents.py.
79 return "run = %(run)i, lumi = %(lumi)i, event = %(event)i, dataset = %(dataset)s" % self
◆ dataset
edmPickEvents.Event.dataset |
|
static |
◆ splitRE
edmPickEvents.Event.splitRE |
|
static |