km3pipe.mc
¶
Monte Carlo related things.
Module Contents¶
Functions¶
|
Convert GEANT particle ID to PDG |
|
Convert PDG ID to human readable names |
|
Return best match of a PDG ID for the given name |
|
Grab most energetic particle from mc_tracks dataframe. |
|
Grab leading particle (neutrino, most energetic bundle muon). |
|
Build a 'flavor' from the 'type' column. |
|
flavor string -> is_neutrino |
|
flavor string -> is_neutrino |
|
Function that converts MC times to JTE times. |
Attributes¶
- km3pipe.mc.leading_particle(df)[source]¶
Grab leading particle (neutrino, most energetic bundle muon).
Note: selecting the most energetic mc particle does not always select the neutrino! In some sub-percent cases, the post-interaction secondaries can have more energy than the incoming neutrino!
aanet convention: mc_tracks[0] = neutrino so grab the first row
if the first row is not unique (neutrinos are unique), it’s a muon bundle grab the most energetic then
- km3pipe.mc.convert_mc_times_to_jte_times(times_mc, evt_timestamp_in_ns, evt_mc_time)[source]¶
Function that converts MC times to JTE times.
- Parameters:
- times_mcnp.ndarray
Time array with MC times.
- evt_timestamp_in_nsint
Total timestamp of the event in nanoseconds.
- evt_mc_timeint
Mc time of the event in nanoseconds.
- Returns:
- ndarray
Converted time array with JTE times.