km3modules.mc
¶
MC Helpers.
Module Contents¶
Classes¶
Sets the global random seed of the numpy random generator |
|
Extract MC info of 1st MC track. |
|
Module that converts MC hit times to JTE times. |
Attributes¶
- 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
- class km3modules.mc.McTruth(name=None, **parameters)[source]¶
Extract MC info of 1st MC track.
- Parameters:
- most_energetic_primary: bool, default=True
- 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’).