Geant4  10.02.p02
ExG4DetectorConstruction02 Class Reference

Simple detector construction with a box volume placed in a world. More...

#include <ExG4DetectorConstruction02.hh>

+ Inheritance diagram for ExG4DetectorConstruction02:
+ Collaboration diagram for ExG4DetectorConstruction02:

Public Member Functions

 ExG4DetectorConstruction02 (const G4String &boxMaterialName="G4_AIR", G4double boxHx=40 *CLHEP::cm, G4double boxHy=40 *CLHEP::cm, G4double boxHz=40 *CLHEP::cm, const G4String &worldMaterialName="G4_AIR", G4double worldSizeFactor=1.25)
 
 ~ExG4DetectorConstruction02 ()
 
virtual G4VPhysicalVolumeConstruct ()
 
void SetBoxMaterial (const G4String &materialName)
 
void SetWorldMaterial (const G4String &materialName)
 
void SetBoxDimensions (G4double hx, G4double hy, G4double hz)
 
void SetWorldSizeFactor (G4double factor)
 
 ExG4DetectorConstruction02 (const G4String &boxMaterialName="G4_AIR", G4double boxHx=40 *CLHEP::cm, G4double boxHy=40 *CLHEP::cm, G4double boxHz=40 *CLHEP::cm, const G4String &worldMaterialName="G4_AIR", G4double worldSizeFactor=1.25)
 
 ~ExG4DetectorConstruction02 ()
 
virtual G4VPhysicalVolumeConstruct ()
 
void SetBoxMaterial (const G4String &materialName)
 
void SetWorldMaterial (const G4String &materialName)
 
void SetBoxDimensions (G4double hx, G4double hy, G4double hz)
 
void SetWorldSizeFactor (G4double factor)
 
 ExG4DetectorConstruction02 (const G4String &boxMaterialName="G4_AIR", G4double boxHx=40 *CLHEP::cm, G4double boxHy=40 *CLHEP::cm, G4double boxHz=40 *CLHEP::cm, const G4String &worldMaterialName="G4_AIR", G4double worldSizeFactor=1.25)
 
 ~ExG4DetectorConstruction02 ()
 
virtual G4VPhysicalVolumeConstruct ()
 
void SetBoxMaterial (const G4String &materialName)
 
void SetWorldMaterial (const G4String &materialName)
 
void SetBoxDimensions (G4double hx, G4double hy, G4double hz)
 
void SetWorldSizeFactor (G4double factor)
 
- 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

ExG4DetectorConstruction02Messenger fMessenger
 
G4String fBoxMaterialName
 
G4String fWorldMaterialName
 
G4ThreeVector fBoxDimensions
 
G4double fWorldSizeFactor
 
G4LogicalVolumefBoxVolume
 
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 a box volume placed in a world.

Definition at line 48 of file ExG4DetectorConstruction02.hh.

Constructor & Destructor Documentation

ExG4DetectorConstruction02::ExG4DetectorConstruction02 ( const G4String boxMaterialName = "G4_AIR",
G4double  boxHx = 40*CLHEP::cm,
G4double  boxHy = 40*CLHEP::cm,
G4double  boxHz = 40*CLHEP::cm,
const G4String worldMaterialName = "G4_AIR",
G4double  worldSizeFactor = 1.25 
)

Definition at line 43 of file ExG4DetectorConstruction02.cc.

ExG4DetectorConstruction02::~ExG4DetectorConstruction02 ( )

Definition at line 61 of file ExG4DetectorConstruction02.cc.

ExG4DetectorConstruction02::ExG4DetectorConstruction02 ( const G4String boxMaterialName = "G4_AIR",
G4double  boxHx = 40 *CLHEP::cm,
G4double  boxHy = 40 *CLHEP::cm,
G4double  boxHz = 40 *CLHEP::cm,
const G4String worldMaterialName = "G4_AIR",
G4double  worldSizeFactor = 1.25 
)
ExG4DetectorConstruction02::~ExG4DetectorConstruction02 ( )
ExG4DetectorConstruction02::ExG4DetectorConstruction02 ( const G4String boxMaterialName = "G4_AIR",
G4double  boxHx = 40 *CLHEP::cm,
G4double  boxHy = 40 *CLHEP::cm,
G4double  boxHz = 40 *CLHEP::cm,
const G4String worldMaterialName = "G4_AIR",
G4double  worldSizeFactor = 1.25 
)
ExG4DetectorConstruction02::~ExG4DetectorConstruction02 ( )

