21 Base factory class for making hits
25 Initialise the base class
33 raise NotImplementedError(
"make_hit not implemented")
40 except (EOFError, xboa.hit.BadEventError):
44 except (EOFError, xboa.hit.BadEventError):
45 raise StopIteration(
"Finished")
51 Load the next spill from the file handle
53 For files that have data bundled into spills (i.e. MAUS format), this
54 enables user to load the next spill. Otherwise it is a no-op.
60 if pid
not in cls.bad_pids:
61 print "Failed to parse pid", pid
62 cls.bad_pids.append(pid)
def __init__
Initialise the base class.
def make_hit
Generate a new hit.
Base factory class for making hits.
Implemented within this module:
def new_spill
Load the next spill from the file handle.