16#include "G4Geo/EmcG4Geo.h"
17#include "Identifier/EmcID.h"
22 string GdmlManagementPath = getenv(
"GDMLMANAGEMENTDATAROOT" );
23 if ( GdmlManagementPath ==
"" ) cout <<
"EmcG4Geo::GdmlManagementPath not set!" << endl;
24 string GdmlFile = GdmlManagementPath + string(
"/dat/Emc.gdml" );
25 cout <<
"EmcG4Geo: Construct Emc from GdmlFile " << GdmlFile << endl;
34 if ( !
m_TopVolume ) cout <<
"EmcG4Geo::InitFromGdml, m_TopVolume not found" << endl;
35 else cout <<
"Emc TopVolume name " <<
m_TopVolume->GetName() << endl;
static EmcG4Geo * Instance()
Get a pointer to the single instance of EmcG4Geo.
void SetDefaultVis()
Set default visual attributes;.
void InitFromGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.
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