Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExTGDetectorConstruction Class Reference

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

#include <ExTGDetectorConstruction.hh>

Inheritance diagram for ExTGDetectorConstruction:
Collaboration diagram for ExTGDetectorConstruction:

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.

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()

Here is the call graph for this function:


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