5 #include "geartgeo/TGeoGeometryInitializer.h"
6 #include "TGDMLParse.h"
7 #include "TGeoVolume.h"
8 #include "TGeoManager.h"
26 TGeoGeometryInitializer::TGeoGeometryInitializer(std::string gdmlFile)
28 TGDMLParse gdmlparser;
29 _geoMgr =
new TGeoManager(
"",
"");
30 TGeoVolume *top=gdmlparser.GDMLReadFile(gdmlFile.c_str());
32 throw ParseException( std::string(
"TGeoGeometryInitializer: Could not find GDML file ")
34 _geoMgr=top->GetGeoManager();
35 _geoMgr->SetTopVolume(top);
36 _geoMgr->CloseGeometry();
ParseException used for parse errors, e.g.