Source code for km3pipe.constants

# Filename: constants.py
# pylint: disable=C0103
# pragma: no cover
"""
The constants used in KM3Pipe.

"""
from __future__ import absolute_import, print_function, division

# TODO: this module should be refactored soon!

import math

__author__ = "Tamas Gal"
__copyright__ = "Copyright 2016, Tamas Gal and the KM3NeT collaboration."
__credits__ = []
__license__ = "MIT"
__maintainer__ = "Tamas Gal"
__email__ = "tgal@km3net.de"
__status__ = "Development"

# Detector related parameters
[docs]arca_frame_duration = 0.1 # s
[docs]orca_frame_duration = 0.1 # s
[docs]c = 2.99792458e8 # m/s
[docs]n_water_antares_phase = 1.3499
[docs]n_water_antares_group = 1.3797
[docs]n_water_km3net_group = 1.3787
[docs]n_water_antares = n_water_antares_group
[docs]theta_cherenkov_water_antares = math.acos(1 / n_water_antares_phase)
[docs]theta_cherenkov_water_km3net = math.acos(1 / n_water_km3net_group)
[docs]c_water_antares = c / n_water_antares_group
[docs]c_water_km3net = c / n_water_km3net_group
# Math
[docs]pi = math.pi
[docs]e = math.e
# Default values for time residuals
[docs]dt_window_l = -15 # ns
[docs]dt_window_h = +25 # ns