13#include "TGeoVolume.h"
33 m_config.SetURI( gdmlFile );
34 m_config.SetSetupName( setupName );
35 m_config.SetType (
"ROOT" );
37 m_sxp.Configure( &m_config );
41 m_TopVolume = (TGeoVolume*)TGDMLProcessor::GetInstance()->GetWorldVolume();
42 if (!
m_TopVolume) std::cout <<
"Top Volume not found " << std::endl;
47 TGeoVolume *lv = (TGeoVolume*)TGDMLProcessor::GetInstance()->GetLogicalVolume(vn);
48 if (!lv) std::cout <<
"Logical Volume " << vn <<
" not found " << std::endl;
54 TGeoVolumeAssembly *av = (TGeoVolumeAssembly*)TGDMLProcessor::GetInstance()->GetAssemblyVolume(an);
55 if (!av) std::cout <<
"Assembly Volume " << an <<
" not found " << std::endl;
61 TGeoNode *node = (TGeoNode*)TGDMLProcessor::GetInstance()->GetPhysicalVolume(nn);
62 if (!node) std::cout <<
"Physical Volume " << nn <<
" not found " << std::endl;
TGeoNode * GetNode(const std::string &nn)
Get a node(physical volume) by name;.
TGeoVolume * GetLogicalVolume(const std::string &vn)
Get a logical volume by name;.
virtual ~SubDetectorROOTGeo()
Destructor.
void ReadGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of ROOTGeo.
TGeoVolumeAssembly * GetAssemblyVolume(const std::string &an)
Get an assembly by name;.
SubDetectorROOTGeo()
Constructor.