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.
Functions
|
Classes
- 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#
- 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#
- RJ2km = 71492.0#
- RJ2m = 71492000#
- RM2km = 1737.4#
- RM2m = 1737400#
- RS2km = 60268.0#
- RS2m = 60268000#
- 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#
- 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#
- kpc2m = 3.08567758149e+19#
- m = 1#
- megaelectronvolt = 1#
- megavolt = 1#
- meter = 1#
- microsecond = 1e-06#
- millisecond = 0.001#
- ms = 0.001#
- nanosecond = 1e-09#
- ns = 1e-09#
- parsec = 3.08567758149e+16#
- pc = 3.08567758149e+16#
- pc2m = 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#
- us = 1e-06#
- volt = 1e-06#
- year = 31557600.0#
Modules