CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes
edmPickEvents.Event Class Reference

Event helper class ##. More...

Inheritance diagram for edmPickEvents.Event:

Public Member Functions

def __getattr__ (self, key)
 
def __init__ (self, line, kwargs)
 
def __str__ (self)
 

Static Public Attributes

 dataset
 
 splitRE
 

Detailed Description

Event helper class ##.

Definition at line 55 of file edmPickEvents.py.

Constructor & Destructor Documentation

def edmPickEvents.Event.__init__ (   self,
  line,
  kwargs 
)

Definition at line 59 of file edmPickEvents.py.

References createfilelist.int.

59  def __init__ (self, line, **kwargs):
60  pieces = Event.splitRE.split (line.strip())
61  try:
62  self['run'] = int( pieces[0] )
63  self['lumi'] = int( pieces[1] )
64  self['event'] = int( pieces[2] )
65  self['dataset'] = Event.dataset
66  except:
67  raise RuntimeError("Can not parse '%s' as Event object" \
68  % line.strip())
69  if not self['dataset']:
70  print "No dataset is defined for '%s'. Aborting." % line.strip()
71  raise RuntimeError('Missing dataset')
72 
def __init__(self, line, kwargs)

Member Function Documentation

def edmPickEvents.Event.__getattr__ (   self,
  key 
)

Definition at line 73 of file edmPickEvents.py.

73  def __getattr__ (self, key):
74  return self[key]
75 
def __getattr__(self, key)
def edmPickEvents.Event.__str__ (   self)

Definition at line 76 of file edmPickEvents.py.

76  def __str__ (self):
77  return "run = %(run)i, lumi = %(lumi)i, event = %(event)i, dataset = %(dataset)s" % self
78 
79 

Member Data Documentation

edmPickEvents.Event.dataset
static

Definition at line 57 of file edmPickEvents.py.

edmPickEvents.Event.splitRE
static

Definition at line 58 of file edmPickEvents.py.