|
|
|||
Warning, file /acts/Detray/tests/tools/python/utils/units.py was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 # This file is part of the ACTS project. 0002 # 0003 # Copyright (C) 2016 CERN for the benefit of the ACTS project 0004 # 0005 # This Source Code Form is subject to the terms of the Mozilla Public 0006 # License, v. 2.0. If a copy of the MPL was not distributed with this 0007 # file, You can obtain one at https://mozilla.org/MPL/2.0/. 0008 0009 import math 0010 0011 # Length, native unit mm 0012 um = 1e-3 0013 mm = 1.0 0014 cm = 1e1 0015 m = 1e3 0016 0017 # Angle, native unit rad 0018 mrad = 1e-3 0019 rad = 1.0 0020 degree = math.pi / 180.0 0021 0022 # Energy / momentum, native unit GeV 0023 eV = 1e-9 0024 keV = 1e-6 0025 MeV = 1e-3 0026 GeV = 1.0 0027 TeV = 1e3
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|