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

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE03DetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 RE03DetectorConstruction ()
 
virtual ~RE03DetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()
 
virtual void ConstructSDandField ()
 

Private Member Functions

void DefineMaterials ()
 
void SetupGeometry ()
 

Private Attributes

G4MaterialfAir
 
G4MaterialfWater
 
G4VPhysicalVolumefWorldPhys
 
G4VPhysicalVolumefPhantomPhys
 
G4bool fConstructed
 

Detailed Description

Definition at line 71 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE03DetectorConstruction()

RE03DetectorConstruction::RE03DetectorConstruction ( )

◆ ~RE03DetectorConstruction()

RE03DetectorConstruction::~RE03DetectorConstruction ( )
virtual

Definition at line 61 of file RE03DetectorConstruction.cc.

62{;}

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * RE03DetectorConstruction::Construct ( )
virtual

Definition at line 65 of file RE03DetectorConstruction.cc.

◆ ConstructSDandField()

void RE03DetectorConstruction::ConstructSDandField ( )
virtual

Definition at line 113 of file RE03DetectorConstruction.cc.

114{;}

◆ DefineMaterials()

void RE03DetectorConstruction::DefineMaterials ( )
private

Definition at line 77 of file RE03DetectorConstruction.cc.

78{
79 //-------- NIST Materials -----------------------------------------------
80 // Material Information imported from NIST database.
81 G4NistManager* NISTman = G4NistManager::Instance();
82 fWater = NISTman->FindOrBuildMaterial("G4_WATER");
83 fAir = NISTman->FindOrBuildMaterial("G4_AIR");
84}

◆ SetupGeometry()

void RE03DetectorConstruction::SetupGeometry ( )
private

Definition at line 87 of file RE03DetectorConstruction.cc.

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

Member Data Documentation

◆ fAir

G4Material* RE03DetectorConstruction::fAir
private

Definition at line 55 of file RE03DetectorConstruction.hh.

◆ fWater

G4Material* RE03DetectorConstruction::fWater
private

Definition at line 56 of file RE03DetectorConstruction.hh.

◆ fWorldPhys

G4VPhysicalVolume* RE03DetectorConstruction::fWorldPhys
private

Definition at line 57 of file RE03DetectorConstruction.hh.

◆ fPhantomPhys

G4VPhysicalVolume* RE03DetectorConstruction::fPhantomPhys
private

Definition at line 58 of file RE03DetectorConstruction.hh.

◆ fConstructed

G4bool RE03DetectorConstruction::fConstructed
private

Definition at line 59 of file RE03DetectorConstruction.hh.


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

Applications | User Support | Publications | Collaboration