Hi, I am trying to export my TGeo geometry to gdml using gGeoManager->Export(“test.gdml”)
I have declare -x PYTHONPATH="/opt/alice/root/v5-27-04/lib:/opt/alice/root/v5-27-04/geom/gdml"
What could be the problem? Thanks,
filimon
root [2] gGeoManager->Export(“test.gdml”)
Info in TGeoManager::Export: Exporting mygeometry as gdml code
Error: Function Exec(“from math import *”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“import writer”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“import ROOTwriter”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“geomgr = ROOT.gGeoManager”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“topV = geomgr.GetTopVolume()”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“gdmlwriter = writer.writer(‘test.gdml’)”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“binding = ROOTwriter.ROOTwriter(gdmlwriter)”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“matlist = geomgr.GetListOfMaterials()”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“binding.dumpMaterials(matlist)”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“shapelist = geomgr.GetListOfShapes()”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“binding.dumpSolids(shapelist)”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec>: Traversing geometry tree’") is not defined in $Exec("print 'Info in <TPython (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“gdmlwriter.addSetup(‘default’, ‘1.0’, topV.GetName())”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“binding.examineVol(topV)”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Error: Function Exec(“gdmlwriter.writeFile()”) is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
Info in TPython::Exec: GDML Export complete - test.gdml is ready
(Int_t)1
root [3]