BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MucG4Geo Class Reference

#include <MucG4Geo.h>

Inheritance diagram for MucG4Geo:

Public Member Functions

 MucG4Geo ()
 Constructor.
 ~MucG4Geo ()
 Destructor.
void InitFromGdml (const char *gdmlFile, const char *setupName)
 Initialize the instance of G4Geo.
void SetDefaultVis ()
 Set default visual attributes;.
 MucG4Geo ()
 Constructor.
 ~MucG4Geo ()
 Destructor.
void InitFromGdml (const char *gdmlFile, const char *setupName)
 Initialize the instance of G4Geo.
void SetDefaultVis ()
 Set default visual attributes;.
 MucG4Geo ()
 Constructor.
 ~MucG4Geo ()
 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;.
 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;.
 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;.

Static Public Member Functions

static MucG4GeoInstance ()
 Get a pointer to the single instance of MucG4Geo.
static MucG4GeoInstance ()
 Get a pointer to the single instance of MucG4Geo.
static MucG4GeoInstance ()
 Get a pointer to the single instance of MucG4Geo.

Additional Inherited Members

Protected Attributes inherited from SubDetectorG4Geo
int m_G4GeoInit
G4LogicalVolume * m_TopVolume

Detailed Description

Class MucGeo contains all of the objects necessary to describe the muc geometry.

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

Definition at line 21 of file DetectorDescription/G4Geo/include/G4Geo/MucG4Geo.h.

Constructor & Destructor Documentation

◆ MucG4Geo() [1/3]

MucG4Geo::MucG4Geo ( )

Constructor.

Definition at line 21 of file MucG4Geo.cxx.

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

Referenced by Instance(), and SetDefaultVis().

◆ ~MucG4Geo() [1/3]

MucG4Geo::~MucG4Geo ( )

Destructor.

Definition at line 29 of file MucG4Geo.cxx.

29{}

◆ MucG4Geo() [2/3]

MucG4Geo::MucG4Geo ( )

Constructor.

◆ ~MucG4Geo() [2/3]

MucG4Geo::~MucG4Geo ( )

Destructor.

◆ MucG4Geo() [3/3]

MucG4Geo::MucG4Geo ( )

Constructor.

◆ ~MucG4Geo() [3/3]

MucG4Geo::~MucG4Geo ( )

Destructor.

Member Function Documentation

◆ InitFromGdml() [1/3]

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

Initialize the instance of G4Geo.

Definition at line 31 of file MucG4Geo.cxx.

31 {
32 ReadGdml( gdmlFile, setupName );
33 m_TopVolume = GetLogicalVolume( "logicalMuc" );
34 if ( !m_TopVolume ) cout << "MucG4Geo::InitFromGdml, m_TopVolume not found" << endl;
35 else cout << "Muc TopVolume name " << m_TopVolume->GetName() << endl;
37
38 m_G4GeoInit = 1;
39}
void SetDefaultVis()
Set default visual attributes;.
Definition MucG4Geo.cxx:41
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;.

Referenced by MucG4Geo().

◆ InitFromGdml() [2/3]

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

Initialize the instance of G4Geo.

◆ InitFromGdml() [3/3]

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

Initialize the instance of G4Geo.

◆ Instance() [1/3]

MucG4Geo * MucG4Geo::Instance ( )
static

Get a pointer to the single instance of MucG4Geo.

Definition at line 47 of file MucG4Geo.cxx.

47 {
48 // Get a pointer to the single instance of MucG4Geo
49 if ( !m_pMucG4Geo )
50 {
51 m_pMucG4Geo = new MucG4Geo;
52 // cout<<"in MucG4Geo:: no MucG4Geo now."<<m_pMucG4Geo<<endl;
53 }
54 // cout<<"in MucG4Geo:: get MucG4Geo successfully."<<endl;
55 return m_pMucG4Geo;
56}
MucG4Geo()
Constructor.
Definition MucG4Geo.cxx:21

◆ Instance() [2/3]

MucG4Geo * MucG4Geo::Instance ( )
static

Get a pointer to the single instance of MucG4Geo.

◆ Instance() [3/3]

MucG4Geo * MucG4Geo::Instance ( )
static

Get a pointer to the single instance of MucG4Geo.

◆ SetDefaultVis() [1/3]

void MucG4Geo::SetDefaultVis ( )

Set default visual attributes;.

Definition at line 41 of file MucG4Geo.cxx.

41 {
42 // std::cout << "begin of set defaultvis" << std::endl;
43
44 // std::cout << "end of set defaultvis" << std::endl;
45}

Referenced by InitFromGdml().

◆ SetDefaultVis() [2/3]

void MucG4Geo::SetDefaultVis ( )

Set default visual attributes;.

◆ SetDefaultVis() [3/3]

void MucG4Geo::SetDefaultVis ( )

Set default visual attributes;.


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