23 string GdmlManagementPath = getenv(
"GDMLMANAGEMENTROOT");
24 if (GdmlManagementPath ==
"") cout <<
"BesG4Geo::GdmlManagementPath not set" << endl;
25 string GdmlFile = GdmlManagementPath + string(
"/dat/Bes.gdml");
26 cout <<
"Construct Bes from GdmlFile " << GdmlFile << endl;
38 if (!
m_TopVolume) cout <<
"BesG4Geo::InitFromGdml, m_TopVolume not found" << endl;
39 else cout <<
"Bes TopVolume name " <<
m_TopVolume->GetName() << endl;
void InitFromGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.
void SetDefaultVis()
Set default visual attributes;.
void ReadGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.
G4LogicalVolume * GetLogicalVolume(const std::string &vn)
Get a logical volume by name;.
G4LogicalVolume * m_TopVolume