10#include "DetectorConstruction_includes.hh"
16void DetectorConstruction::ConstructExample1() {
17 static bool firstcall =
true;
26 G4Color coppertone(0.72, 0.45, .2);
29 G4double some_reference;
34 ->AddPlane(p.
IR = 90 , p.
OR = 100*2.0/sqrt(3.) , p.
z = -10 )
35 ->AddPlane(p.
IR , p.
OR , p.
z -= 15 );
38 G4VPhysicalVolume *another_builder_or_geant_physical_volume = world_phys;
42 ->SetMaterial(_copper)
43 ->SetColor(coppertone)
45 ->AddUnion(another_builder_or_geant_solid, {0, 0, 0})
47 ->SetMother(another_builder_or_geant_physical_volume)
48 ->SetDefaultUnit(CLHEP::cm)
53 ->AddPlane(p.
IR = 50, p.
OR = 100, p.
z = -10)
54 ->AddPlane(p.
IR, p.
OR, p.
z -= 40)
55 ->AddPlane(p.
IR = 90, p.
OR, p.
z)
56 ->AddPlane(p.
IR, p.
OR, some_reference = p.
z -= 40)
RZBuilder CreatePolyconeBuilder(const G4String &name, G4double phi_start, G4double phi_tot)
Create a builder for associated IR,OR,Z defined object.
RZBuilder CreatePolyhedraBuilder(const G4String &name, int sides, G4double phi_start, G4double phi_tot)
Create a builder for associated IR,OR,Z defined object.
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.