#include <SubDetectorROOTGeo.h>
Inheritance diagram for SubDetectorROOTGeo:
Public Member Functions | |
TGeoVolumeAssembly * | GetAssemblyVolume (const std::string &an) |
Get an assembly by name;. | |
virtual TGeoVolumeAssembly * | GetAssemblyVolume (const std::string &an) |
Get an assembly by name;. | |
virtual TGeoVolumeAssembly * | GetAssemblyVolume (const std::string &an) |
Get an assembly by name;. | |
TGeoVolumeAssembly * | GetAssemblyVolume (const std::string &an) |
Get an assembly by name;. | |
virtual TGeoPhysicalNode * | GetHit (int i) |
Get ith hit in HitsArray;. | |
virtual TGeoPhysicalNode * | GetHit (int i) |
Get ith hit in HitsArray;. | |
virtual int | GetHitsNum () |
Get number of hits in HitsArray;. | |
virtual int | GetHitsNum () |
Get number of hits in HitsArray;. | |
TGeoVolume * | GetLogicalVolume (const std::string &vn) |
Get a logical volume by name;. | |
virtual TGeoVolume * | GetLogicalVolume (const std::string &vn) |
Get a logical volume by name;. | |
virtual TGeoVolume * | GetLogicalVolume (const std::string &vn) |
Get a logical volume by name;. | |
TGeoVolume * | GetLogicalVolume (const std::string &vn) |
Get a logical volume by name;. | |
TGeoNode * | GetNode (const std::string &nn) |
Get a node(physical volume) by name;. | |
virtual TGeoNode * | GetNode (const std::string &nn) |
Get a node(physical volume) by name;. | |
virtual TGeoNode * | GetNode (const std::string &nn) |
Get a node(physical volume) by name;. | |
TGeoNode * | GetNode (const std::string &nn) |
Get a node(physical volume) by name;. | |
TGeoVolume * | GetTopVolume () |
Get the top(world) volume;. | |
virtual TGeoVolume * | GetTopVolume () |
Get the top(world) volume;. | |
virtual TGeoVolume * | GetTopVolume () |
Get the top(world) volume;. | |
TGeoVolume * | GetTopVolume () |
Get the top(world) volume;. | |
int | IsInitialized () |
If the ROOT geometry of this subdetctor is initialized;. | |
virtual int | IsInitialized () |
If the ROOT geometry of this subdetctor is initialized;. | |
virtual int | IsInitialized () |
If the ROOT geometry of this subdetctor is initialized;. | |
int | IsInitialized () |
If the ROOT geometry of this subdetctor is initialized;. | |
void | ReadGdml (const char *gdmlFile, const char *setupName) |
Initialize the instance of ROOTGeo. | |
virtual void | ReadGdml (const char *gdmlFile, const char *setupName) |
Initialize the instance of ROOTGeo. | |
virtual void | ReadGdml (const char *gdmlFile, const char *setupName) |
Initialize the instance of ROOTGeo. | |
void | ReadGdml (const char *gdmlFile, const char *setupName) |
Initialize the instance of ROOTGeo. | |
void | SetChildNo (int childNo) |
virtual void | SetChildNo (int childNo) |
virtual void | SetChildNo (int childNo) |
void | SetChildNo (int childNo) |
virtual void | SetDetectorOn () |
Set all physicalNodes in m_DeteorsArray visible;. | |
virtual void | SetDetectorOn () |
Set all physicalNodes in m_DeteorsArray visible;. | |
SubDetectorROOTGeo () | |
Constructor. | |
SubDetectorROOTGeo () | |
Constructor. | |
SubDetectorROOTGeo () | |
Constructor. | |
SubDetectorROOTGeo () | |
Constructor. | |
virtual | ~SubDetectorROOTGeo () |
Destructor. | |
virtual | ~SubDetectorROOTGeo () |
Destructor. | |
virtual | ~SubDetectorROOTGeo () |
Destructor. | |
virtual | ~SubDetectorROOTGeo () |
Destructor. | |
Protected Attributes | |
int | m_2DGeoInit |
TObjArray * | m_2DHitsArray |
TObjArray * | m_2DHitsArray |
int | m_childNo |
TObjArray * | m_DetectorsArray |
TObjArray * | m_DetectorsArray |
TObjArray * | m_HitsArray |
TObjArray * | m_HitsArray |
int | m_ROOTGeoInit |
TGeoVolume * | m_TopVolume |
TGeoVolume * | m_TopVolume |
TGeoVolume * | m_TopVolume |
TGeoVolume * | m_TopVolume |
Private Attributes | |
ProcessingConfigurator | m_config |
SAXProcessor | m_sxp |
|
Constructor.
00019 : m_ROOTGeoInit(0) 00020 { 00021 // Default constructor. 00022 //m_sxp.Initialize(); 00023 }
|
|
Destructor.
00026 { 00027 m_sxp.Finalize(); 00028 }
|
|
Constructor.
|
|
Destructor.
|
|
Constructor.
|
|
Destructor.
|
|
Constructor.
|
|
Destructor.
|
|
Get an assembly by name;.
|
|
Get an assembly by name;.
|
|
Get an assembly by name;.
|
|
Get an assembly by name;.
00053 { 00054 TGeoVolumeAssembly *av = (TGeoVolumeAssembly*)TGDMLProcessor::GetInstance()->GetAssemblyVolume(an); 00055 if (!av) std::cout << "Assembly Volume " << an << " not found " << std::endl; 00056 return av; 00057 }
|
|
Get ith hit in HitsArray;.
|
|
Get ith hit in HitsArray;.
00066 { 00067 if (i < m_HitsArray->GetEntries()) 00068 return (TGeoPhysicalNode*)m_HitsArray->At(i); 00069 else 00070 return 0; 00071 }
|
|
Get number of hits in HitsArray;.
00061 { return m_HitsArray->GetEntries(); }
|
|
Get number of hits in HitsArray;.
00061 { return m_HitsArray->GetEntries(); }
|
|
Get a logical volume by name;.
|
|
Get a logical volume by name;.
|
|
Get a logical volume by name;.
|
|
Get a logical volume by name;.
00046 { 00047 TGeoVolume *lv = (TGeoVolume*)TGDMLProcessor::GetInstance()->GetLogicalVolume(vn); 00048 if (!lv) std::cout << "Logical Volume " << vn << " not found " << std::endl; 00049 return lv; 00050 }
|
|
Get a node(physical volume) by name;.
|
|
Get a node(physical volume) by name;.
|
|
Get a node(physical volume) by name;.
|
|
Get a node(physical volume) by name;.
00060 { 00061 TGeoNode *node = (TGeoNode*)TGDMLProcessor::GetInstance()->GetPhysicalVolume(nn); 00062 if (!node) std::cout << "Physical Volume " << nn << " not found " << std::endl; 00063 return node; 00064 }
|
|
Get the top(world) volume;.
00051 { return m_TopVolume; }
|
|
Get the top(world) volume;.
00052 { return m_TopVolume; }
|
|
Get the top(world) volume;.
00052 { return m_TopVolume; }
|
|
Get the top(world) volume;.
00051 { return m_TopVolume; }
|
|
If the ROOT geometry of this subdetctor is initialized;.
00042 { return m_ROOTGeoInit; }
|
|
If the ROOT geometry of this subdetctor is initialized;.
00043 { return m_ROOTGeoInit; }
|
|
If the ROOT geometry of this subdetctor is initialized;.
00043 { return m_ROOTGeoInit; }
|
|
If the ROOT geometry of this subdetctor is initialized;.
00042 { return m_ROOTGeoInit; }
|
|
Initialize the instance of ROOTGeo.
|
|
Initialize the instance of ROOTGeo.
|
|
Initialize the instance of ROOTGeo.
|
|
Initialize the instance of ROOTGeo.
00032 { 00033 m_config.SetURI( gdmlFile ); 00034 m_config.SetSetupName( setupName ); 00035 m_config.SetType ( "ROOT" ); 00036 00037 m_sxp.Configure( &m_config ); 00038 m_sxp.Initialize(); 00039 m_sxp.Run(); 00040 00041 m_TopVolume = (TGeoVolume*)TGDMLProcessor::GetInstance()->GetWorldVolume(); 00042 if (!m_TopVolume) std::cout << "Top Volume not found " << std::endl; 00043 }
|
|
00045 { m_childNo = childNo; }
|
|
00046 { m_childNo = childNo; }
|
|
00046 { m_childNo = childNo; }
|
|
00045 { m_childNo = childNo; }
|
|
Set all physicalNodes in m_DeteorsArray visible;.
|
|
Set all physicalNodes in m_DeteorsArray visible;.
00074 { 00075 for (Int_t i = 0; i < m_DetectorsArray->GetEntries(); i++) { 00076 TGeoPhysicalNode *pNode = (TGeoPhysicalNode*)m_DetectorsArray->At(i); 00077 if (pNode) pNode->SetVisibility(1); 00078 } 00079 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|