|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4Trd is a trapezoid with the X and Y dimensions varying along Z. More...
#include <G4Trd.hh>
Additional Inherited Members | |
| Protected Member Functions inherited from G4CSGSolid | |
| G4double | GetRadiusInRing (G4double rmin, G4double rmax) const |
| Protected Member Functions inherited from G4VSolid | |
| void | CalculateClippedPolygonExtent (G4ThreeVectorList &pPolygon, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const |
| void | ClipCrossSection (G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const |
| void | ClipBetweenSections (G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const |
| void | ClipPolygon (G4ThreeVectorList &pPolygon, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis) const |
| Protected Attributes inherited from G4CSGSolid | |
| G4double | fCubicVolume = 0.0 |
| G4double | fSurfaceArea = 0.0 |
| G4bool | fRebuildPolyhedron = false |
| G4Polyhedron * | fpPolyhedron = nullptr |
| Protected Attributes inherited from G4VSolid | |
| G4double | kCarTolerance |
G4Trd is a trapezoid with the X and Y dimensions varying along Z.
| G4Trd::G4Trd | ( | const G4String & | pName, |
| G4double | pdx1, | ||
| G4double | pdx2, | ||
| G4double | pdy1, | ||
| G4double | pdy2, | ||
| G4double | pdz ) |
Constructs a trapezoid with name, and half lengths.
| [in] | pName | The name of the solid. |
| [in] | pdx1 | Half-length along X at the surface positioned at -dz. |
| [in] | pdx2 | Half-length along X at the surface positioned at +dz. |
| [in] | pdy1 | Half-length along Y at the surface positioned at -dz. |
| [in] | pdy2 | Half-length along Y at the surface positioned at +dz. |
| [in] | pdz | Half-length along Z axis. |
Definition at line 60 of file G4Trd.cc.
Referenced by Clone(), G4Trd(), operator=(), and SetZHalfLength().
|
overridedefault |
Default destructor.
| G4Trd::G4Trd | ( | __void__ & | a | ) |
| G4Trd::G4Trd | ( | const G4Trd & | rhs | ) |
Copy constructor and assignment operator.
Definition at line 87 of file G4Trd.cc.
|
overridevirtual |
Computes the bounding limits of the solid.
| [out] | pMin | The minimum bounding limit point. |
| [out] | pMax | The maximum bounding limit point. |
Reimplemented from G4VSolid.
Definition at line 218 of file G4Trd.cc.
Referenced by CalculateExtent().
|
overridevirtual |
Calculates the minimum and maximum extent of the solid, when under the specified transform, and within the specified limits.
| [in] | pAxis | The axis along which compute the extent. |
| [in] | pVoxelLimit | The limiting space dictated by voxels. |
| [in] | pTransform | The internal transformation applied to the solid. |
| [out] | pMin | The minimum extent value. |
| [out] | pMax | The maximum extent value. |
Implements G4VSolid.
Definition at line 249 of file G4Trd.cc.
|
overridevirtual |
Makes a clone of the object for use in multi-treading.
Reimplemented from G4VSolid.
Definition at line 678 of file G4Trd.cc.
|
overridevirtual |
Dispatch method for parameterisation replication mechanism and dimension computation.
Reimplemented from G4VSolid.
Definition at line 207 of file G4Trd.cc.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Calculates the distance to the nearest surface of a shape from an outside point. The distance can be an underestimate.
| [in] | p | The point at offset p. |
Implements G4VSolid.
|
overridevirtual |
Returns the distance along the normalised vector 'v' to the shape, from the point at offset 'p'. If there is no intersection, returns kInfinity. The first intersection resulting from 'leaving' a surface/volume is discarded. Hence, it is tolerant of points on the surface of the shape.
| [in] | p | The point at offset p. |
| [in] | v | The normalised direction vector. |
Implements G4VSolid.
Definition at line 428 of file G4Trd.cc.
|
overridevirtual |
Calculates the distance to the nearest surface of a shape from an inside point 'p'. The distance can be an underestimate.
| [in] | p | The point at offset p. |
Implements G4VSolid.
Definition at line 628 of file G4Trd.cc.
|
overridevirtual |
Returns the distance along the normalised vector 'v' to the shape, from a point at an offset 'p' inside or on the surface of the shape. Intersections with surfaces, when the point is less than Tolerance/2 from a surface must be ignored.
| [in] | p | The point at offset p. |
| [in] | v | The normalised direction vector. |
| [in] | calcNorm | Flag to indicate if to calculate the normal or not. |
| [out] | validNorm | Flag set to true if the solid lies entirely behind or on the exiting surface. It is set false if the solid does not lie entirely behind or on the exiting surface. 'calcNorm' must be true, otherwise it is unused. |
| [out] | n | The exiting outwards normal vector (undefined Magnitude). 'calcNorm' must be true, otherwise it is unused. |
Implements G4VSolid.
Definition at line 542 of file G4Trd.cc.
|
overridevirtual |
Returning an estimation of the solid volume (capacity) and surface area, in internal units.
Reimplemented from G4VSolid.
Definition at line 770 of file G4Trd.cc.
|
overridevirtual |
|
overridevirtual |
Returns a random point located and uniformly distributed on the surface of the solid.
Reimplemented from G4VSolid.
Definition at line 710 of file G4Trd.cc.
|
overridevirtual |
Returns an estimation of the solid surface area in internal units. This method may be overloaded by derived classes to compute the exact geometrical quantity for solids where this is possible, or anyway to cache the computed value. Note: the computed value is NOT cached.
Reimplemented from G4VSolid.
Definition at line 785 of file G4Trd.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
|
overridevirtual |
Definition at line 100 of file G4Trd.cc.
| void G4Trd::SetAllParameters | ( | G4double | pdx1, |
| G4double | pdx2, | ||
| G4double | pdy1, | ||
| G4double | pdy2, | ||
| G4double | pdz ) |
Sets all parameters, as for constructor. Checks and sets half-widths.
Definition at line 126 of file G4Trd.cc.
Referenced by G4ParameterisationTrdX::ComputeDimensions(), G4ParameterisationTrdY::ComputeDimensions(), and G4ParameterisationTrdZ::ComputeDimensions().
|
inline |
Modifiers.
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Streams the object contents to an output stream.
Reimplemented from G4CSGSolid.
Definition at line 687 of file G4Trd.cc.
|
overridevirtual |
Returns the outwards pointing unit normal of the shape for the surface closest to the point at offset 'p'.
| [in] | p | The point at offset p. |
Implements G4VSolid.
Definition at line 317 of file G4Trd.cc.
| G4double G4Trd::a |
Definition at line 233 of file G4Trd.hh.
Referenced by DistanceToOut(), and G4Trd().
| G4double G4Trd::b |
Definition at line 233 of file G4Trd.hh.
Referenced by DistanceToOut().
| G4double G4Trd::c |
Definition at line 233 of file G4Trd.hh.
Referenced by DistanceToOut().