CMS 3D CMS Logo

Public Member Functions | Static Public Attributes

edmPickEvents::Event Class Reference

Event helper class ##. More...

List of all members.

Public Member Functions

def __getattr__
def __init__
def __str__

Static Public Attributes

 dataset = None
tuple splitRE = re.compile(r'[\s:,]+')

Detailed Description

Event helper class ##.

Definition at line 60 of file edmPickEvents.py.


Constructor & Destructor Documentation

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'


Member Function Documentation

def edmPickEvents::Event::__getattr__ (   self,
  key 
)

Definition at line 78 of file edmPickEvents.py.

00079                                :
00080         return self[key]

def edmPickEvents::Event::__str__ (   self)

Definition at line 81 of file edmPickEvents.py.

00082                       :
00083         return "run = %(run)i, lumi = %(lumi)i, event = %(event)i, dataset = %(dataset)s"  % self
00084 


Member Data Documentation

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.