Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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