File indexing completed on 2025-11-01 08:42:32
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 G4UELLIPTICALCONE_HH
0035 #define G4UELLIPTICALCONE_HH
0036
0037 #include "G4UAdapter.hh"
0038
0039 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
0040
0041 #include <VecGeom/volumes/UnplacedEllipticalCone.h>
0042
0043 #include "G4Polyhedron.hh"
0044
0045 class G4UEllipticalCone : public G4UAdapter<vecgeom::UnplacedEllipticalCone>
0046 {
0047 using Shape_t = vecgeom::UnplacedEllipticalCone;
0048 using Base_t = G4UAdapter<vecgeom::UnplacedEllipticalCone>;
0049
0050 public:
0051
0052 G4UEllipticalCone(const G4String& name, G4double pxSemiAxis,
0053 G4double pySemiAxis,
0054 G4double zMax,
0055 G4double pzTopCut);
0056 ~G4UEllipticalCone() override;
0057
0058 G4VSolid* Clone() const override;
0059
0060 G4double GetSemiAxisMin () const;
0061 G4double GetSemiAxisMax () const;
0062 G4double GetSemiAxisX () const;
0063 G4double GetSemiAxisY () const;
0064 G4double GetZMax() const;
0065 G4double GetZTopCut() const;
0066 void SetSemiAxis (G4double x, G4double y, G4double z);
0067 void SetZCut (G4double newzTopCut);
0068
0069 inline G4GeometryType GetEntityType() const override;
0070
0071 G4UEllipticalCone( const G4UEllipticalCone& source );
0072 G4UEllipticalCone& operator=( const G4UEllipticalCone& source );
0073
0074
0075 void BoundingLimits(G4ThreeVector& pMin, G4ThreeVector& pMax) const override;
0076 G4bool CalculateExtent(const EAxis pAxis,
0077 const G4VoxelLimits& pVoxelLimit,
0078 const G4AffineTransform& pTransform,
0079 G4double& pmin, G4double& pmax) const override;
0080 G4Polyhedron* CreatePolyhedron() const override;
0081 };
0082
0083
0084
0085
0086
0087 inline G4GeometryType G4UEllipticalCone::GetEntityType() const
0088 {
0089 return "G4EllipticalCone";
0090 }
0091
0092 #endif
0093
0094 #endif