Warning, file /include/Geant4/G4UHype.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 #ifndef G4UHYPE_HH
0035 #define G4UHYPE_HH
0036
0037 #include "G4UAdapter.hh"
0038
0039 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
0040
0041 #include <VecGeom/volumes/UnplacedHype.h>
0042
0043 #include "G4Polyhedron.hh"
0044
0045 class G4UHype : public G4UAdapter<vecgeom::GenericUnplacedHype>
0046 {
0047 using Shape_t = vecgeom::GenericUnplacedHype;
0048 using Base_t = G4UAdapter<vecgeom::GenericUnplacedHype>;
0049
0050 public:
0051
0052 G4UHype(const G4String& name,
0053 G4double newInnerRadius,
0054 G4double newOuterRadius,
0055 G4double newInnerStereo,
0056 G4double newOuterStereo,
0057 G4double newHalfLenZ);
0058 ~G4UHype() override;
0059
0060 void ComputeDimensions( G4VPVParameterisation* p,
0061 const G4int n,
0062 const G4VPhysicalVolume* pRep) override;
0063
0064 G4VSolid* Clone() const override;
0065
0066 G4double GetInnerRadius () const;
0067 G4double GetOuterRadius () const;
0068 G4double GetZHalfLength () const;
0069 G4double GetInnerStereo () const;
0070 G4double GetOuterStereo () const;
0071
0072 void SetInnerRadius (G4double newIRad);
0073 void SetOuterRadius (G4double newORad);
0074 void SetZHalfLength (G4double newHLZ);
0075 void SetInnerStereo (G4double newISte);
0076 void SetOuterStereo (G4double newOSte);
0077
0078 inline G4GeometryType GetEntityType() const override;
0079
0080 G4UHype( const G4UHype& source );
0081 G4UHype& operator=( const G4UHype& source );
0082
0083
0084 void BoundingLimits(G4ThreeVector& pMin, G4ThreeVector& pMax) const override;
0085 G4bool CalculateExtent(const EAxis pAxis,
0086 const G4VoxelLimits& pVoxelLimit,
0087 const G4AffineTransform& pTransform,
0088 G4double& pmin, G4double& pmax) const override;
0089 G4Polyhedron* CreatePolyhedron() const override;
0090 };
0091
0092
0093
0094
0095
0096 inline G4GeometryType G4UHype::GetEntityType() const
0097 {
0098 return "G4Hype";
0099 }
0100
0101 #endif
0102
0103 #endif