ATLAS Offline Software
Tracking
Acts
ActsInterop
python
UnitConstants.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3
"""
4
Wraps the ACTS unit constants loaded from a ROOT dictionary.
5
To use these values please use
6
7
```python
8
from ActsInterop import UnitConstants
9
value = 15*UnitConstants.mm
10
```
11
12
"""
13
14
from
ROOT
import
ActsUnitConstants
15
dummy =
ActsUnitConstants.ROOT6_NamespaceAutoloadHook
16
17
from
ROOT
import
Acts
18
import
inspect
19
20
# Pull in all named unit constants into this namespace to improve ergonomics
21
for
name, val
in
inspect.getmembers(Acts.UnitConstants):
22
if
name.startswith(
"_"
):
continue
23
locals()[name] = val
24
ActsUnitConstants::ROOT6_NamespaceAutoloadHook
Definition:
ActsUnitDict.h:9
Generated on Wed Jan 8 2025 21:21:02 for ATLAS Offline Software by
1.8.18