test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventFileAccessor.py
Go to the documentation of this file.
1 class EventFileAccessor(object):
2  """ This class provides access to the underlying data model.
3  """
4 
5  def open(self, filename):
6  """ Open file and read first event.
7  """
8  raise NotImplementedError
9 
10  def close(self):
11  """ Close file.
12  """
13  pass
14 
15  def goto(self, index):
16  """ Go to event number index and read it.
17  """
18  raise NotImplementedError
19 
20  def eventNumber(self):
21  """ Return the current event number.
22  """
23  raise NotImplementedError
24 
25  def numberOfEvents(self):
26  """ Return the total number of events.
27  """
28  raise NotImplementedError
29