|
DLG4::VolumeBuilders
A fluent interface for Geant4 geometry definition.
|
Functions | |
| virtual RZBuilder | SetNumSides (G4double N) |
| RZBuilder | AddPlane (const RZPlane &plane) |
| RZBuilder | AddPlane (G4double IR, G4double OR, G4double z) |
| RZBuilder | AddPlane (G4double IR, G4double OR, G4double z, Length unit) |
| RZBuilder | AddPlanes (const std::vector< RZPlane > &planes) |
| RZBuilder | AddPlanes (const std::vector< RZPlaneUnitless > &planes) |
| RZBuilder | AddPlanes (const std::vector< RZPlaneUnitless > &planes, Length unit) |
| RZBuilder | ReflectZSolidConfig () |
| RZBuilder | FillSolidConfig () |
Solid Configurations for RZBuiler.
Adds a plane defining one IR,OR,Z triplet in the volume design.
| plane | // the IR, OR, Z, unit data for this "plane" |
Definition at line 134 of file RZBuilderCore.cc.
| RZBuilder AddPlane | ( | G4double | IR, |
| G4double | OR, | ||
| G4double | z | ||
| ) |
Adds a plane defining one IR,OR,Z triplet in the volume design Uses preset unit from default (mm) or SetUnit(unit);.
| IR | Inner radius |
| OR | Outer radius |
| z | Z position |
Definition at line 153 of file RZBuilderCore.cc.
Adds a plane defining one IR,OR,Z triplet in the volume design Uses preset unit from default (mm) or SetUnit(unit);.
| IR | Inner radius |
| OR | Outer radius |
| z | Z position |
| unit | The unit to use for THIS plane only (ex: VB::Length::mm) |
Definition at line 147 of file RZBuilderCore.cc.
Adds multiple RZ planes each defining one unit,IR,OR,Z set in the volume design.
| planes | {{IR, OR, Z, unit},{IR,OR,Z,unit},...}, unit ex: VB::Length::mm |
Definition at line 160 of file RZBuilderCore.cc.
| RZBuilder AddPlanes | ( | const std::vector< RZPlaneUnitless > & | planes | ) |
Adds multiple planes each defining one IR,OR,Z triplet in the volume design Uses preset unit from default (mm) or SetUnit(unit);.
| planes | {{IR, OR, Z},{IR,OR,Z},...} |
Definition at line 168 of file RZBuilderCore.cc.
| RZBuilder AddPlanes | ( | const std::vector< RZPlaneUnitless > & | planes, |
| Length | unit | ||
| ) |
Adds multiple planes each defining one IR,OR,Z triplet in the volume design Uses preset unit from default (mm) or SetUnit(unit);.
| planes | {{IR, OR, Z},{IR,OR,Z},...} |
| unit | The unit to use for THESE planes only (ex: VB::Length::mm) |
Definition at line 177 of file RZBuilderCore.cc.
| RZBuilder FillSolidConfig | ( | ) |
Modifies a Solid CONFIGURATION to set all inner diameters (IDs) to 0.
This does NOT copy the solid and does preserve the name.
Let's say you have a hollow cylinder, but you want a mother volume to put it in.
Done.
Definition at line 91 of file RZBuilderCore.cc.
| RZBuilder ReflectZSolidConfig | ( | ) |
Flip Solid Configuration.
For use on builders with UNBUILT solids ONLY, preserving the name.
Useful for conditional configuration. Ex:
If you use ReflectZCopy(newname) in the loop you'd need to provide a copy name, making your final solid naming harder (still possible) to set up right. You can skin this cat multiple other ways, but this provides options.
Definition at line 106 of file RZBuilderCore.cc.
|
virtual |
Set number of sides.
Only relevant for things with sides.
| N | Number of Sides |
Definition at line 119 of file RZBuilderCore.cc.