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

#include <MdcG4Geo.h>

Inheritance diagram for MdcG4Geo:

Public Member Functions

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

Additional Inherited Members

Protected Attributes inherited from SubDetectorG4Geo
int m_G4GeoInit
G4LogicalVolume * m_TopVolume

Detailed Description

Class MdcGeo contains all of the objects necessary to describe the Mdc geometry by GDML.

Definition at line 19 of file DetectorDescription/G4Geo/include/G4Geo/MdcG4Geo.h.

Constructor & Destructor Documentation

◆ MdcG4Geo() [1/3]

MdcG4Geo::MdcG4Geo ( )

Constructor.

Definition at line 20 of file MdcG4Geo.cxx.

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

◆ ~MdcG4Geo() [1/3]

MdcG4Geo::~MdcG4Geo ( )

Destructor.

Definition at line 28 of file MdcG4Geo.cxx.

28{}

◆ MdcG4Geo() [2/3]

MdcG4Geo::MdcG4Geo ( )

Constructor.

◆ ~MdcG4Geo() [2/3]

MdcG4Geo::~MdcG4Geo ( )

Destructor.

◆ MdcG4Geo() [3/3]

MdcG4Geo::MdcG4Geo ( )

Constructor.

◆ ~MdcG4Geo() [3/3]

MdcG4Geo::~MdcG4Geo ( )

Destructor.

Member Function Documentation

◆ InitFromGdml() [1/3]

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

Initialize the instance of G4Geo.

Definition at line 30 of file MdcG4Geo.cxx.

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

◆ InitFromGdml() [2/3]

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

Initialize the instance of G4Geo.

◆ InitFromGdml() [3/3]

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

Initialize the instance of G4Geo.

◆ SetDefaultVis() [1/3]

void MdcG4Geo::SetDefaultVis ( )

Set default visual attributes;.

Definition at line 40 of file MdcG4Geo.cxx.

40{}

Referenced by InitFromGdml().

◆ SetDefaultVis() [2/3]

void MdcG4Geo::SetDefaultVis ( )

Set default visual attributes;.

◆ SetDefaultVis() [3/3]

void MdcG4Geo::SetDefaultVis ( )

Set default visual attributes;.


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