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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 60 of file edmPickEvents.py.

References createfilelist.int, and print().

60  def __init__ (self, line, **kwargs):
61  pieces = Event.splitRE.split (line.strip())
62  try:
63  self['run'] = int( pieces[0] )
64  self['lumi'] = int( pieces[1] )
65  self['event'] = int( pieces[2] )
66  self['dataset'] = Event.dataset
67  except:
68  raise RuntimeError("Can not parse '%s' as Event object" \
69  % line.strip())
70  if not self['dataset']:
71  print("No dataset is defined for '%s'. Aborting." % line.strip())
72  raise RuntimeError('Missing dataset')
73 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Member Function Documentation

◆ __getattr__()

def edmPickEvents.Event.__getattr__ (   self,
  key 
)

Definition at line 74 of file edmPickEvents.py.

74  def __getattr__ (self, key):
75  return self[key]
76 

◆ __str__()

def edmPickEvents.Event.__str__ (   self)

Definition at line 77 of file edmPickEvents.py.

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

Member Data Documentation

◆ dataset

edmPickEvents.Event.dataset
static

Definition at line 58 of file edmPickEvents.py.

◆ splitRE

edmPickEvents.Event.splitRE
static

Definition at line 59 of file edmPickEvents.py.