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

#include <B4DetectorConstruction.hh>

Inheritance diagram for B4DetectorConstruction:
Collaboration diagram for B4DetectorConstruction:

Public Member Functions

 B4DetectorConstruction ()
 
virtual ~B4DetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()
 
virtual void ConstructSDandField ()
 
const G4VPhysicalVolumeGetAbsorberPV () const
 
const G4VPhysicalVolumeGetGapPV () const
 
 B4DetectorConstruction ()
 
virtual ~B4DetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()
 
virtual void ConstructSDandField ()
 
const G4VPhysicalVolumeGetAbsorberPV () const
 
const G4VPhysicalVolumeGetGapPV () const
 
- 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
 

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 addition a transverse uniform magnetic field is defined via G4GlobalMagFieldMessenger class.

Definition at line 54 of file B4DetectorConstruction.hh.

Constructor & Destructor Documentation

B4DetectorConstruction::B4DetectorConstruction ( )

Definition at line 61 of file B4DetectorConstruction.cc.

63  fAbsorberPV(nullptr),
64  fGapPV(nullptr),
65  fCheckOverlaps(true)
66 {
67 }
B4DetectorConstruction::~B4DetectorConstruction ( )
virtual

Definition at line 71 of file B4DetectorConstruction.cc.

72 {
73 }
B4DetectorConstruction::B4DetectorConstruction ( )
virtual B4DetectorConstruction::~B4DetectorConstruction ( )
virtual

Member Function Documentation

G4VPhysicalVolume * B4DetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 77 of file B4DetectorConstruction.cc.

78 {
79  // Define materials
80  DefineMaterials();
81 
82  // Define volumes
83  return DefineVolumes();
84 }
virtual G4VPhysicalVolume* B4DetectorConstruction::Construct ( )
virtual
void B4DetectorConstruction::ConstructSDandField ( )
virtual

Reimplemented from G4VUserDetectorConstruction.

Definition at line 281 of file B4DetectorConstruction.cc.

282 {
283  // Create global magnetic field messenger.
284  // Uniform magnetic field is then created automatically if
285  // the field value is not zero.
286  G4ThreeVector fieldValue;
287  fMagFieldMessenger = new G4GlobalMagFieldMessenger(fieldValue);
288  fMagFieldMessenger->SetVerboseLevel(1);
289 
290  // Register the field messenger for deleting
291  G4AutoDelete::Register(fMagFieldMessenger);
292 }
void SetVerboseLevel(G4int verboseLevel)
void Register(T *inst)
Definition: G4AutoDelete.hh:65

Here is the call graph for this function:

virtual void B4DetectorConstruction::ConstructSDandField ( )
virtual

Reimplemented from G4VUserDetectorConstruction.

const G4VPhysicalVolume* B4DetectorConstruction::GetAbsorberPV ( ) const
const G4VPhysicalVolume * B4DetectorConstruction::GetAbsorberPV ( ) const
inline

Definition at line 88 of file B4DetectorConstruction.hh.

88  {
89  return fAbsorberPV;
90 }

Here is the caller graph for this function:

const G4VPhysicalVolume * B4DetectorConstruction::GetGapPV ( ) const
inline

Definition at line 92 of file B4DetectorConstruction.hh.

92  {
93  return fGapPV;
94 }

Here is the caller graph for this function:

const G4VPhysicalVolume* B4DetectorConstruction::GetGapPV ( ) const

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