Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SubDetectorROOTGeo Class Reference

#include <SubDetectorROOTGeo.h>

Inheritance diagram for SubDetectorROOTGeo:

EmcROOTGeo EmcROOTGeo EmcROOTGeo EmcROOTGeo MdcROOTGeo MdcROOTGeo MdcROOTGeo MdcROOTGeo MucROOTGeo MucROOTGeo MucROOTGeo MucROOTGeo TofROOTGeo TofROOTGeo TofROOTGeo TofROOTGeo List of all members.

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

Detailed Description

Class SubDetectorROOTGeo is a base class for the four subdetector ROOT geometry class.

Author:
Zhengyun You {mailto:youzy@hep.pku.cn}


Constructor & Destructor Documentation

SubDetectorROOTGeo::SubDetectorROOTGeo  ) 
 

Constructor.

00019   : m_ROOTGeoInit(0)
00020 { 
00021   // Default constructor.
00022   //m_sxp.Initialize();
00023 }

SubDetectorROOTGeo::~SubDetectorROOTGeo  )  [virtual]
 

Destructor.

00026 { 
00027   m_sxp.Finalize();
00028 }

SubDetectorROOTGeo::SubDetectorROOTGeo  ) 
 

Constructor.

virtual SubDetectorROOTGeo::~SubDetectorROOTGeo  )  [virtual]
 

Destructor.

SubDetectorROOTGeo::SubDetectorROOTGeo  ) 
 

Constructor.

virtual SubDetectorROOTGeo::~SubDetectorROOTGeo  )  [virtual]
 

Destructor.

SubDetectorROOTGeo::SubDetectorROOTGeo  ) 
 

Constructor.

virtual SubDetectorROOTGeo::~SubDetectorROOTGeo  )  [virtual]
 

Destructor.


Member Function Documentation

TGeoVolumeAssembly* SubDetectorROOTGeo::GetAssemblyVolume const std::string &  an  ) 
 

Get an assembly by name;.

virtual TGeoVolumeAssembly* SubDetectorROOTGeo::GetAssemblyVolume const std::string &  an  )  [virtual]
 

Get an assembly by name;.

virtual TGeoVolumeAssembly* SubDetectorROOTGeo::GetAssemblyVolume const std::string &  an  )  [virtual]
 

Get an assembly by name;.

TGeoVolumeAssembly * SubDetectorROOTGeo::GetAssemblyVolume const std::string &  an  ) 
 

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 }

virtual TGeoPhysicalNode* SubDetectorROOTGeo::GetHit int  i  )  [virtual]
 

Get ith hit in HitsArray;.

TGeoPhysicalNode * SubDetectorROOTGeo::GetHit int  i  )  [virtual]
 

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 }

virtual int SubDetectorROOTGeo::GetHitsNum  )  [inline, virtual]
 

Get number of hits in HitsArray;.

00061 { return m_HitsArray->GetEntries(); }

virtual int SubDetectorROOTGeo::GetHitsNum  )  [inline, virtual]
 

Get number of hits in HitsArray;.

00061 { return m_HitsArray->GetEntries(); }

TGeoVolume* SubDetectorROOTGeo::GetLogicalVolume const std::string &  vn  ) 
 

Get a logical volume by name;.

virtual TGeoVolume* SubDetectorROOTGeo::GetLogicalVolume const std::string &  vn  )  [virtual]
 

Get a logical volume by name;.

virtual TGeoVolume* SubDetectorROOTGeo::GetLogicalVolume const std::string &  vn  )  [virtual]
 

Get a logical volume by name;.

TGeoVolume * SubDetectorROOTGeo::GetLogicalVolume const std::string &  vn  ) 
 

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 }

TGeoNode* SubDetectorROOTGeo::GetNode const std::string &  nn  ) 
 

Get a node(physical volume) by name;.

virtual TGeoNode* SubDetectorROOTGeo::GetNode const std::string &  nn  )  [virtual]
 

Get a node(physical volume) by name;.

virtual TGeoNode* SubDetectorROOTGeo::GetNode const std::string &  nn  )  [virtual]
 

Get a node(physical volume) by name;.

TGeoNode * SubDetectorROOTGeo::GetNode const std::string &  nn  ) 
 

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 }

