Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ExTGDetectorConstruction Class Reference

Detector construction class using text geometry file. More...

#include <Doxymodules_persistency.h>

Inheritance diagram for ExTGDetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 ExTGDetectorConstruction ()
 
 ~ExTGDetectorConstruction ()
 
G4VPhysicalVolumeConstruct ()
 

Private Attributes

G4tgrMessengerfMessenger
 

Detailed Description

Detector construction class using text geometry file.

Definition at line 115 of file Doxymodules_persistency.h.

Constructor & Destructor Documentation

◆ ExTGDetectorConstruction()

ExTGDetectorConstruction::ExTGDetectorConstruction ( )

Definition at line 35 of file ExTGDetectorConstruction.cc.

◆ ~ExTGDetectorConstruction()

ExTGDetectorConstruction::~ExTGDetectorConstruction ( )

Definition at line 41 of file ExTGDetectorConstruction.cc.

42{
43 delete fMessenger;
44}

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * ExTGDetectorConstruction::Construct ( )

Definition at line 47 of file ExTGDetectorConstruction.cc.

48{
49 //------------------------------------------------
50 // Define one or several text files containing the geometry description
51 //------------------------------------------------
52 G4String filename = "g4geom.txt";
53 G4tgbVolumeMgr* volmgr = G4tgbVolumeMgr::GetInstance();
54 volmgr->AddTextFile(filename);
55
56 //------------------------------------------------
57 // Read the text files and construct the GEANT4 geometry
58 //------------------------------------------------
59 G4VPhysicalVolume* physiWorld = volmgr->ReadAndConstructDetector();
60
61 return physiWorld;
62}

Member Data Documentation

◆ fMessenger

G4tgrMessenger* ExTGDetectorConstruction::fMessenger
private

Definition at line 51 of file ExTGDetectorConstruction.hh.


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

Applications | User Support | Publications | Collaboration