Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
Alignment
CI
cmake
Core
docs
Examples
Algorithms
Detectors
Framework
Io
Python
include
python
acts
examples
geant4
__init__.py
dd4hep.py
hepmc3.py
onnx
__init__.py
dd4hep.py
detector.py
edm4hep.py
hepmc3.py
itk.py
mockupbuilder.py
odd.py
odd_light.py
reconstruction.py
simulation.py
__init__.py
_adapter.py
src
tests
Run
Scripts
Fatras
Plugins
Tests
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
dd4hep.py
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file dd4hep.py
1
import
subprocess
2
import
sys
3
4
5
# Cannot conveniently catch linker errors, so we launch a suprocess to
6
# try importing and see if it works in order to provide a useful error message
7
try
:
8
subprocess.check_call(
9
[sys.executable,
"-c"
,
"from acts import ActsPythonBindingsDDG4"
]
10
)
11
except
subprocess.CalledProcessError
as
e:
12
print
(
"Error encountered importing DD4hep. Likely you need to set LD_LIBRARY_PATH."
)
13
sys.exit(1)
14
15
from
acts._adapter
import
_patch_config
16
from
acts
import
ActsPythonBindingsDDG4
17
18
_patch_config
(ActsPythonBindingsDDG4)
19
20
from
acts.ActsPythonBindingsDDG4
import
*
acts
blob
sPHENIX
Examples
Python
python
acts
examples
geant4
dd4hep.py
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:39
using
1.8.2 with
sPHENIX GitHub integration