CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
BesG4Geo Class Reference

#include <BesG4Geo.h>

+ Inheritance diagram for BesG4Geo:

Public Member Functions

 BesG4Geo ()
 Constructor.
 
 ~BesG4Geo ()
 Destructor.
 
void InitFromGdml (const char *gdmlFile, const char *setupName)
 Initialize the instance of G4Geo.
 
void SetDefaultVis ()
 Set default visual attributes;.
 
- Public Member Functions inherited from SubDetectorG4Geo
 SubDetectorG4Geo ()
 Constructor.
 
virtual ~SubDetectorG4Geo ()
 Destructor.
 
void ReadGdml (const char *gdmlFile, const char *setupName)
 Initialize the instance of G4Geo.
 
int IsInitialized ()
 If the G4 geometry of this subdetctor is initialized;.
 
G4LogicalVolume * GetLogicalVolume (const std::string &vn)
 Get a logical volume by name;.
 
G4LogicalVolume * GetTopVolume ()
 Get the top(world) volume;.
 

Additional Inherited Members

- Protected Attributes inherited from SubDetectorG4Geo
int m_G4GeoInit
 
G4LogicalVolume * m_TopVolume
 

Detailed Description

Class BesGeo contains all of the objects necessary to describe the tof geometry.

Author
Zhengyun You \URL{youzy.nosp@m.@hep.nosp@m..pku..nosp@m.cn}

Definition at line 21 of file BesG4Geo.h.

Constructor & Destructor Documentation

◆ BesG4Geo()

BesG4Geo::BesG4Geo ( )

Constructor.

Definition at line 21 of file BesG4Geo.cxx.

22{
23 string GdmlManagementPath = getenv("GDMLMANAGEMENTROOT");
24 if (GdmlManagementPath == "") cout << "BesG4Geo::GdmlManagementPath not set" << endl;
25 string GdmlFile = GdmlManagementPath + string("/dat/Bes.gdml");
26 cout << "Construct Bes from GdmlFile " << GdmlFile << endl;
27 InitFromGdml( GdmlFile.c_str(), "Default" );
28}
void InitFromGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.
Definition BesG4Geo.cxx:34

◆ ~BesG4Geo()

BesG4Geo::~BesG4Geo ( )

Destructor.

Definition at line 30 of file BesG4Geo.cxx.

31{ }

Member Function Documentation

◆ InitFromGdml()

void BesG4Geo::InitFromGdml ( const char * gdmlFile,
const char * setupName )

Initialize the instance of G4Geo.

Definition at line 34 of file BesG4Geo.cxx.

35{
36 ReadGdml(gdmlFile, setupName);
37 m_TopVolume = GetLogicalVolume("logicalWorld");
38 if (!m_TopVolume) cout << "BesG4Geo::InitFromGdml, m_TopVolume not found" << endl;
39 else cout << "Bes TopVolume name " << m_TopVolume->GetName() << endl;
41
42 m_G4GeoInit = 1;
43}
void SetDefaultVis()
Set default visual attributes;.
Definition BesG4Geo.cxx:46
void ReadGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.
G4LogicalVolume * GetLogicalVolume(const std::string &vn)
Get a logical volume by name;.
G4LogicalVolume * m_TopVolume

Referenced by BesG4Geo().

◆ SetDefaultVis()

void BesG4Geo::SetDefaultVis ( )

Set default visual attributes;.

Definition at line 46 of file BesG4Geo.cxx.

47{
48}

Referenced by InitFromGdml().


The documentation for this class was generated from the following files: