Geant4  10.01.p03
B4cDetectorConstruction Class Reference

Detector construction class to define materials and geometry. The calorimeter is a box made of a given number of layers. A layer consists of an absorber plate and of a detection gap. The layer is replicated. More...

#include <B4cDetectorConstruction.hh>

+ Inheritance diagram for B4cDetectorConstruction:
+ Collaboration diagram for B4cDetectorConstruction:

Public Member Functions

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

Private Member Functions

void DefineMaterials ()
 
G4VPhysicalVolumeDefineVolumes ()
 

Private Attributes

G4bool fCheckOverlaps
 
G4int fNofLayers
 

Static Private Attributes

static G4ThreadLocal
G4GlobalMagFieldMessenger
fMagFieldMessenger = 0
 

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 to define materials and geometry. The calorimeter is a box made of a given number of layers. A layer consists of an absorber plate and of a detection gap. The layer is replicated.

Four parameters define the geometry of the calorimeter :

  • the thickness of an absorber plate,
  • the thickness of a gap,
  • the number of layers,
  • the transverse size of the calorimeter (the input face is a square).

In ConstructSDandField() sensitive detectors of B4cCalorimeterSD type are created and associated with the Absorber and Gap volumes. In addition a transverse uniform magnetic field is defined via G4GlobalMagFieldMessenger class.

Definition at line 56 of file B4cDetectorConstruction.hh.

Constructor & Destructor Documentation

B4cDetectorConstruction::B4cDetectorConstruction ( )

Definition at line 58 of file B4cDetectorConstruction.cc.

B4cDetectorConstruction::~B4cDetectorConstruction ( )
virtual

Definition at line 67 of file B4cDetectorConstruction.cc.

Member Function Documentation

G4VPhysicalVolume * B4cDetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 73 of file B4cDetectorConstruction.cc.

References DefineMaterials(), and DefineVolumes().

+ Here is the call graph for this function:

void B4cDetectorConstruction::ConstructSDandField ( )
virtual

Reimplemented from G4VUserDetectorConstruction.

Definition at line 275 of file B4cDetectorConstruction.cc.

References fMagFieldMessenger, fNofLayers, G4AutoDelete::Register(), G4VUserDetectorConstruction::SetSensitiveDetector(), and G4GlobalMagFieldMessenger::SetVerboseLevel().

+ Here is the call graph for this function:

void B4cDetectorConstruction::DefineMaterials ( )
private

Definition at line 84 of file B4cDetectorConstruction.cc.

References a, cm3, density, G4NistManager::FindOrBuildMaterial(), g, G4cout, G4endl, G4Material::GetMaterialTable(), G4NistManager::Instance(), kelvin, kStateGas, mole, pascal, and z.

Referenced by Construct().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VPhysicalVolume * B4cDetectorConstruction::DefineVolumes ( )
private

Definition at line 107 of file B4cDetectorConstruction.cc.

References cm, FatalException, fCheckOverlaps, fNofLayers, G4cout, G4endl, G4Exception(), G4Material::GetMaterial(), G4Material::GetName(), G4VisAttributes::Invisible, kZAxis, mm, G4LogicalVolume::SetVisAttributes(), and G4VisAttributes::SetVisibility().

Referenced by Construct().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4bool B4cDetectorConstruction::fCheckOverlaps
private

Definition at line 77 of file B4cDetectorConstruction.hh.

Referenced by DefineVolumes().

G4ThreadLocal G4GlobalMagFieldMessenger * B4cDetectorConstruction::fMagFieldMessenger = 0
staticprivate

Definition at line 74 of file B4cDetectorConstruction.hh.

Referenced by ConstructSDandField().

G4int B4cDetectorConstruction::fNofLayers
private

Definition at line 78 of file B4cDetectorConstruction.hh.

Referenced by ConstructSDandField(), and DefineVolumes().


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