CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
eventsfwlite.Events Class Reference
Inheritance diagram for eventsfwlite.Events:

Public Member Functions

def __getattr__ (self, key)
 
def __getitem__ (self, iEv)
 
def __init__ (self, files, tree_name, options=None)
 
def __len__ (self)
 

Public Attributes

 events
 

Detailed Description

Definition at line 17 of file eventsfwlite.py.

Constructor & Destructor Documentation

def eventsfwlite.Events.__init__ (   self,
  files,
  tree_name,
  options = None 
)

Definition at line 18 of file eventsfwlite.py.

18  def __init__(self, files, tree_name, options=None):
19  if options is not None :
20  if not hasattr(options,"inputFiles"):
21  options.inputFiles=files
22  if not hasattr(options,"maxEvents"):
23  options.maxEvents = 0
24  if not hasattr(options,"secondaryInputFiles"):
25  options.secondaryInputFiles = []
26  self.events = FWLiteEvents(options=options)
27  else :
28  self.events = FWLiteEvents(files)
29 
def __init__(self, files, tree_name, options=None)
Definition: eventsfwlite.py:18

Member Function Documentation

def eventsfwlite.Events.__getattr__ (   self,
  key 
)
def eventsfwlite.Events.__getitem__ (   self,
  iEv 
)

Definition at line 36 of file eventsfwlite.py.

36  def __getitem__(self, iEv):
37  self.events.to(iEv)
38  return self
39 
40 
def __getitem__(self, iEv)
Definition: eventsfwlite.py:36
def eventsfwlite.Events.__len__ (   self)

Definition at line 30 of file eventsfwlite.py.

30  def __len__(self):
31  return self.events.size()
32 

Member Data Documentation

eventsfwlite.Events.events