BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
MRPCG4Geo Class Reference

#include <MRPCG4Geo.h>

+ Inheritance diagram for MRPCG4Geo:

Public Member Functions

 MRPCG4Geo ()
 Constructor.
 
 ~MRPCG4Geo ()
 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 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 MRPCG4Geo.h.

Constructor & Destructor Documentation

◆ MRPCG4Geo()

MRPCG4Geo::MRPCG4Geo ( )

Constructor.

Definition at line 22 of file MRPCG4Geo.cxx.

23{
24 string GdmlManagementPath = getenv("GDMLMANAGEMENTROOT");
25 if (GdmlManagementPath == "") cout << "MRPCG4Geo::GdmlManagementPath not set" << endl;
26
27
28 string GdmlFile = GdmlManagementPath + string("/dat/Tof_mrpc.gdml");
29 cout << "Construct new Tof (including MRPC (double sided readout) as End Cap 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.
Definition: MRPCG4Geo.cxx:39

◆ ~MRPCG4Geo()

MRPCG4Geo::~MRPCG4Geo ( )

Destructor.

Definition at line 35 of file MRPCG4Geo.cxx.

36{ }

Member Function Documentation

◆ InitFromGdml()

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

Initialize the instance of G4Geo.

Definition at line 39 of file MRPCG4Geo.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;.
Definition: MRPCG4Geo.cxx:51
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 MRPCG4Geo().

◆ SetDefaultVis()

void MRPCG4Geo::SetDefaultVis ( )

Set default visual attributes;.

Definition at line 51 of file MRPCG4Geo.cxx.

52{
53}

Referenced by InitFromGdml().


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