CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
MRPCG4Geo_dbs Class Reference

#include <MRPCG4Geo_dbs.h>

+ Inheritance diagram for MRPCG4Geo_dbs:

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from SubDetectorG4Geo
int m_G4GeoInit
 
G4LogicalVolume * m_TopVolume
 

Detailed Description

Class TofGeo 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 DetectorDescription/G4Geo/G4Geo-00-00-13/G4Geo/MRPCG4Geo_dbs.h.

Constructor & Destructor Documentation

◆ MRPCG4Geo_dbs() [1/2]

MRPCG4Geo_dbs::MRPCG4Geo_dbs ( )

Constructor.

Definition at line 22 of file MRPCG4Geo_dbs.cxx.

23{
24 string GdmlManagementPath = getenv("GDMLMANAGEMENTROOT");
25 if (GdmlManagementPath == "") cout << "MRPCG4Geo_dbs::GdmlManagementPath not set" << endl;
26
27
28 string GdmlFile = GdmlManagementPath + string("/dat/Tof_mrpc_dbs.gdml");
29 cout << "Construct new Tof (including MRPC (double sided readout) as EC Tof) from GdmlFile " << GdmlFile << endl;
30
31
32 InitFromGdml( GdmlFile.c_str(), "Tof" );
33}
void InitFromGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.

◆ ~MRPCG4Geo_dbs() [1/2]

MRPCG4Geo_dbs::~MRPCG4Geo_dbs ( )

Destructor.

Definition at line 35 of file MRPCG4Geo_dbs.cxx.

36{ }

◆ MRPCG4Geo_dbs() [2/2]

MRPCG4Geo_dbs::MRPCG4Geo_dbs ( )

Constructor.

◆ ~MRPCG4Geo_dbs() [2/2]

MRPCG4Geo_dbs::~MRPCG4Geo_dbs ( )

Destructor.

Member Function Documentation

◆ InitFromGdml() [1/2]

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

Initialize the instance of G4Geo.

Definition at line 39 of file MRPCG4Geo_dbs.cxx.

40{
41 ReadGdml(gdmlFile, setupName);
42 m_TopVolume = GetLogicalVolume("logicalTof");
43 if (!m_TopVolume) cout << "MRPCG4Geo::InitFromGdml, m_TopVolume not found" << endl;
44 else cout << "MRPC TopVolume name " << m_TopVolume->GetName() << endl;
46
47 m_G4GeoInit = 1;
48}
void SetDefaultVis()
Set default visual attributes;.
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 MRPCG4Geo_dbs().

◆ InitFromGdml() [2/2]

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

Initialize the instance of G4Geo.

◆ SetDefaultVis() [1/2]

void MRPCG4Geo_dbs::SetDefaultVis ( )

Set default visual attributes;.

Definition at line 51 of file MRPCG4Geo_dbs.cxx.

52{
53}

Referenced by InitFromGdml().

◆ SetDefaultVis() [2/2]

void MRPCG4Geo_dbs::SetDefaultVis ( )

Set default visual attributes;.


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