Warning, file /include/Geant4/G4USphere.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 G4USPHERE_HH
0035 #define G4USPHERE_HH
0036
0037 #include "G4UAdapter.hh"
0038
0039 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
0040
0041 #include <VecGeom/volumes/UnplacedSphere.h>
0042
0043 #include "G4Polyhedron.hh"
0044
0045 class G4USphere : public G4UAdapter<vecgeom::UnplacedSphere>
0046 {
0047 using Shape_t = vecgeom::UnplacedSphere;
0048 using Base_t = G4UAdapter<vecgeom::UnplacedSphere>;
0049
0050 public:
0051
0052 G4USphere(const G4String& pName,
0053 G4double pRmin, G4double pRmax,
0054 G4double pSPhi, G4double pDPhi,
0055 G4double pSTheta, G4double pDTheta);
0056
0057
0058
0059 ~G4USphere() override;
0060
0061 void ComputeDimensions( G4VPVParameterisation* p,
0062 const G4int n,
0063 const G4VPhysicalVolume* pRep) override;
0064
0065 G4VSolid* Clone() const override;
0066
0067 G4double GetInnerRadius () const;
0068 G4double GetOuterRadius () const;
0069 G4double GetStartPhiAngle () const;
0070 G4double GetDeltaPhiAngle () const;
0071 G4double GetStartThetaAngle() const;
0072 G4double GetDeltaThetaAngle() const;
0073 G4double GetSinStartPhi () const;
0074 G4double GetCosStartPhi () const;
0075 G4double GetSinEndPhi () const;
0076 G4double GetCosEndPhi () const;
0077 G4double GetSinStartTheta () const;
0078 G4double GetCosStartTheta () const;
0079 G4double GetSinEndTheta () const;
0080 G4double GetCosEndTheta () const;
0081
0082 void SetInnerRadius (G4double newRMin);
0083 void SetOuterRadius (G4double newRmax);
0084 void SetStartPhiAngle (G4double newSphi, G4bool trig=true);
0085 void SetDeltaPhiAngle (G4double newDphi);
0086 void SetStartThetaAngle(G4double newSTheta);
0087 void SetDeltaThetaAngle(G4double newDTheta);
0088
0089 inline G4GeometryType GetEntityType() const override;
0090
0091 void BoundingLimits(G4ThreeVector& pMin, G4ThreeVector& pMax) const override;
0092
0093 G4bool CalculateExtent(const EAxis pAxis,
0094 const G4VoxelLimits& pVoxelLimit,
0095 const G4AffineTransform& pTransform,
0096 G4double& pMin, G4double& pMax) const override;
0097
0098 G4Polyhedron* CreatePolyhedron() const override;
0099
0100 public:
0101
0102 G4USphere(__void__&);
0103
0104
0105
0106
0107
0108 G4USphere(const G4USphere& rhs);
0109 G4USphere& operator=(const G4USphere& rhs);
0110
0111 };
0112
0113
0114
0115
0116
0117 inline G4GeometryType G4USphere::GetEntityType() const
0118 {
0119 return "G4Sphere";
0120 }
0121
0122 #endif
0123
0124 #endif