Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
ExTGDetectorConstruction Class Reference

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

#include <ExTGDetectorConstruction.hh>

Inheritance diagram for ExTGDetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 ExTGDetectorConstruction ()
 
 ~ExTGDetectorConstruction ()
 
G4VPhysicalVolumeConstruct ()
 
- Public Member Functions inherited from G4VUserDetectorConstruction
 G4VUserDetectorConstruction ()
 
virtual ~G4VUserDetectorConstruction ()
 
virtual void ConstructSDandField ()
 
virtual void CloneSD ()
 
virtual void CloneF ()
 
void RegisterParallelWorld (G4VUserParallelWorld *)
 
G4int ConstructParallelGeometries ()
 
void ConstructParallelSD ()
 
G4int GetNumberOfParallelWorld () const
 
G4VUserParallelWorldGetParallelWorld (G4int i) const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VUserDetectorConstruction
void SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
 
void SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD)
 

Detailed Description

Detector construction class using text geometry file.

Definition at line 41 of file ExTGDetectorConstruction.hh.

Constructor & Destructor Documentation

ExTGDetectorConstruction::ExTGDetectorConstruction ( )

Definition at line 36 of file ExTGDetectorConstruction.cc.

37 {
38  fMessenger = new G4tgrMessenger;
39 }
ExTGDetectorConstruction::~ExTGDetectorConstruction ( )

Definition at line 42 of file ExTGDetectorConstruction.cc.

43 {
44  delete fMessenger;
45 }

Member Function Documentation

G4VPhysicalVolume * ExTGDetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 48 of file ExTGDetectorConstruction.cc.

References G4tgbVolumeMgr::AddTextFile(), G4tgbVolumeMgr::GetInstance(), and G4tgbVolumeMgr::ReadAndConstructDetector().

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

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