km3modules.mc

MC Helpers.

Module Contents

Classes

GlobalRandomState

Sets the global random seed of the numpy random generator

McTruth

Extract MC info of 1st MC track.

MCTimeCorrector

Module that converts MC hit times to JTE times.

Attributes

NEUTRINOS

km3modules.mc.NEUTRINOS[source]
class km3modules.mc.GlobalRandomState(name=None, **parameters)[source]

Sets the global random seed of the numpy random generator

KM3Pipe uses numpy routines exclusively to generate randomness. Setting a seed to a specific value will create a fully reproducible pipeline as long as your own modules also utilise numpy for random numbers.

Parameters:
seed: int, default=42
property random_state[source]
configure()[source]

Configure module, like instance variables etc.

class km3modules.mc.McTruth(name=None, **parameters)[source]

Extract MC info of 1st MC track.

Parameters:
most_energetic_primary: bool, default=True
configure()[source]

Configure module, like instance variables etc.

classmethod t2f(row)[source]
classmethod is_nu(flavor)[source]
process(blob)[source]

Knead the blob and return it

class km3modules.mc.MCTimeCorrector(name=None, **parameters)[source]

Module that converts MC hit times to JTE times. Thus, the following tables need to be converted: - mc_tracks - mc_hits

Parameters:
mc_hits_keystr, optional

Name of the mc_hits to convert (default: ‘McHits’).

mc_tracks_keystr, optional

Name of the mc_tracks to convert (default: ‘McTracks’).

event_info_keystr, optional

Name of the event_info to store this in (default: ‘EventInfo’).

configure()[source]

Configure module, like instance variables etc.

process(blob)[source]

Knead the blob and return it