17#include "G4Geo/BesG4Geo.h"
18#include "SimUtil/ReadBoostRoot.hh"
21 string GdmlManagementPath = getenv(
"GDMLMANAGEMENTDATAROOT" );
22 if ( GdmlManagementPath ==
"" ) cout <<
"BesG4Geo::GdmlManagementPath not set" << endl;
23 string GdmlFile = GdmlManagementPath + string(
"/dat/Bes.gdml" );
24 cout <<
"Construct Bes from GdmlFile " << GdmlFile << endl;
33 if ( !
m_TopVolume ) cout <<
"BesG4Geo::InitFromGdml, m_TopVolume not found" << endl;
34 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