TGeoVolume* SubDetectorROOTGeo::GetTopVolume  )  [inline]
 

Get the top(world) volume;.

00051 { return m_TopVolume; }

virtual TGeoVolume* SubDetectorROOTGeo::GetTopVolume  )  [inline, virtual]
 

Get the top(world) volume;.

00052 { return m_TopVolume; }

virtual TGeoVolume* SubDetectorROOTGeo::GetTopVolume  )  [inline, virtual]
 

Get the top(world) volume;.

00052 { return m_TopVolume; }

TGeoVolume* SubDetectorROOTGeo::GetTopVolume  )  [inline]
 

Get the top(world) volume;.

00051 { return m_TopVolume; }

int SubDetectorROOTGeo::IsInitialized  )  [inline]
 

If the ROOT geometry of this subdetctor is initialized;.

00042 { return m_ROOTGeoInit; }

virtual int SubDetectorROOTGeo::IsInitialized  )  [inline, virtual]
 

If the ROOT geometry of this subdetctor is initialized;.

00043 { return m_ROOTGeoInit; }

virtual int SubDetectorROOTGeo::IsInitialized  )  [inline, virtual]
 

If the ROOT geometry of this subdetctor is initialized;.

00043 { return m_ROOTGeoInit; }

int SubDetectorROOTGeo::IsInitialized  )  [inline]
 

If the ROOT geometry of this subdetctor is initialized;.

00042 { return m_ROOTGeoInit; }

void SubDetectorROOTGeo::ReadGdml const char *  gdmlFile,
const char *  setupName
 

Initialize the instance of ROOTGeo.

virtual void SubDetectorROOTGeo::ReadGdml const char *  gdmlFile,
const char *  setupName
[virtual]
 

Initialize the instance of ROOTGeo.

virtual void SubDetectorROOTGeo::ReadGdml const char *  gdmlFile,
const char *  setupName
[virtual]
 

Initialize the instance of ROOTGeo.

void SubDetectorROOTGeo::ReadGdml const char *  gdmlFile,
const char *  setupName
 

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 }

void SubDetectorROOTGeo::SetChildNo int  childNo  )  [inline]
 

00045 { m_childNo = childNo; }

virtual void SubDetectorROOTGeo::SetChildNo int  childNo  )  [inline, virtual]
 

00046 { m_childNo = childNo; }

virtual void SubDetectorROOTGeo::SetChildNo int  childNo  )  [inline, virtual]
 

00046 { m_childNo = childNo; }

void SubDetectorROOTGeo::SetChildNo int  childNo  )  [inline]
 

00045 { m_childNo = childNo; }

virtual void SubDetectorROOTGeo::SetDetectorOn  )  [virtual]
 

Set all physicalNodes in m_DeteorsArray visible;.

void SubDetectorROOTGeo::SetDetectorOn  )  [virtual]
 

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 }


Member Data Documentation

int SubDetectorROOTGeo::m_2DGeoInit [protected]
 

TObjArray* SubDetectorROOTGeo::m_2DHitsArray [protected]
 

TObjArray* SubDetectorROOTGeo::m_2DHitsArray [protected]
 

int SubDetectorROOTGeo::m_childNo [protected]
 

ProcessingConfigurator SubDetectorROOTGeo::m_config [private]
 

TObjArray* SubDetectorROOTGeo::m_DetectorsArray [protected]
 

TObjArray* SubDetectorROOTGeo::m_DetectorsArray [protected]
 

TObjArray* SubDetectorROOTGeo::m_HitsArray [protected]
 

TObjArray* SubDetectorROOTGeo::m_HitsArray [protected]
 

int SubDetectorROOTGeo::m_ROOTGeoInit [protected]
 

SAXProcessor SubDetectorROOTGeo::m_sxp [private]
 

TGeoVolume* SubDetectorROOTGeo::m_TopVolume [protected]
 

TGeoVolume* SubDetectorROOTGeo::m_TopVolume [protected]
 

TGeoVolume* SubDetectorROOTGeo::m_TopVolume [protected]
 

TGeoVolume* SubDetectorROOTGeo::m_TopVolume [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 18:50:10 2011 for BOSS6.5.5 by  doxygen 1.3.9.1