#include <Doxymodules_biasing.h>
Definition at line 155 of file Doxymodules_biasing.h.
◆ GB07DetectorConstruction()
GB07DetectorConstruction::GB07DetectorConstruction |
( |
| ) |
|
◆ ~GB07DetectorConstruction()
GB07DetectorConstruction::~GB07DetectorConstruction |
( |
| ) |
|
◆ Construct()
Definition at line 60 of file GB07DetectorConstruction.cc.
61{
62 G4Material* worldMaterial = G4NistManager::Instance()->FindOrBuildMaterial(
"G4_Galactic");
63 G4Material* defaultMaterial = G4NistManager::Instance()->FindOrBuildMaterial(
"G4_CONCRETE");
64
66
68 worldMaterial,
69 "World");
70
72 G4ThreeVector(),
73 logicWorld,
74 "World",
75 0,
76 false,
77 0);
78
79
80
81
82 G4double halfZ = 1*m;
83 G4VSolid* solidTest =
new G4Box(
"test.solid", 1*m, 1*m, halfZ );
84
86 defaultMaterial,
87 "test.logical");
88
90 G4ThreeVector(0,0, halfZ),
91 logicTest,
92 "test.physical",
93 logicWorld,
94 false,
95 0);
96
97
98
99
100
101 G4double halfZtally = 0.5*mm;
102 G4VSolid* solidTally =
new G4Box(
"tally.solid", 1*m, 1*m, halfZtally );
104 worldMaterial,
105 "tally.logical");
106
108 G4ThreeVector(0,0, 2*halfZ + halfZtally),
109 logicTally,
110 "tally.physical",
111 logicWorld,
112 false,
113 0);
114
115
116 return physiWorld;
117}
◆ ConstructSDandField()
void GB07DetectorConstruction::ConstructSDandField |
( |
| ) |
|
|
virtual |
Definition at line 121 of file GB07DetectorConstruction.cc.
122{
123
124 G4LogicalVolume* logicTest = G4LogicalVolumeStore::GetInstance()->GetVolume(
"test.logical");
125
126
127
128
130 testMany->AttachTo(logicTest);
131 G4cout << " Attaching biasing operator " << testMany->GetName()
132 << " to logical volume " << logicTest->GetName()
133 << G4endl;
134
135
136
137
138
141 SDman->AddNewDetector(sd);
142
144 G4LogicalVolumeStore::GetInstance()->GetVolume("tally.logical");
145 logicSD->SetSensitiveDetector(sd);
146}
The documentation for this class was generated from the following files: