Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
RE04DetectorConstruction Class Reference

User detector construction class. More...

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE04DetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 RE04DetectorConstruction ()
 
virtual ~RE04DetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()
 

Private Member Functions

void DefineMaterials ()
 
void SetupGeometry ()
 

Private Attributes

G4MaterialfAir
 
G4MaterialfWater
 
G4MaterialfPb
 
G4VPhysicalVolumefWorldPhys
 
G4bool fConstructed
 

Detailed Description

User detector construction class.

Definition at line 84 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE04DetectorConstruction()

RE04DetectorConstruction::RE04DetectorConstruction ( )

◆ ~RE04DetectorConstruction()

RE04DetectorConstruction::~RE04DetectorConstruction ( )
virtual

Definition at line 53 of file RE04DetectorContruction.cc.

54{;}

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * RE04DetectorConstruction::Construct ( )
virtual

Definition at line 57 of file RE04DetectorContruction.cc.

◆ DefineMaterials()

void RE04DetectorConstruction::DefineMaterials ( )
private

Definition at line 69 of file RE04DetectorContruction.cc.

70{
71 //=====================
72 // Material Definitions
73 //=====================
74 //
75 //-------- NIST Materials ----------------------------------------------------
76 // Material Information imported from NIST database.
77 //
78 G4NistManager* pNISTman = G4NistManager::Instance();
79 fAir = pNISTman->FindOrBuildMaterial("G4_AIR");
80 fWater = pNISTman->FindOrBuildMaterial("G4_WATER");
81 fPb = pNISTman->FindOrBuildMaterial("G4_Pb");
82
83 //
84 // Print all the materials defined.
85 G4cout << G4endl << "The materials defined are : " << G4endl << G4endl;
86 G4cout << *(G4Material::GetMaterialTable()) << G4endl;
87}

◆ SetupGeometry()

void RE04DetectorConstruction::SetupGeometry ( )
private

Definition at line 90 of file RE04DetectorContruction.cc.

91{
92 //
93 // World
94 //
95 G4VSolid* worldSolid = new G4Box("World",1.*m,1.*m,1.*m);
96 G4LogicalVolume* worldLogical = new G4LogicalVolume(worldSolid,fAir,"World");
97 fWorldPhys = new G4PVPlacement(0,G4ThreeVector(),worldLogical,"World",
98 0,false,0);
99
100 //
101 // Phantom
102 //
103 G4VSolid* phantomSolid = new G4Box("Phantom",50.*cm,50.*cm,50.*cm);
104 G4LogicalVolume* phantomLogical = new G4LogicalVolume(phantomSolid,fAir,
105 "Phantom");
106 new G4PVPlacement(0,G4ThreeVector(),phantomLogical,"Phantom",
107 worldLogical,false,0);
108
109 //
110 // Visualization attributes
111 //
112 worldLogical->SetVisAttributes(G4VisAttributes::GetInvisible());
113 G4VisAttributes* simpleBoxVisAtt= new G4VisAttributes(G4Colour(1.0,1.0,1.0));
114 simpleBoxVisAtt->SetVisibility(true);
115 phantomLogical->SetVisAttributes(simpleBoxVisAtt);
116}

Member Data Documentation

◆ fAir

G4Material* RE04DetectorConstruction::fAir
private

Definition at line 63 of file RE04DetectorConstruction.hh.

◆ fWater

G4Material* RE04DetectorConstruction::fWater
private

Definition at line 64 of file RE04DetectorConstruction.hh.

◆ fPb

G4Material* RE04DetectorConstruction::fPb
private

Definition at line 65 of file RE04DetectorConstruction.hh.

◆ fWorldPhys

G4VPhysicalVolume* RE04DetectorConstruction::fWorldPhys
private

Definition at line 66 of file RE04DetectorConstruction.hh.

◆ fConstructed

G4bool RE04DetectorConstruction::fConstructed
private

Definition at line 67 of file RE04DetectorConstruction.hh.


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

Applications | User Support | Publications | Collaboration