xboa
|
MausJsonHitFactory strips hits of a specified type from a json_document and returns to the user. More...
Inherits HitFactoryBase.
Public Member Functions | |
def | __init__ |
Initialise the hit factory. More... | |
def | new_spill |
Read a new spill off the file handle. More... | |
def | make_hit |
Return the next hit from the spill file_handle. More... | |
def | hit_from_maus_object |
Convert a MAUS object into a Hit according to specified formats. More... | |
def | file_types |
Return a list of file types that the factory can read. More... | |
def | deprecated_file_types |
Return a list of deprecated file types (no longer used) More... | |
Public Attributes | |
fin | |
hits | |
format | |
spill | |
Private Member Functions | |
def | _read_maus_spill |
Read a MAUS spill, converting to MAUS objects. More... | |
def | _read_virtual_hits |
Read a virtual hits from the json_document. More... | |
def | _read_primaries |
Read primaries from the json_document. More... | |
Static Private Attributes | |
dictionary | _maus_three_vec_conversions |
dictionary | _maus_variable_conversions |
dictionary | _file_mass_shell |
MausJsonHitFactory strips hits of a specified type from a json_document and returns to the user.
Definition at line 28 of file _maus_json_hit_factory.py.
def __init__ | ( | self, | |
file_handle, | |||
format | |||
) |
Initialise the hit factory.
Definition at line 37 of file _maus_json_hit_factory.py.
References MausJsonHitFactory.deprecated_file_types(), BuiltinHitFactory.file_types(), MausJsonHitFactory.file_types(), and Hit.file_types.
def new_spill | ( | self | ) |
Read a new spill off the file handle.
Definition at line 56 of file _maus_json_hit_factory.py.
References MausJsonHitFactory._read_maus_spill(), MausJsonHitFactory.hits, and MausJsonHitFactory.spill.
Referenced by MausRootHitFactory.make_hit(), and MausJsonHitFactory.make_hit().
def make_hit | ( | self | ) |
Return the next hit from the spill file_handle.
Definition at line 79 of file _maus_json_hit_factory.py.
References MausJsonHitFactory.hits, MausJsonHitFactory.new_spill(), and HitFactoryBase.new_spill().
|
private |
Read a MAUS spill, converting to MAUS objects.
Definition at line 93 of file _maus_json_hit_factory.py.
References MausJsonHitFactory._read_primaries(), MausJsonHitFactory._read_virtual_hits(), BuiltinHitFactory.format, and MausJsonHitFactory.format.
Referenced by MausJsonHitFactory.new_spill().
|
private |
Read a virtual hits from the json_document.
Definition at line 103 of file _maus_json_hit_factory.py.
References MausJsonHitFactory.hit_from_maus_object(), and MausJsonHitFactory.spill.
Referenced by MausRootHitFactory._read_maus_spill(), and MausJsonHitFactory._read_maus_spill().
|
private |
Read primaries from the json_document.
Definition at line 114 of file _maus_json_hit_factory.py.
References MausJsonHitFactory.hit_from_maus_object(), and MausJsonHitFactory.spill.
Referenced by MausRootHitFactory._read_maus_spill(), and MausJsonHitFactory._read_maus_spill().
def hit_from_maus_object | ( | cls, | |
format, | |||
maus_dict, | |||
event_number | |||
) |
Convert a MAUS object into a Hit according to specified formats.
Definition at line 125 of file _maus_json_hit_factory.py.
Referenced by MausJsonHitFactory._read_primaries(), and MausJsonHitFactory._read_virtual_hits().
def file_types | ( | cls | ) |
Return a list of file types that the factory can read.
Definition at line 154 of file _maus_json_hit_factory.py.
Referenced by MausJsonHitFactory.__init__(), and MausRootHitFactory.__init__().
def deprecated_file_types | ( | cls | ) |
Return a list of deprecated file types (no longer used)
Definition at line 160 of file _maus_json_hit_factory.py.
Referenced by MausJsonHitFactory.__init__().
|
staticprivate |
Definition at line 163 of file _maus_json_hit_factory.py.
|
staticprivate |
Definition at line 168 of file _maus_json_hit_factory.py.
|
staticprivate |
Definition at line 173 of file _maus_json_hit_factory.py.
Referenced by MausRootHitFactory._read_primaries().
fin |
Definition at line 46 of file _maus_json_hit_factory.py.
hits |
Definition at line 47 of file _maus_json_hit_factory.py.
Referenced by Bunch.get_alpha(), Bunch.get_beta(), Bunch.get_gamma(), MausRootHitFactory.make_hit(), MausJsonHitFactory.make_hit(), and MausJsonHitFactory.new_spill().
format |
Definition at line 48 of file _maus_json_hit_factory.py.
Referenced by MausRootHitFactory._read_maus_spill(), MausJsonHitFactory._read_maus_spill(), and MausRootHitFactory._read_primaries().
spill |
Definition at line 49 of file _maus_json_hit_factory.py.
Referenced by MAUSTracking._primary_to_xboa_hit(), MausJsonHitFactory._read_primaries(), MausJsonHitFactory._read_virtual_hits(), MAUSTracking._virtual_hit_to_xboa_hit(), MausRootHitFactory.new_spill(), MausJsonHitFactory.new_spill(), and MAUSTracking.track_many().