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

A parallel world construction class. More...

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE04ParallelWorldConstruction:
G4VUserParallelWorld

Public Member Functions

 RE04ParallelWorldConstruction (G4String &parallelWorldName)
 
virtual ~RE04ParallelWorldConstruction ()
 
virtual void Construct ()
 

Private Attributes

G4bool fConstructed
 

Detailed Description

A parallel world construction class.

Definition at line 86 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE04ParallelWorldConstruction()

RE04ParallelWorldConstruction::RE04ParallelWorldConstruction ( G4String parallelWorldName)

◆ ~RE04ParallelWorldConstruction()

RE04ParallelWorldConstruction::~RE04ParallelWorldConstruction ( )
virtual

Definition at line 47 of file RE04ParallelWorldConstruction.cc.

48{;}

Member Function Documentation

◆ Construct()

void RE04ParallelWorldConstruction::Construct ( )
virtual

Definition at line 51 of file RE04ParallelWorldConstruction.cc.

52{
53 if(fConstructed) return;
54 fConstructed = true;
55
56 //
57 // World
58 //
59 G4VPhysicalVolume* ghostWorld = GetWorld();
60 G4LogicalVolume* worldLogical = ghostWorld->GetLogicalVolume();
61
62 //
63 // material defined in the mass world
64 //
65 G4Material* water = G4Material::GetMaterial("G4_WATER");
66
67 //
68 // parallel world placement box
69 //
70 G4VSolid* paraBox = new G4Box("paraBox",5.0*cm,30.0*cm,5.0*cm);
71 G4LogicalVolume* paraBoxLogical = new G4LogicalVolume(paraBox,water,
72 "paraBox");
73 new G4PVPlacement(0,G4ThreeVector(-25.0*cm,0.,0.),paraBoxLogical,
74 "paraBox",worldLogical,false,0);
75
76 //
77 // mother of parallel world parameterized volumes
78 //
79 G4VSolid* paraMom = new G4Box("paraMom",20.0*cm,40.0*cm,20.0*cm);
80 G4LogicalVolume* paraMomLogical = new G4LogicalVolume(paraMom,0,"paraMom");
81 new G4PVPlacement(0,G4ThreeVector(10.0*cm,0.,0.),paraMomLogical,"paraMom",
82 worldLogical,false,0);
83
84 //
85 // parallel world parameterized volumes
86 //
87 G4VSolid* paraPara = new G4Box("paraPara",5.0*cm,15.0*cm,10.0*cm);
88 G4LogicalVolume* paraParaLogical = new G4LogicalVolume(paraPara,water,
89 "paraPara");
91 new G4PVParameterised("paraPara",paraParaLogical,paraMomLogical,
92 kXAxis, 2, param);
93
94}
Parameterisation class for volumes in a parallel world.

Member Data Documentation

◆ fConstructed

G4bool RE04ParallelWorldConstruction::fConstructed
private

Definition at line 55 of file RE04ParallelWorldConstruction.hh.


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

Applications | User Support | Publications | Collaboration