#include <SubDetectorG4Geo.h>
Inheritance diagram for SubDetectorG4Geo:
Public Member Functions | |
G4LogicalVolume * | GetLogicalVolume (const std::string &vn) |
Get a logical volume by name;. | |
G4LogicalVolume * | GetLogicalVolume (const std::string &vn) |
Get a logical volume by name;. | |
G4LogicalVolume * | GetTopVolume () |
Get the top(world) volume;. | |
G4LogicalVolume * | GetTopVolume () |
Get the top(world) volume;. | |
int | IsInitialized () |
If the G4 geometry of this subdetctor is initialized;. | |
int | IsInitialized () |
If the G4 geometry of this subdetctor is initialized;. | |
void | ReadGdml (const char *gdmlFile, const char *setupName) |
Initialize the instance of G4Geo. | |
void | ReadGdml (const char *gdmlFile, const char *setupName) |
Initialize the instance of G4Geo. | |
SubDetectorG4Geo () | |
Constructor. | |
SubDetectorG4Geo () | |
Constructor. | |
virtual | ~SubDetectorG4Geo () |
Destructor. | |
virtual | ~SubDetectorG4Geo () |
Destructor. | |
Protected Attributes | |
int | m_G4GeoInit |
G4LogicalVolume * | m_TopVolume |
G4LogicalVolume * | m_TopVolume |
Private Attributes | |
ProcessingConfigurator | m_config |
SAXProcessor | m_sxp |
|
Constructor.
00016 : m_G4GeoInit(0) 00017 { 00018 // Default constructor. 00019 //m_sxp.Initialize(); 00020 }
|
|
Destructor.
00023 { 00024 m_sxp.Finalize(); 00025 }
|
|
Constructor.
|
|
Destructor.
|
|
Get a logical volume by name;.
|
|
Get a logical volume by name;.
00041 { 00042 G4LogicalVolume *lv = (G4LogicalVolume*)GDMLProcessor::GetInstance()->GetLogicalVolume(vn); 00043 //if (!lv) std::cout << "Logical Volume " << vn << " not found " << std::endl; 00044 return lv; 00045 }
|
|
Get the top(world) volume;.
00050 { return m_TopVolume; }
|
|
Get the top(world) volume;.
00050 { return m_TopVolume; }
|
|
If the G4 geometry of this subdetctor is initialized;.
00044 { return m_G4GeoInit; }
|
|
If the G4 geometry of this subdetctor is initialized;.
00044 { return m_G4GeoInit; }
|
|
Initialize the instance of G4Geo.
|
|
Initialize the instance of G4Geo.
00029 { 00030 m_config.SetURI( gdmlFile ); 00031 m_config.SetSetupName( setupName ); 00032 m_config.SetType ( "G4" ); 00033 00034 m_sxp.Configure( &m_config ); 00035 m_sxp.Initialize(); 00036 m_sxp.Run(); 00037 }
|
|
|
|
|
|
|
|
|
|
|