13#include "TGeoVolume.h"
23 m_DetectorsArray =
new TObjArray();
24 m_HitsArray =
new TObjArray();
25 m_2DHitsArray =
new TObjArray();
40 m_config.SetURI( gdmlFile );
41 m_config.SetSetupName( setupName );
42 m_config.SetType (
"ROOT" );
44 m_sxp.Configure( &m_config );
48 m_TopVolume = (TGeoVolume*)TGDMLProcessor::GetInstance()->GetWorldVolume();
53 TGeoVolume *lv = (TGeoVolume*)TGDMLProcessor::GetInstance()->GetLogicalVolume(vn);
59 TGeoVolumeAssembly *av = (TGeoVolumeAssembly*)TGDMLProcessor::GetInstance()->GetAssemblyVolume(an);
65 TGeoNode *node = (TGeoNode*)TGDMLProcessor::GetInstance()->GetPhysicalVolume(nn);
71 if (i < m_HitsArray->GetEntries())
81 if (pNode) pNode->SetVisibility(1);
TGeoNode * GetNode(const std::string &nn)
Get a node(physical volume) by name;.
virtual TGeoPhysicalNode * GetHit(int i)
Get ith hit in HitsArray;.
TGeoVolume * GetLogicalVolume(const std::string &vn)
Get a logical volume by name;.
virtual void SetDetectorOn()
Set all physicalNodes in m_DeteorsArray visible;.
virtual ~SubDetectorROOTGeo()
Destructor.
void ReadGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of ROOTGeo.
TObjArray * m_DetectorsArray
TObjArray * m_2DHitsArray
TGeoVolumeAssembly * GetAssemblyVolume(const std::string &an)
Get an assembly by name;.
SubDetectorROOTGeo()
Constructor.