10#include "DetectorConstruction_includes.hh"
16void DetectorConstruction::ConstructAssembly() {
17 static bool firstcall =
true;
26 G4Color coppertone(0.72, 0.45, .2);
29 G4double some_reference;
33 ->AddPlane(p.
IR = 40 , p.
OR = 50 , p.
z = 0 )
34 ->AddPlane(p.
IR , p.
OR , p.
z -= 100 );
39 for (
int i = 0; i < 3; i++) {
40 temp->ForkAndReset(
"part_" + std::to_string(i))
41 ->SetPhysOffset({0, 250. * (i), 0.})
45 assembly->SetMother(world_phys)
46 ->SetMaterial(_copper)
49 ->SetPhysOffset({0, 0, -200})
52 ->StackPhysRotation(G4RotationMatrix().rotateY(-90.0 * deg))
55 ->ForkForLogicalVolume(
"blue")
57 ->StackPhysRotation(G4RotationMatrix().rotateY(-90.0 * deg))
RZBuilder CreatePolyhedraBuilder(const G4String &name, int sides, G4double phi_start, G4double phi_tot)
Create a builder for associated IR,OR,Z defined object.
Assembly CreateAssembly(G4String name)
Assembly of strucures, ie builders and/or other assemblies.
void SetGlobalDefaultUnit(G4double unit)
Set the default unit for all VolumeBuilder methods.
Struct for adding planes to GeantMultiPlane –DSLeonard 2024 Overloads make this not strictly needed.