Geant4  10.02.p02
ExG4DetectorConstruction01 Class Reference

Simple detector construction with only a world volume. More...

#include <ExG4DetectorConstruction01.hh>

+ Inheritance diagram for ExG4DetectorConstruction01:
+ Collaboration diagram for ExG4DetectorConstruction01:

Public Member Functions

 ExG4DetectorConstruction01 (const G4String &materialName="G4_AIR", G4double hx=50 *CLHEP::cm, G4double hy=50 *CLHEP::cm, G4double hz=50 *CLHEP::cm)
 
 ~ExG4DetectorConstruction01 ()
 
virtual G4VPhysicalVolumeConstruct ()
 
void SetMaterial (const G4String &materialName)
 
void SetDimensions (G4double hx, G4double hy, G4double hz)
 
 ExG4DetectorConstruction01 (const G4String &materialName="G4_AIR", G4double hx=50 *CLHEP::cm, G4double hy=50 *CLHEP::cm, G4double hz=50 *CLHEP::cm)
 
 ~ExG4DetectorConstruction01 ()
 
virtual G4VPhysicalVolumeConstruct ()
 
void SetMaterial (const G4String &materialName)
 
void SetDimensions (G4double hx, G4double hy, G4double hz)
 
 ExG4DetectorConstruction01 (const G4String &materialName="G4_AIR", G4double hx=50 *CLHEP::cm, G4double hy=50 *CLHEP::cm, G4double hz=50 *CLHEP::cm)
 
 ~ExG4DetectorConstruction01 ()
 
virtual G4VPhysicalVolumeConstruct ()
 
void SetMaterial (const G4String &materialName)
 
void SetDimensions (G4double hx, G4double hy, G4double hz)
 
- 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
 

Private Attributes

ExG4DetectorConstruction01Messenger fMessenger
 
G4String fMaterialName
 
G4ThreeVector fDimensions
 
G4LogicalVolumefWorldVolume
 

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

Simple detector construction with only a world volume.

Definition at line 48 of file ExG4DetectorConstruction01.hh.

Constructor & Destructor Documentation

ExG4DetectorConstruction01::ExG4DetectorConstruction01 ( const G4String materialName = "G4_AIR",
G4double  hx = 50*CLHEP::cm,
G4double  hy = 50*CLHEP::cm,
G4double  hz = 50*CLHEP::cm 
)

Definition at line 43 of file ExG4DetectorConstruction01.cc.

ExG4DetectorConstruction01::~ExG4DetectorConstruction01 ( )

Definition at line 56 of file ExG4DetectorConstruction01.cc.

ExG4DetectorConstruction01::ExG4DetectorConstruction01 ( const G4String materialName = "G4_AIR",
G4double  hx = 50 *CLHEP::cm,
G4double  hy = 50 *CLHEP::cm,
G4double  hz = 50 *CLHEP::cm 
)
ExG4DetectorConstruction01::~ExG4DetectorConstruction01 ( )
ExG4DetectorConstruction01::ExG4DetectorConstruction01 ( const G4String materialName = "G4_AIR",
G4double  hx = 50 *CLHEP::cm,
G4double  hy = 50 *CLHEP::cm,
G4double  hz = 50 *CLHEP::cm 
)
ExG4DetectorConstruction01::~ExG4DetectorConstruction01 ( )

Member Function Documentation

G4VPhysicalVolume * ExG4DetectorConstruction01::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 62 of file ExG4DetectorConstruction01.cc.

References fDimensions, G4NistManager::FindOrBuildMaterial(), fMaterialName, fWorldVolume, and G4NistManager::Instance().

+ Here is the call graph for this function:

virtual G4VPhysicalVolume* ExG4DetectorConstruction01::Construct ( )
virtual
virtual G4VPhysicalVolume* ExG4DetectorConstruction01::Construct ( )
virtual
void ExG4DetectorConstruction01::SetDimensions ( G4double  hx,
G4double  hy,
G4double  hz 
)

Set world dimension (in half lengths). This setting has effect only if called in PreInit> phase

Definition at line 119 of file ExG4DetectorConstruction01.cc.

References fDimensions.

Referenced by ExG4DetectorConstruction01Messenger::SetNewValue().

+ Here is the caller graph for this function:

void ExG4DetectorConstruction01::SetDimensions ( G4double  hx,
G4double  hy,
G4double  hz 
)
void ExG4DetectorConstruction01::SetDimensions ( G4double  hx,
G4double  hy,
G4double  hz 
)
void ExG4DetectorConstruction01::SetMaterial ( const G4String materialName)

Definition at line 100 of file ExG4DetectorConstruction01.cc.

References G4NistManager::FindOrBuildMaterial(), fWorldVolume, G4cerr, G4cout, G4endl, G4NistManager::Instance(), and G4LogicalVolume::SetMaterial().

Referenced by ExG4DetectorConstruction01Messenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ExG4DetectorConstruction01::SetMaterial ( const G4String materialName)
void ExG4DetectorConstruction01::SetMaterial ( const G4String materialName)

Member Data Documentation

G4ThreeVector ExG4DetectorConstruction01::fDimensions
private

Definition at line 70 of file ExG4DetectorConstruction01.hh.

Referenced by Construct(), and SetDimensions().

G4String ExG4DetectorConstruction01::fMaterialName
private

Definition at line 69 of file ExG4DetectorConstruction01.hh.

Referenced by Construct().

ExG4DetectorConstruction01Messenger ExG4DetectorConstruction01::fMessenger
private

Definition at line 67 of file ExG4DetectorConstruction01.hh.

G4LogicalVolume * ExG4DetectorConstruction01::fWorldVolume
private

Definition at line 71 of file ExG4DetectorConstruction01.hh.

Referenced by Construct(), and SetMaterial().


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