xboa
|
MausRootHitFactory reads hits of a specified type from a root spill. More...
Inherits HitFactoryBase.
Public Member Functions | |
def | __init__ |
Initialise the hit factory. More... | |
def | new_spill |
def | make_hit |
Return the next hit from the given spill document. More... | |
def | file_types |
List of file types that can be read by this class. More... | |
Public Attributes | |
entry | |
hits | |
format | |
tree | |
spill | |
spill_number | |
Private Member Functions | |
def | _read_maus_spill |
Read a MAUS spill, converting to MAUS objects. More... | |
def | _read_virtual_hits |
Read virtuals from the Spill. More... | |
def | _read_primaries |
Read primaries from the Spill. More... | |
Static Private Attributes | |
dictionary | _file_mass_shell |
MausRootHitFactory reads hits of a specified type from a root spill.
Definition at line 28 of file _maus_root_hit_factory.py.
def __init__ | ( | self, | |
root_tree, | |||
format, | |||
entry = 0 |
|||
) |
Initialise the hit factory.
Definition at line 37 of file _maus_root_hit_factory.py.
References BuiltinHitFactory.file_types(), MausRootHitFactory.file_types(), MausJsonHitFactory.file_types(), and Hit.file_types.
def new_spill | ( | self | ) |
Definition at line 46 of file _maus_root_hit_factory.py.
References MausRootHitFactory.entry, MausRootHitFactory.spill, and MausJsonHitFactory.spill.
Referenced by MausRootHitFactory.make_hit().
def make_hit | ( | self | ) |
Return the next hit from the given spill document.
Definition at line 61 of file _maus_root_hit_factory.py.
References MausRootHitFactory.hits, MausJsonHitFactory.hits, MausRootHitFactory.new_spill(), MausJsonHitFactory.new_spill(), and HitFactoryBase.new_spill().
|
private |
Read a MAUS spill, converting to MAUS objects.
Definition at line 73 of file _maus_root_hit_factory.py.
References MausJsonHitFactory._read_primaries(), MausRootHitFactory._read_primaries(), MausRootHitFactory._read_virtual_hits(), MausJsonHitFactory._read_virtual_hits(), BuiltinHitFactory.format, MausRootHitFactory.format, and MausJsonHitFactory.format.
|
private |
Read virtuals from the Spill.
Definition at line 83 of file _maus_root_hit_factory.py.
References MausRootHitFactory.spill_number.
Referenced by MausRootHitFactory._read_maus_spill().
|
private |
Read primaries from the Spill.
Definition at line 116 of file _maus_root_hit_factory.py.
References MausRootHitFactory._file_mass_shell, MausJsonHitFactory._file_mass_shell, HitFactoryBase.bad_pid(), BuiltinHitFactory.format, MausRootHitFactory.format, MausJsonHitFactory.format, and MausRootHitFactory.spill_number.
Referenced by MausRootHitFactory._read_maus_spill().
def file_types | ( | cls | ) |
List of file types that can be read by this class.
Definition at line 149 of file _maus_root_hit_factory.py.
Referenced by MausRootHitFactory.__init__().
|
staticprivate |
Definition at line 152 of file _maus_root_hit_factory.py.
Referenced by MausRootHitFactory._read_primaries().
entry |
Definition at line 40 of file _maus_root_hit_factory.py.
Referenced by MausRootHitFactory.new_spill().
hits |
Definition at line 41 of file _maus_root_hit_factory.py.
Referenced by Bunch.get_alpha(), Bunch.get_beta(), Bunch.get_gamma(), and MausRootHitFactory.make_hit().
format |
Definition at line 42 of file _maus_root_hit_factory.py.
Referenced by MausRootHitFactory._read_maus_spill(), and MausRootHitFactory._read_primaries().
tree |
Definition at line 43 of file _maus_root_hit_factory.py.
spill |
Definition at line 44 of file _maus_root_hit_factory.py.
Referenced by MAUSTracking._primary_to_xboa_hit(), MAUSTracking._virtual_hit_to_xboa_hit(), MausRootHitFactory.new_spill(), and MAUSTracking.track_many().
spill_number |
Definition at line 53 of file _maus_root_hit_factory.py.
Referenced by MausRootHitFactory._read_primaries(), and MausRootHitFactory._read_virtual_hits().