13#include "TGeoVolume.h"
23 m_DetectorsArray =
new TObjArray();
24 m_HitsArray =
new TObjArray();
25 m_2DHitsArray =
new TObjArray();
36 m_config.SetURI( gdmlFile );
37 m_config.SetSetupName( setupName );
38 m_config.SetType (
"ROOT" );
40 m_sxp.Configure( &m_config );
44 m_TopVolume = (TGeoVolume*)TGDMLProcessor::GetInstance()->GetWorldVolume();
49 TGeoVolume *lv = (TGeoVolume*)TGDMLProcessor::GetInstance()->GetLogicalVolume(vn);
55 TGeoVolumeAssembly *av = (TGeoVolumeAssembly*)TGDMLProcessor::GetInstance()->GetAssemblyVolume(an);
61 TGeoNode *node = (TGeoNode*)TGDMLProcessor::GetInstance()->GetPhysicalVolume(nn);
67 if (i < m_HitsArray->GetEntries())
77 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
TGeoVolumeAssembly * GetAssemblyVolume(const std::string &an)
Get an assembly by name;.
SubDetectorROOTGeo()
Constructor.