SND@LHC Software
Loading...
Searching...
No Matches
inspectGeant4Geo.py
Go to the documentation of this file.
1
import
sys
2
import
ROOT
3
from
rootpyPickler
import
Unpickler
4
import
shipRoot_conf
5
shipRoot_conf.configure
()
6
7
fname =
'geofile_full.10.0.Pythia8-TGeant4.root'
8
if
len(sys.argv) > 1:
9
fname = sys.argv[1]
10
11
fgeo = ROOT.TFile(fname)
12
sGeo = fgeo.FAIRGeom
13
import
shipDet_conf
14
run = ROOT.FairRunSim()
15
upkl =
Unpickler
(fgeo)
16
ShipGeo = upkl.load(
'ShipGeo'
)
17
modules =
shipDet_conf.configure
(run, ShipGeo)
18
run.SetUserConfig(
'g4Config.C'
)
19
run.SetName(
'TGeant4'
)
20
run.SetSink(ROOT.FairRootFileSink(ROOT.TMemFile(
'output'
,
'recreate'
)))
21
run.Init()
22
run.Run(0)
23
import
geomGeant4
24
geomGeant4.printVMCFields
()
25
geomGeant4.printWeightsandFields
()
rootpyPickler.Unpickler
Definition
rootpyPickler.py:219
geomGeant4.printWeightsandFields
printWeightsandFields(onlyWithField=True, exclude=[])
Definition
geomGeant4.py:125
geomGeant4.printVMCFields
printVMCFields()
Definition
geomGeant4.py:192
shipDet_conf.configure
configure(run, ship_geo)
Definition
shipDet_conf.py:75
shipRoot_conf.configure
configure(darkphoton=None)
Definition
shipRoot_conf.py:67
macro
inspectGeant4Geo.py
Generated by
1.9.8