Geant4  10.02.p03
RE03DetectorConstruction Class Reference

#include <RE03DetectorConstruction.hh>

Inheritance diagram for RE03DetectorConstruction:
Collaboration diagram for RE03DetectorConstruction:

Public Member Functions

 RE03DetectorConstruction ()
 
virtual ~RE03DetectorConstruction ()
 
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 ()
 
void SetupGeometry ()
 

Private Attributes

G4MaterialfAir
 
G4MaterialfWater
 
G4VPhysicalVolumefWorldPhys
 
G4VPhysicalVolumefPhantomPhys
 
G4bool fConstructed
 

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

Definition at line 41 of file RE03DetectorConstruction.hh.

Constructor & Destructor Documentation

◆ RE03DetectorConstruction()

RE03DetectorConstruction::RE03DetectorConstruction ( )

◆ ~RE03DetectorConstruction()

RE03DetectorConstruction::~RE03DetectorConstruction ( )
virtual

Definition at line 62 of file RE03DetectorConstruction.cc.

63 {;}

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * RE03DetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 66 of file RE03DetectorConstruction.cc.

67 {
68  if(!fConstructed)
69  {
70  fConstructed = true;
72  SetupGeometry();
73  }
74  return fWorldPhys;
75 }
Here is the call graph for this function:

◆ ConstructSDandField()

void RE03DetectorConstruction::ConstructSDandField ( )
virtual

Reimplemented from G4VUserDetectorConstruction.

Definition at line 114 of file RE03DetectorConstruction.cc.

115 {;}

◆ DefineMaterials()

void RE03DetectorConstruction::DefineMaterials ( void  )
private

Definition at line 78 of file RE03DetectorConstruction.cc.

79 {
80  //-------- NIST Materials -----------------------------------------------
81  // Material Information imported from NIST database.
83  fWater = NISTman->FindOrBuildMaterial("G4_WATER");
84  fAir = NISTman->FindOrBuildMaterial("G4_AIR");
85 }
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static G4NistManager * Instance()
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetupGeometry()

void RE03DetectorConstruction::SetupGeometry ( )
private

Definition at line 88 of file RE03DetectorConstruction.cc.

89 {
90  //
91  // World
92  //
93  G4VSolid* worldSolid = new G4Box("World",2.*m,2.*m,2.*m);
94  G4LogicalVolume* worldLogical = new G4LogicalVolume(worldSolid,fAir,"World");
95  fWorldPhys = new G4PVPlacement(0,G4ThreeVector(),worldLogical,"World",
96  0,false,0);
97 
98  //
99  // Phantom
100  //
101  G4VSolid* phantomSolid = new G4Box("Calor",1.*m,1.*m,1.*m);
102  G4LogicalVolume* phantomLogical = new G4LogicalVolume(phantomSolid,fWater,"Phantom");
103  fPhantomPhys = new G4PVPlacement(0,G4ThreeVector(),phantomLogical,"Phantom",
104  worldLogical,false,0);
105  //
106  // Visualization attributes
107  //
108  // worldLogical->SetVisAttributes(G4VisAttributes::Invisible);
109  G4VisAttributes* simpleBoxVisAtt= new G4VisAttributes(G4Colour(1.0,1.0,1.0));
110  simpleBoxVisAtt->SetVisibility(true);
111  phantomLogical->SetVisAttributes(simpleBoxVisAtt);
112 }
CLHEP::Hep3Vector G4ThreeVector
Definition: G4Box.hh:64
void SetVisibility(G4bool)
static const double m
Definition: G4SIunits.hh:128
void SetVisAttributes(const G4VisAttributes *pVA)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fAir

G4Material* RE03DetectorConstruction::fAir
private

Definition at line 56 of file RE03DetectorConstruction.hh.

◆ fConstructed

G4bool RE03DetectorConstruction::fConstructed
private

Definition at line 60 of file RE03DetectorConstruction.hh.

◆ fPhantomPhys

G4VPhysicalVolume* RE03DetectorConstruction::fPhantomPhys
private

Definition at line 59 of file RE03DetectorConstruction.hh.

◆ fWater

G4Material* RE03DetectorConstruction::fWater
private

Definition at line 57 of file RE03DetectorConstruction.hh.

◆ fWorldPhys

G4VPhysicalVolume* RE03DetectorConstruction::fWorldPhys
private

Definition at line 58 of file RE03DetectorConstruction.hh.


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