xboa
|
Base factory class for making hits. More...
Inherits object.
Public Member Functions | |
def | __init__ |
Initialise the base class. More... | |
def | make_hit |
Generate a new hit. More... | |
def | hit_generator |
def | new_spill |
Load the next spill from the file handle. More... | |
def | bad_pid |
Static Public Attributes | |
list | bad_pids = [] |
Base factory class for making hits.
Definition at line 23 of file _hit_factory_base.py.
def __init__ | ( | self | ) |
Initialise the base class.
Definition at line 28 of file _hit_factory_base.py.
def make_hit | ( | self | ) |
Generate a new hit.
Definition at line 35 of file _hit_factory_base.py.
Referenced by HitFactoryBase.hit_generator().
def hit_generator | ( | self | ) |
Definition at line 38 of file _hit_factory_base.py.
References HitFactoryBase.make_hit(), BuiltinHitFactory.make_hit(), and HitFactoryBase.new_spill().
def new_spill | ( | self | ) |
Load the next spill from the file handle.
For files that have data bundled into spills (i.e. MAUS format), this enables user to load the next spill. Otherwise it is a no-op.
Definition at line 59 of file _hit_factory_base.py.
Referenced by HitFactoryBase.hit_generator(), MausRootHitFactory.make_hit(), and MausJsonHitFactory.make_hit().
def bad_pid | ( | cls, | |
pid | |||
) |
Definition at line 63 of file _hit_factory_base.py.
Referenced by MausRootHitFactory._read_primaries().
|
static |
Definition at line 68 of file _hit_factory_base.py.
Referenced by BuiltinHitFactory.make_hit().