Geant4  10.03
G03DetectorConstruction Class Reference

Detector construction for the GDML extensions example. More...

#include <G03DetectorConstruction.hh>

+ Inheritance diagram for G03DetectorConstruction:
+ Collaboration diagram for G03DetectorConstruction:

Public Member Functions

 G03DetectorConstruction ()
 
 ~G03DetectorConstruction ()
 
virtual G4VPhysicalVolume * Construct ()
 
void ListOfMaterials ()
 
void SetReadFile (const G4String &fname)
 
void SetWriteFile (const G4String &fname)
 
- 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
 
G4VUserParallelWorld * GetParallelWorld (G4int i) const
 

Private Attributes

G4Material * fAir
 
G4Material * fAluminum
 
G4Material * fPb
 
G4Material * fXenon
 
G4GDMLReadStructure * fReader
 
G4GDMLWriteStructure * fWriter
 
G4GDMLParser * fParser
 
G4String fReadFile
 
G4String fWriteFile
 
G4bool fWritingChoice
 
G03DetectorMessenger * fDetectorMessenger
 

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 for the GDML extensions example.

Definition at line 50 of file G03DetectorConstruction.hh.

Constructor & Destructor Documentation

G03DetectorConstruction::G03DetectorConstruction ( )
G03DetectorConstruction::~G03DetectorConstruction ( )

Definition at line 79 of file G03DetectorConstruction.cc.

References fDetectorMessenger, fParser, fReader, and fWriter.

Member Function Documentation

G4VPhysicalVolume * G03DetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 89 of file G03DetectorConstruction.cc.

References fParser, fReadFile, fWriteFile, fWritingChoice, G4cout, G4endl, G4Material::GetMaterialTable(), G4GDMLParser::GetWorldVolume(), G4GDMLParser::Read(), and G4GDMLParser::Write().

+ Here is the call graph for this function:

void G03DetectorConstruction::ListOfMaterials ( )

Definition at line 119 of file G03DetectorConstruction.cc.

References a, G4Material::AddElement(), atmosphere, cm3, fAir, fAluminum, fPb, fXenon, g, G4cout, G4endl, G4Element::GetElementTable(), G4Material::GetMaterialTable(), kelvin, kStateGas, mg, mole, and G4InuclParticleNames::name().

+ Here is the call graph for this function:

void G03DetectorConstruction::SetReadFile ( const G4String &  fname)

Definition at line 173 of file G03DetectorConstruction.cc.

References fReadFile, and fWritingChoice.

Referenced by G03DetectorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G03DetectorConstruction::SetWriteFile ( const G4String &  fname)

Definition at line 181 of file G03DetectorConstruction.cc.

References fWriteFile, and fWritingChoice.

Referenced by G03DetectorMessenger::SetNewValue().

+ Here is the caller graph for this function:

Member Data Documentation

G4Material* G03DetectorConstruction::fAir
private

Definition at line 74 of file G03DetectorConstruction.hh.

Referenced by ListOfMaterials().

G4Material* G03DetectorConstruction::fAluminum
private

Definition at line 75 of file G03DetectorConstruction.hh.

Referenced by ListOfMaterials().

G03DetectorMessenger* G03DetectorConstruction::fDetectorMessenger
private

Definition at line 98 of file G03DetectorConstruction.hh.

Referenced by G03DetectorConstruction(), and ~G03DetectorConstruction().

G4GDMLParser* G03DetectorConstruction::fParser
private
G4Material* G03DetectorConstruction::fPb
private

Definition at line 76 of file G03DetectorConstruction.hh.

Referenced by ListOfMaterials().

G4GDMLReadStructure* G03DetectorConstruction::fReader
private

Definition at line 81 of file G03DetectorConstruction.hh.

Referenced by G03DetectorConstruction(), and ~G03DetectorConstruction().

G4String G03DetectorConstruction::fReadFile
private

Definition at line 93 of file G03DetectorConstruction.hh.

Referenced by Construct(), G03DetectorConstruction(), and SetReadFile().

G4String G03DetectorConstruction::fWriteFile
private

Definition at line 93 of file G03DetectorConstruction.hh.

Referenced by Construct(), G03DetectorConstruction(), and SetWriteFile().

G4GDMLWriteStructure* G03DetectorConstruction::fWriter
private

Definition at line 85 of file G03DetectorConstruction.hh.

Referenced by G03DetectorConstruction(), and ~G03DetectorConstruction().

G4bool G03DetectorConstruction::fWritingChoice
private
G4Material* G03DetectorConstruction::fXenon
private

Definition at line 77 of file G03DetectorConstruction.hh.

Referenced by ListOfMaterials().


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