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

Constructor & Destructor Documentation

◆ MRPCG4Geo() [1/3]

MRPCG4Geo::MRPCG4Geo ( )

Constructor.

Definition at line 20 of file MRPCG4Geo.cxx.

20 {
21 string GdmlManagementPath = getenv( "GDMLMANAGEMENTDATAROOT" );
22 if ( GdmlManagementPath == "" ) cout << "MRPCG4Geo::GdmlManagementPath not set" << endl;
23
24 string GdmlFile = GdmlManagementPath + string( "/dat/Tof_mrpc.gdml" );
25 cout << "Construct new Tof (including MRPC (double sided readout) as End Cap Tof) from "
26 "GdmlFile "
27 << GdmlFile << endl;
28
29 InitFromGdml( GdmlFile.c_str(), "Tof" );
30}
void InitFromGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.
Definition MRPCG4Geo.cxx:34

◆ ~MRPCG4Geo() [1/3]

MRPCG4Geo::~MRPCG4Geo ( )

Destructor.

Definition at line 32 of file MRPCG4Geo.cxx.

32{}

◆ MRPCG4Geo() [2/3]

MRPCG4Geo::MRPCG4Geo ( )

Constructor.

◆ ~MRPCG4Geo() [2/3]

MRPCG4Geo::~MRPCG4Geo ( )

Destructor.

◆ MRPCG4Geo() [3/3]

MRPCG4Geo::MRPCG4Geo ( )

Constructor.

◆ ~MRPCG4Geo() [3/3]

MRPCG4Geo::~MRPCG4Geo ( )

Destructor.

Member Function Documentation

◆ InitFromGdml() [1/3]

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

Initialize the instance of G4Geo.

Definition at line 34 of file MRPCG4Geo.cxx.

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

◆ InitFromGdml() [2/3]

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

Initialize the instance of G4Geo.

◆ InitFromGdml() [3/3]

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

Initialize the instance of G4Geo.

◆ SetDefaultVis() [1/3]

void MRPCG4Geo::SetDefaultVis ( )

Set default visual attributes;.

Definition at line 44 of file MRPCG4Geo.cxx.

44{}

Referenced by InitFromGdml().

◆ SetDefaultVis() [2/3]

void MRPCG4Geo::SetDefaultVis ( )

Set default visual attributes;.

◆ SetDefaultVis() [3/3]

void MRPCG4Geo::SetDefaultVis ( )

Set default visual attributes;.


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