CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
eventsfwlite.py
Go to the documentation of this file.
1 from DataFormats.FWLite import Events as FWLiteEvents
2 
3 class Events(object):
4  def __init__(self, files, tree_name):
5  self.events = FWLiteEvents(files)
6 
7  def __len__(self):
8  return self.events.size()
9 
10  def __getattr__(self, key):
11  return getattr(self.events, key)
12 
13  def __getitem__(self, iEv):
14  self.events.to(iEv)
15  return self
list object
Definition: dbtoconf.py:77