|
DLG4::VolumeBuilders
A fluent interface for Geant4 geometry definition.
|
Functions | |
| AssemblyPtr | CreateAssembly (G4String name) |
| BoxBuilderPtr | CreateBoxBuilder (const G4String &name) |
| BoxBuilderPtr | CreateBoxBuilder (const G4String &name, G4double unit) |
| BoxBuilderPtr | CreateCenteredBoxBuilder (const G4String &name, G4double x_full_size, G4double y_full_size, G4double z_full_size) |
| BoxBuilderPtr | CreateCenteredBoxBuilder (G4double unit, const G4String &name, G4double x_full_size, G4double y_full_size, G4double z_full_size) |
| BoxBuilderPtr | CreateZDeltaBoxBuilder (const G4String &name, G4double x_full_size, G4double y_full_size, G4double edge_z, G4double z_delta) |
| BoxBuilderPtr | CreateZDeltaBoxBuilder (G4double unit, const G4String &name, G4double x_full_size, G4double y_full_size, G4double edge_z, G4double z_delta) |
| BoxBuilderPtr | CreateDeltasBoxBuilder (const G4String &name, G4double edge_x, G4double x_delta, G4double edge_y, G4double y_delta, G4double edge_z, G4double z_delta) |
| BoxBuilderPtr | CreateDeltasBoxBuilder (G4double unit, const G4String &name, G4double edge_x, G4double x_delta, G4double edge_y, G4double y_delta, G4double edge_z, G4double z_delta) |
| BoxBuilderPtr | CreateEdgesBoxBuilder (const G4String &name, G4double x_edge1, G4double x_edge2, G4double y_edge1, G4double y_edge2, G4double z_edge1, G4double z_edge2) |
| BoxBuilderPtr | CreateEdgesBoxBuilder (G4double unit, const G4String &name, G4double x_edge1, G4double x_edge2, G4double y_edge1, G4double y_edge2, G4double z_edge1, G4double z_edge2) |
| FromG4VSolidPtr | CreateFromG4VSolid (G4VSolid *solid) |
| RZBuilderPtr | CreatePolyhedraBuilder (const G4String &name, int sides, G4double phi_start=0., G4double phi_tot=360) |
| RZBuilderPtr | CreatePolyconeBuilder (const G4String &name, G4double phi_start=0., G4double phi_tot=360) |
| RZBuilderPtr | CreateCylinderBuilder (G4double unit, const G4String &name, G4double endz, G4double height, G4double OR, G4double IR=0) |
| RZBuilderPtr | CreateCylinderBuilder (const G4String &name, G4double endz, G4double height, G4double OR, G4double IR=0) |
Factories for creating VolumeBuilder and StructureBuilder objects.
/**
/**
Create an unconfigured Box Solid, for use with SetXEdges() etc... Uses the global default unit unless you call SetDefaultUnit() before setting sizes.
| name | Base name to derive geometry object names from. |
Factories for creating VolumeBuilder and StructureBuilder objects.
| AssemblyPtr CreateAssembly | ( | G4String | name | ) |
Assembly of strucures, ie builders and/or other assemblies.
Definition at line 25 of file Assembly.cc.
| BoxBuilderPtr CreateBoxBuilder | ( | const G4String & | name | ) |
Definition at line 32 of file BoxBuilder.cc.
| BoxBuilderPtr CreateBoxBuilder | ( | const G4String & | name, |
| G4double | unit | ||
| ) |
Create an unconfigured Box Solid, for use with SetXEdges() etc...
| name | Base name to derive geometry object names from. |
| unit | unit for this call only (ex: CLHEP::mm) |
Definition at line 37 of file BoxBuilder.cc.
| BoxBuilderPtr CreateCenteredBoxBuilder | ( | const G4String & | name, |
| G4double | x_full_size, | ||
| G4double | y_full_size, | ||
| G4double | z_full_size | ||
| ) |
Create a Box solid.
Uses the global default unit
| name | Base name to derive geometry object names from. |
| x_full_size | FULL X size |
| y_full_size | FULL Y size |
| z_full_size | FULL Z size |
| name |
Definition at line 110 of file BoxBuilder.cc.
| BoxBuilderPtr CreateCenteredBoxBuilder | ( | G4double | unit, |
| const G4String & | name, | ||
| G4double | x_full_size, | ||
| G4double | y_full_size, | ||
| G4double | z_full_size | ||
| ) |
Create a Box solid.
| unit | The unit to use for this call only (ex: CLHEP::mm) |
| name | Base name to derive geometry object names from. |
| x_full_size | FULL X size |
| y_full_size | FULL Y size |
| z_full_size | FULL Z size |
Definition at line 96 of file BoxBuilder.cc.
| RZBuilderPtr CreateCylinderBuilder | ( | const G4String & | name, |
| G4double | endz, | ||
| G4double | height, | ||
| G4double | OR, | ||
| G4double | IR = 0 |
||
| ) |
Create a simple cylinder builder using global default unit.
| name | Name used to derive all product names. |
| endz | The z reference of one end (either one) |
| height | Height, can be positive or negative (from z reference) |
| OR | Outer radius. |
| IR | Optional inner radius. Default=0 |
Definition at line 60 of file RZBuilder.cc.
| RZBuilderPtr CreateCylinderBuilder | ( | G4double | unit, |
| const G4String & | name, | ||
| G4double | endz, | ||
| G4double | height, | ||
| G4double | OR, | ||
| G4double | IR = 0 |
||
| ) |
Create a simple cylinder builder.
| name | Name used to derive all product names. |
| unit | Unit applied to all values. |
| endz | The z reference of one end (either one) |
| height | Height, can be positive or negative (from z reference) |
| OR | Outer radius. |
| IR | Optional inner radius. Default=0 |
Definition at line 44 of file RZBuilder.cc.
| BoxBuilderPtr CreateDeltasBoxBuilder | ( | const G4String & | name, |
| G4double | edge_x, | ||
| G4double | x_delta, | ||
| G4double | edge_y, | ||
| G4double | y_delta, | ||
| G4double | edge_z, | ||
| G4double | z_delta | ||
| ) |
Create a Box solid.
Uses the global default unit
| name | Base name to derive geometry object names from. |
| edge_x | The x reference of one end (either one) |
| x_delta | FULL X size, + or - from end_x. |
| edge_y | The y reference of one end (either one) |
| y_delta | FULL Y size. + or - from end_y. |
| edge_z | The z reference of one end (either one) |
| z_delta | Height, can be positive or negative (from z reference) |
Definition at line 56 of file BoxBuilder.cc.
| BoxBuilderPtr CreateDeltasBoxBuilder | ( | G4double | unit, |
| const G4String & | name, | ||
| G4double | edge_x, | ||
| G4double | x_delta, | ||
| G4double | edge_y, | ||
| G4double | y_delta, | ||
| G4double | edge_z, | ||
| G4double | z_delta | ||
| ) |
Create a Box solid.
| unit | The unit to use for this call only (ex: CLHEP::mm) |
| name | Base name to derive geometry object names from. |
| edge_x | The x reference of one end (either one) |
| x_delta | FULL X size, + or - from end_x. |
| edge_y | The y reference of one end (either one) |
| y_delta | FULL Y size. + or - from end_y. |
| edge_z | The z reference of one end (either one) |
| z_delta | Height, can be positive or negative (from z reference) |
Definition at line 44 of file BoxBuilder.cc.
| BoxBuilderPtr CreateEdgesBoxBuilder | ( | const G4String & | name, |
| G4double | x_edge1, | ||
| G4double | x_edge2, | ||
| G4double | y_edge1, | ||
| G4double | y_edge2, | ||
| G4double | z_edge1, | ||
| G4double | z_edge2 | ||
| ) |
Create a Box solid from edge coordinates.
Uses the global default unit
| name | Base name to derive geometry object names from. |
| x_edge1 | One end of the box in the x-dimension. |
| x_edge2 | The other end of the box in the x-dimension. |
| y_edge1 | One end of the box in the y-dimension. |
| y_edge2 | The other end of the box in the y-dimension. |
| z_edge1 | One end of the box in the z-dimension. |
| z_edge2 | The other end of the box in the z-dimension. |
Definition at line 124 of file BoxBuilder.cc.
| BoxBuilderPtr CreateEdgesBoxBuilder | ( | G4double | unit, |
| const G4String & | name, | ||
| G4double | x_edge1, | ||
| G4double | x_edge2, | ||
| G4double | y_edge1, | ||
| G4double | y_edge2, | ||
| G4double | z_edge1, | ||
| G4double | z_edge2 | ||
| ) |
Create a Box solid from edge coordinates using a specified unit.
| unit | The unit to use for this call only (ex: CLHEP::mm) |
| name | Base name to derive geometry object names from. |
| x_edge1 | One end of the box in the x-dimension. |
| x_edge2 | The other end of the box in the x-dimension. |
| y_edge1 | One end of the box in the y-dimension. |
| y_edge2 | The other end of the box in the y-dimension. |
| z_edge1 | One end of the box in the z-dimension. |
| z_edge2 | The other end of the box in the z-dimension. |
Definition at line 134 of file BoxBuilder.cc.
| FromG4VSolidPtr CreateFromG4VSolid | ( | G4VSolid * | solid | ) |
Constructor to make a builder from an Existing Geant solid.
| solid | G4VSolid pointer |
Definition at line 25 of file FromG4VSolid.cc.
| RZBuilderPtr CreatePolyconeBuilder | ( | const G4String & | name, |
| G4double | phi_start = 0., |
||
| G4double | phi_tot = 360 |
||
| ) |
Create a builder for associated IR,OR,Z defined object.
| name | Base name to derive geometry object names from. |
| phi_start | Optional Start angle |
| phi_tot | Optional Total degrees |
| sides | Optional number of sides, for CreatePoyhedra only, (can set it later, dflt = 4 ) |
Definition at line 26 of file RZBuilder.cc.
| RZBuilderPtr CreatePolyhedraBuilder | ( | const G4String & | name, |
| int | sides, | ||
| G4double | phi_start = 0., |
||
| G4double | phi_tot = 360 |
||
| ) |
Create a builder for associated IR,OR,Z defined object.
| name | Base name to derive geometry object names from. |
| phi_start | Optional Start angle |
| phi_tot | Optional Total degrees |
| sides | Optional number of sides, for CreatePoyhedra only, (can set it later, dflt = 4 ) |
Definition at line 36 of file RZBuilder.cc.
| BoxBuilderPtr CreateZDeltaBoxBuilder | ( | const G4String & | name, |
| G4double | x_full_size, | ||
| G4double | y_full_size, | ||
| G4double | edge_z, | ||
| G4double | z_delta | ||
| ) |
Create a Box solid.
Uses the global default unit.
| name | Base name to derive geometry object names from. |
| x_full_size | FULL X size |
| y_full_size | FULL Y size |
| edge_z | Full Z size |
| z_delta | Full Z size |
Definition at line 82 of file BoxBuilder.cc.
| BoxBuilderPtr CreateZDeltaBoxBuilder | ( | G4double | unit, |
| const G4String & | name, | ||
| G4double | x_full_size, | ||
| G4double | y_full_size, | ||
| G4double | edge_z, | ||
| G4double | z_delta | ||
| ) |
Create a Box solid.
| unit | The unit to use for this call only (ex: CLHEP::mm) |
| name | Base name to derive geometry object names from. |
| x_full_size | FULL X size |
| y_full_size | FULL Y size |
| edge_z | Full Z size |
| z_delta | Full Z size |
Definition at line 67 of file BoxBuilder.cc.