gtsimulation.common#
Common utilities and definitions used throughout the gtsimulation package.
This subpackage provides a collection of shared components that are not tied to a specific simulation module. It includes physical constants, unit definitions, coordinate origins, utility functions, and common enumerations used for controlling simulation processes and data handling.
- class gtsimulation.common.Constants[source]#
- alpha = 0.0072973525664#
- ao = 5.291772086e-09#
- c = 299792458.0#
- e = 1.602176634e-19#
- h = 6.62607015e-34#
- hbar = 6.582119514e-22#
- hbarc = 197.3269788#
- me = 0.5109989461#
- mhe4 = 3728.40129745092#
- u = 4.00260325413#
- class gtsimulation.common.Origins(*values)[source]#
- Albedo = 2#
- Galactic = 1#
- Precipitated = 4#
- QuasiTrapped = 3#
- Trapped = 5#
- Unknown = 6#
- class gtsimulation.common.Units[source]#
- AU = 149597870700.0#
- AU2km = 149597870.7#
- AU2m = 149597870700.0#
- EeV = 1000000000000.0#
- G = 100000.0#
- GV = 1000.0#
- GeV = 1000.0#
- MV = 1#
- MeV = 1#
- MeV2g = 1.7826619216224e-27#
- MeV2kg = 1.7826619216224e-30#
- PV = 1000000000.0#
- PeV = 1000000000.0#
- RE = 6378137.1#
- RE2km = 6378.1371#
- RE2m = 6378137.1#
- RG2km = 2631.2#
- RG2m = 2631200#
- RJ2km = 71488.0#
- RJ2m = 71488000#
- RM2km = 1737.4#
- RM2m = 1737400#
- RMa2km = 3396.19#
- RMa2m = 3396190#
- RMe2km = 2440.53#
- RMe2m = 2440530#
- RN2km = 24764.0#
- RN2m = 24764000#
- RS2km = 60268.0#
- RS2m = 60268000#
- RU2km = 25559.0#
- RU2m = 25559000#
- T = 1000000000.0#
- T2nT = 1000000000.0#
- TV = 1000000.0#
- TeV = 1000000.0#
- V = 1e-06#
- astronomicalunit = 149597870700.0#
- day = 86400#
- deg = 1#
- degree = 1#
- eV = 1e-06#
- earthradius = 6378137.1#
- electronvolt = 1e-06#
- exaelectronvolt = 1000000000000.0#
- fm2cm = 1e-13#
- gauss = 100000.0#
- gigaelectronvolt = 1000.0#
- gigavolt = 1000.0#
- kV = 0.001#
- keV = 0.001#
- kiloelectronvolt = 0.001#
- kilometer = 1000.0#
- kiloparsec = 3.08567758149e+19#
- kilovolt = 0.001#
- km = 1000.0#
- km2m = 1000.0#
- kpc = 3.08567758149e+19#
- m = 1#
- mG = 100.0#
- mT = 1000000.0#
- megaelectronvolt = 1#
- megavolt = 1#
- meter = 1#
- microgauss = 0.09999999999999999#
- microsecond = 1e-06#
- microtesla = 1000.0#
- milligauss = 100.0#
- millisecond = 0.001#
- millitesla = 1000000.0#
- ms = 0.001#
- nT = 1#
- nanosecond = 1e-09#
- nanotesla = 1#
- ns = 1e-09#
- parsec = 3.08567758149e+16#
- pc = 3.08567758149e+16#
- petaelectronvolt = 1000000000.0#
- petavolt = 1000000000.0#
- rad = 57.29577951308232#
- radian = 57.29577951308232#
- s = 1#
- second = 1#
- teraelectronvolt = 1000000.0#
- teravolt = 1000000.0#
- tesla = 1000000000.0#
- uG = 0.09999999999999999#
- uT = 1000.0#
- us = 1e-06#
- volt = 1e-06#
- year = 31557600.0#
Modules