2 void TGeoToGdml(
const char *infile=
"genfitGeom_AllSi_v3.root",
const char *tgeoobj=
"FAIRGeom")
4 TFile *f = TFile::Open(infile);
5 TGeoManager *geomanager = ( TGeoManager *) f->Get(tgeoobj);
7 sprintf(outfilename,
"%s.gdml",tgeoobj);
8 geomanager->Export(outfilename);