BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TofG4Geo Class Reference

#include <TofG4Geo.h>

+ Inheritance diagram for TofG4Geo:

Public Member Functions

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

Constructor & Destructor Documentation

◆ TofG4Geo() [1/2]

TofG4Geo::TofG4Geo ( )

Constructor.

Definition at line 22 of file TofG4Geo.cxx.

23{
24 string GdmlManagementPath = getenv("GDMLMANAGEMENTROOT");
25 if (GdmlManagementPath == "") cout << "TofG4Geo::GdmlManagementPath not set" << endl;
26
27
28
29 string GdmlFile = GdmlManagementPath + string("/dat/Tof.gdml");
30 cout << "Construct old Tof from GdmlFile " << GdmlFile << endl;
31
32
33
34 InitFromGdml( GdmlFile.c_str(), "Tof" );
35}
void InitFromGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.
Definition: TofG4Geo.cxx:41

◆ ~TofG4Geo() [1/2]

TofG4Geo::~TofG4Geo ( )

Destructor.

Definition at line 37 of file TofG4Geo.cxx.

38{ }

◆ TofG4Geo() [2/2]

TofG4Geo::TofG4Geo ( )

Constructor.

◆ ~TofG4Geo() [2/2]

TofG4Geo::~TofG4Geo ( )

Destructor.

Member Function Documentation

◆ InitFromGdml() [1/2]

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

Initialize the instance of G4Geo.

Definition at line 41 of file TofG4Geo.cxx.

42{
43 ReadGdml(gdmlFile, setupName);
44 m_TopVolume = GetLogicalVolume("logicalTof");
45 if (!m_TopVolume) cout << "TofG4Geo::InitFromGdml, m_TopVolume not found" << endl;
46 else cout << "Tof TopVolume name " << m_TopVolume->GetName() << endl;
48
49 m_G4GeoInit = 1;
50}
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;.
void SetDefaultVis()
Set default visual attributes;.
Definition: TofG4Geo.cxx:53

Referenced by TofG4Geo().

◆ InitFromGdml() [2/2]

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

Initialize the instance of G4Geo.

◆ SetDefaultVis() [1/2]

void TofG4Geo::SetDefaultVis ( )

Set default visual attributes;.

Definition at line 53 of file TofG4Geo.cxx.

54{
55}

Referenced by InitFromGdml().

◆ SetDefaultVis() [2/2]

void TofG4Geo::SetDefaultVis ( )

Set default visual attributes;.


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