Event helper class ##. More...
Public Member Functions | |
def | __getattr__ |
def | __init__ |
def | __str__ |
Static Public Attributes | |
dataset = None | |
tuple | splitRE = re.compile(r'[\s:,]+') |
Event helper class ##.
Definition at line 60 of file edmPickEvents.py.
def edmPickEvents::Event::__init__ | ( | self, | |
line, | |||
kwargs | |||
) |
Definition at line 64 of file edmPickEvents.py.
00065 : 00066 pieces = Event.splitRE.split (line.strip()) 00067 try: 00068 self['run'] = int( pieces[0] ) 00069 self['lumi'] = int( pieces[1] ) 00070 self['event'] = int( pieces[2] ) 00071 self['dataset'] = Event.dataset 00072 except: 00073 raise RuntimeError, "Can not parse '%s' as Event object" \ 00074 % line.strip() 00075 if not self['dataset']: 00076 print "No dataset is defined for '%s'. Aborting." % line.strip() 00077 raise RuntimeError, 'Missing dataset'
def edmPickEvents::Event::__getattr__ | ( | self, | |
key | |||
) |
Definition at line 78 of file edmPickEvents.py.
def edmPickEvents::Event::__str__ | ( | self | ) |
Definition at line 81 of file edmPickEvents.py.
edmPickEvents::Event::dataset = None [static] |
Definition at line 62 of file edmPickEvents.py.
tuple edmPickEvents::Event::splitRE = re.compile(r'[\s:,]+') [static] |
Definition at line 63 of file edmPickEvents.py.