File indexing completed on 2025-01-18 09:59:18
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 G4UTUBS_HH
0035 #define G4UTUBS_HH
0036
0037 #include "G4UAdapter.hh"
0038
0039 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
0040
0041 #include <VecGeom/volumes/UnplacedTube.h>
0042
0043 #include "G4Polyhedron.hh"
0044
0045 class G4UTubs : public G4UAdapter<vecgeom::GenericUnplacedTube>
0046 {
0047 using Shape_t = vecgeom::GenericUnplacedTube;
0048 using Base_t = G4UAdapter<vecgeom::GenericUnplacedTube>;
0049
0050 public:
0051
0052 G4UTubs( const G4String& pName,
0053 G4double pRMin,
0054 G4double pRMax,
0055 G4double pDz,
0056 G4double pSPhi,
0057 G4double pDPhi );
0058
0059
0060 ~G4UTubs() override;
0061
0062 void ComputeDimensions( G4VPVParameterisation* p,
0063 const G4int n,
0064 const G4VPhysicalVolume* pRep ) override;
0065
0066 G4VSolid* Clone() const override;
0067
0068 G4double GetInnerRadius () const;
0069 G4double GetOuterRadius () const;
0070 G4double GetZHalfLength () const;
0071 G4double GetStartPhiAngle () const;
0072 G4double GetDeltaPhiAngle () const;
0073 G4double GetSinStartPhi () const;
0074 G4double GetCosStartPhi () const;
0075 G4double GetSinEndPhi () const;
0076 G4double GetCosEndPhi () const;
0077
0078 void SetInnerRadius (G4double newRMin);
0079 void SetOuterRadius (G4double newRMax);
0080 void SetZHalfLength (G4double newDz);
0081 void SetStartPhiAngle (G4double newSPhi, G4bool trig=true);
0082 void SetDeltaPhiAngle (G4double newDPhi);
0083
0084 inline G4GeometryType GetEntityType() const override;
0085
0086 void BoundingLimits(G4ThreeVector& pMin, G4ThreeVector& pMax) const override;
0087
0088 G4bool CalculateExtent(const EAxis pAxis,
0089 const G4VoxelLimits& pVoxelLimit,
0090 const G4AffineTransform& pTransform,
0091 G4double& pMin, G4double& pMax) const override;
0092
0093 G4Polyhedron* CreatePolyhedron() const override;
0094
0095 public:
0096
0097 G4UTubs(__void__&);
0098
0099
0100
0101
0102 G4UTubs(const G4UTubs& rhs);
0103 G4UTubs& operator=(const G4UTubs& rhs);
0104
0105
0106 };
0107
0108
0109
0110
0111
0112 inline G4GeometryType G4UTubs::GetEntityType() const
0113 {
0114 return "G4Tubs";
0115 }
0116
0117 #endif
0118
0119 #endif