1 from DataFormats.FWLite
import Events
as FWLiteEvents
4 def __init__(self, files, tree_name, options=None):
5 if options
is not None :
6 if not hasattr(options,
"inputFiles"):
7 options.inputFiles=files
8 if not hasattr(options,
"maxEvents"):
10 if not hasattr(options,
"secondaryInputFiles"):
11 options.secondaryInputFiles = []
12 self.events = FWLiteEvents(options=options)
14 self.events = FWLiteEvents(files)
17 return self.events.size()
20 return getattr(self.events, key)