Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
B4DetectorConstruction Class Reference

#include <B4DetectorConstruction.hh>

Inheritance diagram for B4DetectorConstruction:
G4VUserDetectorConstruction G4VUserDetectorConstruction

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 :

In addition a transverse uniform magnetic field is defined via G4GlobalMagFieldMessenger class.

Definition at line 54 of file B4a/include/B4DetectorConstruction.hh.

Constructor & Destructor Documentation

B4DetectorConstruction::B4DetectorConstruction ( )

Definition at line 61 of file B4a/src/B4DetectorConstruction.cc.

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

Definition at line 71 of file B4a/src/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 B4a/src/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 279 of file B4a/src/B4DetectorConstruction.cc.

References G4AutoDelete::Register(), and G4GlobalMagFieldMessenger::SetVerboseLevel().

280 {
281  // Create global magnetic field messenger.
282  // Uniform magnetic field is then created automatically if
283  // the field value is not zero.
284  G4ThreeVector fieldValue = G4ThreeVector();
285  fMagFieldMessenger = new G4GlobalMagFieldMessenger(fieldValue);
286  fMagFieldMessenger->SetVerboseLevel(1);
287 
288  // Register the field messenger for deleting
289  G4AutoDelete::Register(fMagFieldMessenger);
290 }
void SetVerboseLevel(G4int verboseLevel)
CLHEP::Hep3Vector G4ThreeVector
void Register(T *inst)
Definition: G4AutoDelete.hh:65
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 B4a/include/B4DetectorConstruction.hh.

Referenced by B4bSteppingAction::UserSteppingAction(), and B4aSteppingAction::UserSteppingAction().

88  {
89  return fAbsorberPV;
90 }
const G4VPhysicalVolume * B4DetectorConstruction::GetGapPV ( ) const
inline

Definition at line 92 of file B4a/include/B4DetectorConstruction.hh.

Referenced by B4bSteppingAction::UserSteppingAction(), and B4aSteppingAction::UserSteppingAction().

92  {
93  return fGapPV;
94 }
const G4VPhysicalVolume* B4DetectorConstruction::GetGapPV ( ) const

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