containments¶
Utility function cataloging the types of containment of an icecube event.
- class graphnet.data.extractors.icecube.utilities.containments.GN_containment_types(value)[source]¶
Bases:
Enum
Containment types for an IceCube event.
See https://github.com/icecube/icetray/blob/d68d0e0be86bf2cfeba8cab1190f631f4454e4c4/sim-services/python/label_events/enums.py#L50 For the original IceCube enum.
- no_intersect = 1¶
- throughgoing = 2¶
- contained = 3¶
- tau_to_mu = 4¶
- starting = 5¶
- stopping = 6¶
- decayed = 7¶
- throughgoing_bundle = 8¶
- stopping_bundle = 9¶
- partly_contained = 10¶
- graphnet.data.extractors.icecube.utilities.containments.track_containment(first, second, length)[source]¶
Determine the containment of a track.
Inpsired by MCLabelerModule from IceCube. https://github.com/icecube/icetray/blob/main/sim-services/python/label_events/mc_labeler.py
- Parameters:
first (float) – First interaction with surface.
second (float) – Second interaction with surface.
length (float) – Length of the particle track.
- Return type:
int