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 57 of file edmPickEvents.py.

Constructor & Destructor Documentation

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

Definition at line 61 of file edmPickEvents.py.

References createfilelist.int, and edm.print().

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

Member Function Documentation

def edmPickEvents.Event.__getattr__ (   self,
  key 
)

Definition at line 75 of file edmPickEvents.py.

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

Definition at line 78 of file edmPickEvents.py.

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

Member Data Documentation

edmPickEvents.Event.dataset
static

Definition at line 59 of file edmPickEvents.py.

edmPickEvents.Event.splitRE
static

Definition at line 60 of file edmPickEvents.py.