Member Function Documentation

G4VPhysicalVolume * ExG4DetectorConstruction02::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 67 of file ExG4DetectorConstruction02.cc.

References fBoxDimensions, fBoxMaterialName, fBoxVolume, G4NistManager::FindOrBuildMaterial(), fWorldMaterialName, fWorldSizeFactor, fWorldVolume, and G4NistManager::Instance().

+ Here is the call graph for this function:

virtual G4VPhysicalVolume* ExG4DetectorConstruction02::Construct ( )
virtual
virtual G4VPhysicalVolume* ExG4DetectorConstruction02::Construct ( )
virtual
void ExG4DetectorConstruction02::SetBoxDimensions ( G4double  hx,
G4double  hy,
G4double  hz 
)
void ExG4DetectorConstruction02::SetBoxDimensions ( G4double  hx,
G4double  hy,
G4double  hz 
)

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

Definition at line 172 of file ExG4DetectorConstruction02.cc.

References fBoxDimensions.

Referenced by ExG4DetectorConstruction02Messenger::SetNewValue().

+ Here is the caller graph for this function:

void ExG4DetectorConstruction02::SetBoxDimensions ( G4double  hx,
G4double  hy,
G4double  hz 
)
void ExG4DetectorConstruction02::SetBoxMaterial ( const G4String materialName)

Definition at line 134 of file ExG4DetectorConstruction02.cc.

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

Referenced by ExG4DetectorConstruction02Messenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ExG4DetectorConstruction02::SetBoxMaterial ( const G4String materialName)
void ExG4DetectorConstruction02::SetBoxMaterial ( const G4String materialName)
void ExG4DetectorConstruction02::SetWorldMaterial ( const G4String materialName)

Definition at line 153 of file ExG4DetectorConstruction02.cc.

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

Referenced by ExG4DetectorConstruction02Messenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ExG4DetectorConstruction02::SetWorldMaterial ( const G4String materialName)
void ExG4DetectorConstruction02::SetWorldMaterial ( const G4String materialName)
void ExG4DetectorConstruction02::SetWorldSizeFactor ( G4double  factor)
void ExG4DetectorConstruction02::SetWorldSizeFactor ( G4double  factor)
void ExG4DetectorConstruction02::SetWorldSizeFactor ( G4double  factor)

Set the multiplication factor from box dimensions to world dimensions. This setting has effect only if called in PreInit> phase

Definition at line 183 of file ExG4DetectorConstruction02.cc.

References factor, and fWorldSizeFactor.

Referenced by ExG4DetectorConstruction02Messenger::SetNewValue().

+ Here is the caller graph for this function:

Member Data Documentation

G4ThreeVector ExG4DetectorConstruction02::fBoxDimensions
private

Definition at line 75 of file ExG4DetectorConstruction02.hh.

Referenced by Construct(), and SetBoxDimensions().

G4String ExG4DetectorConstruction02::fBoxMaterialName
private

Definition at line 73 of file ExG4DetectorConstruction02.hh.

Referenced by Construct().

G4LogicalVolume * ExG4DetectorConstruction02::fBoxVolume
private

Definition at line 77 of file ExG4DetectorConstruction02.hh.

Referenced by Construct(), and SetBoxMaterial().

ExG4DetectorConstruction02Messenger ExG4DetectorConstruction02::fMessenger
private

Definition at line 71 of file ExG4DetectorConstruction02.hh.

G4String ExG4DetectorConstruction02::fWorldMaterialName
private

Definition at line 74 of file ExG4DetectorConstruction02.hh.

Referenced by Construct().

G4double ExG4DetectorConstruction02::fWorldSizeFactor
private

Definition at line 76 of file ExG4DetectorConstruction02.hh.

Referenced by Construct(), and SetWorldSizeFactor().

G4LogicalVolume * ExG4DetectorConstruction02::fWorldVolume
private

Definition at line 78 of file ExG4DetectorConstruction02.hh.

Referenced by Construct(), and SetWorldMaterial().


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