|
DLG4::VolumeBuilders
A fluent interface for Geant4 geometry definition.
|
Functions | |
| virtual RZBuilderPtr | SetNumSides (G4double N) |
| RZBuilderPtr | AddPlane (const RZPlane &plane) |
| RZBuilderPtr | AddPlane (G4double IR, G4double OR, G4double z) |
| RZBuilderPtr | AddPlane (G4double unit, G4double IR, G4double OR, G4double z) |
| RZBuilderPtr | AddPlanes (const std::vector< RZPlane > &planes) |
| RZBuilderPtr | AddPlanes (const std::vector< RZPlaneUnitless > &planes) |
| RZBuilderPtr | AddPlanes (G4double unit, const std::vector< RZPlaneUnitless > &planes) |
| RZBuilderPtr | ReflectZSolidConfig () |
| RZBuilderPtr | FillSolidConfig () |
Solid Configurations for RZBuiler.
| RZBuilderPtr AddPlane | ( | const RZPlane & | plane | ) |
Adds a plane defining one IR,OR,Z triplet in the volume design.
| plane | // the unit, IR, OR, Z data for this "plane" |
Definition at line 134 of file RZBuilder.cc.
| RZBuilderPtr 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 RZBuilder.cc.
| RZBuilderPtr AddPlane | ( | G4double | unit, |
| 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);.
| unit | The unit to use for THIS plane only (ex: CLHEP::mm) |
| IR | Inner radius |
| OR | Outer radius |
| z | Z position |
Definition at line 147 of file RZBuilder.cc.
| RZBuilderPtr AddPlanes | ( | const std::vector< RZPlane > & | planes | ) |
Adds multiple RZ planes each defining one unit,IR,OR,Z set in the volume design.
| planes | {{unit,IR, OR, Z},{unit,IR,OR,Z},...}, unit ex: CLHEP::mm |
Definition at line 160 of file RZBuilder.cc.
| RZBuilderPtr 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 RZBuilder.cc.
| RZBuilderPtr AddPlanes | ( | G4double | unit, |
| 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);.
| unit | The unit to use for THESE planes only (ex: CLHEP::mm) |
| planes | {{IR, OR, Z},{IR,OR,Z},...} |
Definition at line 178 of file RZBuilder.cc.
| RZBuilderPtr 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 RZBuilder.cc.
| RZBuilderPtr 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 RZBuilder.cc.
|
virtual |
Set number of sides.
Only relevant for things with sides.
| N | Number of Sides |
Definition at line 119 of file RZBuilder.cc.