Geant4  10.03
G4CutTubs Class Reference

#include <G4CutTubs.hh>

+ Inheritance diagram for G4CutTubs:
+ Collaboration diagram for G4CutTubs:

Public Member Functions

 G4CutTubs (const G4String &pName, G4double pRMin, G4double pRMax, G4double pDz, G4double pSPhi, G4double pDPhi, G4ThreeVector pLowNorm, G4ThreeVector pHighNorm)
 
 ~G4CutTubs ()
 
G4ThreeVector GetLowNorm () const
 
G4ThreeVector GetHighNorm () const
 
G4double GetCubicVolume ()
 
G4double GetSurfaceArea ()
 
void Extent (G4ThreeVector &pMin, G4ThreeVector &pMax) const
 
G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pmin, G4double &pmax) const
 
EInside Inside (const G4ThreeVector &p) const
 
G4ThreeVector SurfaceNormal (const G4ThreeVector &p) const
 
G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const
 
G4double DistanceToIn (const G4ThreeVector &p) const
 
G4double DistanceToOut (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=G4bool(false), G4bool *validNorm=0, G4ThreeVector *n=0) const
 
G4double DistanceToOut (const G4ThreeVector &p) const
 
G4GeometryType GetEntityType () const
 
G4ThreeVector GetPointOnSurface () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4PolyhedronCreatePolyhedron () const
 
 G4CutTubs (__void__ &)
 
 G4CutTubs (const G4CutTubs &rhs)
 
G4CutTubsoperator= (const G4CutTubs &rhs)
 
- Public Member Functions inherited from G4OTubs
 G4OTubs (const G4String &pName, G4double pRMin, G4double pRMax, G4double pDz, G4double pSPhi, G4double pDPhi)
 
virtual ~G4OTubs ()
 
G4double GetInnerRadius () const
 
G4double GetOuterRadius () const
 
G4double GetZHalfLength () const
 
G4double GetStartPhiAngle () const
 
G4double GetDeltaPhiAngle () const
 
G4double GetSinStartPhi () const
 
G4double GetCosStartPhi () const
 
G4double GetSinEndPhi () const
 
G4double GetCosEndPhi () const
 
void SetInnerRadius (G4double newRMin)
 
void SetOuterRadius (G4double newRMax)
 
void SetZHalfLength (G4double newDz)
 
void SetStartPhiAngle (G4double newSPhi, G4bool trig=true)
 
void SetDeltaPhiAngle (G4double newDPhi)
 
G4double GetCubicVolume ()
 
G4double GetSurfaceArea ()
 
void Extent (G4ThreeVector &pMin, G4ThreeVector &pMax) const
 
G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pmin, G4double &pmax) const
 
EInside Inside (const G4ThreeVector &p) const
 
G4ThreeVector SurfaceNormal (const G4ThreeVector &p) const
 
G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const
 
G4double DistanceToIn (const G4ThreeVector &p) const
 
G4double DistanceToOut (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=G4bool(false), G4bool *validNorm=0, G4ThreeVector *n=0) const
 
G4double DistanceToOut (const G4ThreeVector &p) const
 
G4GeometryType GetEntityType () const
 
G4ThreeVector GetPointOnSurface () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4PolyhedronCreatePolyhedron () const
 
 G4OTubs (__void__ &)
 
 G4OTubs (const G4OTubs &rhs)
 
G4OTubsoperator= (const G4OTubs &rhs)
 
G4double GetRMin () const
 
G4double GetRMax () const
 
G4double GetDz () const
 
G4double GetSPhi () const
 
G4double GetDPhi () const
 
- Public Member Functions inherited from G4CSGSolid
 G4CSGSolid (const G4String &pName)
 
virtual ~G4CSGSolid ()
 
virtual G4PolyhedronGetPolyhedron () const
 
 G4CSGSolid (__void__ &)
 
 G4CSGSolid (const G4CSGSolid &rhs)
 
G4CSGSolidoperator= (const G4CSGSolid &rhs)
 
- Public Member Functions inherited from G4VSolid
 G4VSolid (const G4String &name)
 
virtual ~G4VSolid ()
 
G4bool operator== (const G4VSolid &s) const
 
G4String GetName () const
 
void SetName (const G4String &name)
 
G4double GetTolerance () const
 
virtual void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
void DumpInfo () const
 
virtual G4VisExtent GetExtent () const
 
virtual const G4VSolidGetConstituentSolid (G4int no) const
 
virtual G4VSolidGetConstituentSolid (G4int no)
 
virtual const G4DisplacedSolidGetDisplacedSolidPtr () const
 
virtual G4DisplacedSolidGetDisplacedSolidPtr ()
 
 G4VSolid (__void__ &)
 
 G4VSolid (const G4VSolid &rhs)
 
G4VSolidoperator= (const G4VSolid &rhs)
 
G4double EstimateCubicVolume (G4int nStat, G4double epsilon) const
 
G4double EstimateSurfaceArea (G4int nStat, G4double ell) const
 

Protected Member Functions

G4ThreeVector ApproxSurfaceNormal (const G4ThreeVector &p) const
 
G4bool IsCrossingCutPlanes () const
 
G4double GetCutZ (const G4ThreeVector &p) const
 
void GetMaxMinZ (G4double &zmin, G4double &zmax) const
 
- Protected Member Functions inherited from G4OTubs
void Initialize ()
 
void CheckSPhiAngle (G4double sPhi)
 
void CheckDPhiAngle (G4double dPhi)
 
void CheckPhiAngles (G4double sPhi, G4double dPhi)
 
void InitializeTrigonometry ()
 
- 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
 

Private Attributes

G4ThreeVector fLowNorm
 
G4ThreeVector fHighNorm
 
G4bool fPhiFullCutTube
 
G4double halfCarTolerance
 
G4double halfRadTolerance
 
G4double halfAngTolerance
 

Additional Inherited Members

- Protected Types inherited from G4OTubs
enum  ESide {
  kNull, kRMin, kRMax, kSPhi,
  kEPhi, kPZ, kMZ
}
 
enum  ENorm {
  kNRMin, kNRMax, kNSPhi, kNEPhi,
  kNZ
}
 
- Protected Attributes inherited from G4OTubs
G4double kRadTolerance
 
G4double kAngTolerance
 
G4double fRMin
 
G4double fRMax
 
G4double fDz
 
G4double fSPhi
 
G4double fDPhi
 
G4double sinCPhi
 
G4double cosCPhi
 
G4double cosHDPhiOT
 
G4double cosHDPhiIT
 
G4double sinSPhi
 
G4double cosSPhi
 
G4double sinEPhi
 
G4double cosEPhi
 
G4bool fPhiFullTube
 
G4double halfCarTolerance
 
G4double halfRadTolerance
 
G4double halfAngTolerance
 
- Protected Attributes inherited from G4CSGSolid
G4double fCubicVolume
 
G4double fSurfaceArea
 
G4bool fRebuildPolyhedron
 
G4PolyhedronfpPolyhedron
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 51 of file G4CutTubs.hh.

Constructor & Destructor Documentation

G4CutTubs::G4CutTubs ( const G4String pName,
G4double  pRMin,
G4double  pRMax,
G4double  pDz,
G4double  pSPhi,
G4double  pDPhi,
G4ThreeVector  pLowNorm,
G4ThreeVector  pHighNorm 
)

Definition at line 65 of file G4CutTubs.cc.

References FatalException, fHighNorm, fLowNorm, fPhiFullCutTube, G4endl, G4Exception(), G4GeometryTolerance::GetAngularTolerance(), G4GeometryTolerance::GetInstance(), G4VSolid::GetName(), G4GeometryTolerance::GetRadialTolerance(), halfAngTolerance, halfCarTolerance, halfRadTolerance, JustWarning, G4OTubs::kAngTolerance, G4VSolid::kCarTolerance, G4OTubs::kRadTolerance, and twopi.

Referenced by Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4CutTubs::~G4CutTubs ( )

Definition at line 159 of file G4CutTubs.cc.

G4CutTubs::G4CutTubs ( __void__ &  a)

Definition at line 148 of file G4CutTubs.cc.

G4CutTubs::G4CutTubs ( const G4CutTubs rhs)

Definition at line 167 of file G4CutTubs.cc.

Member Function Documentation

G4ThreeVector G4CutTubs::ApproxSurfaceNormal ( const G4ThreeVector p) const
protectedvirtual

Reimplemented from G4OTubs.

Definition at line 583 of file G4CutTubs.cc.

References G4VSolid::DumpInfo(), G4OTubs::fDPhi, G4OTubs::fDz, fHighNorm, fLowNorm, fPhiFullCutTube, G4OTubs::fRMax, G4OTubs::fRMin, G4OTubs::fSPhi, G4Exception(), JustWarning, G4OTubs::kNEPhi, G4OTubs::kNRMax, G4OTubs::kNRMin, G4OTubs::kNSPhi, G4OTubs::kNZ, G4INCL::Math::min(), and twopi.

Referenced by SurfaceNormal().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4CutTubs::CalculateExtent ( const EAxis  pAxis,
const G4VoxelLimits pVoxelLimit,
const G4AffineTransform pTransform,
G4double pmin,
G4double pmax 
) const
virtual

Implements G4VSolid.

Definition at line 262 of file G4CutTubs.cc.

References G4BoundingEnvelope::BoundingBoxVsVoxelLimits(), G4BoundingEnvelope::CalculateExtent(), deg, Extent(), G4OTubs::GetCosEndPhi(), G4OTubs::GetCosStartPhi(), G4OTubs::GetDeltaPhiAngle(), G4OTubs::GetInnerRadius(), G4OTubs::GetOuterRadius(), G4OTubs::GetSinEndPhi(), G4OTubs::GetSinStartPhi(), and twopi.

+ Here is the call graph for this function:

G4VSolid * G4CutTubs::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1725 of file G4CutTubs.cc.

References G4CutTubs().

+ Here is the call graph for this function:

G4Polyhedron * G4CutTubs::CreatePolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1838 of file G4CutTubs.cc.

References G4OTubs::CreatePolyhedron(), G4OTubs::fDz, GetCutZ(), G4VSolid::kCarTolerance, n, and G4InuclParticleNames::nn.

+ Here is the call graph for this function:

void G4CutTubs::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

Definition at line 1833 of file G4CutTubs.cc.

References G4VGraphicsScene::AddSolid().

+ Here is the call graph for this function:

G4double G4CutTubs::DistanceToIn ( const G4ThreeVector p,
const G4ThreeVector v 
) const
virtual

Implements G4VSolid.

Definition at line 725 of file G4CutTubs.cc.

References G4OTubs::cosCPhi, G4OTubs::cosEPhi, G4OTubs::cosHDPhiIT, G4OTubs::cosSPhi, G4OTubs::fDz, fHighNorm, fLowNorm, fPhiFullCutTube, G4OTubs::fRMax, G4OTubs::fRMin, GetCutZ(), halfCarTolerance, halfRadTolerance, kInfinity, G4OTubs::kRadTolerance, G4OTubs::sinCPhi, G4OTubs::sinEPhi, and G4OTubs::sinSPhi.

+ Here is the call graph for this function:

G4double G4CutTubs::DistanceToIn ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 1178 of file G4CutTubs.cc.

References G4OTubs::cosCPhi, G4OTubs::cosEPhi, G4OTubs::cosSPhi, G4OTubs::fDPhi, G4OTubs::fDz, fHighNorm, fLowNorm, fPhiFullCutTube, G4OTubs::fRMax, G4OTubs::fRMin, G4INCL::Math::max(), G4OTubs::sinCPhi, G4OTubs::sinEPhi, and G4OTubs::sinSPhi.

+ Here is the call graph for this function:

G4double G4CutTubs::DistanceToOut ( const G4ThreeVector p,
const G4ThreeVector v,
const G4bool  calcNorm = G4bool(false),
G4bool validNorm = 0,
G4ThreeVector n = 0 
) const
virtual
G4double G4CutTubs::DistanceToOut ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 1669 of file G4CutTubs.cc.

References G4OTubs::cosCPhi, G4OTubs::cosEPhi, G4OTubs::cosSPhi, G4OTubs::fDz, fHighNorm, fLowNorm, fPhiFullCutTube, G4OTubs::fRMax, G4OTubs::fRMin, G4INCL::Math::min(), G4OTubs::sinCPhi, G4OTubs::sinEPhi, and G4OTubs::sinSPhi.

+ Here is the call graph for this function:

void G4CutTubs::Extent ( G4ThreeVector pMin,
G4ThreeVector pMax 
) const
virtual

Reimplemented from G4VSolid.

Definition at line 205 of file G4CutTubs.cc.

References G4GeomTools::DiskExtent(), G4VSolid::DumpInfo(), G4Exception(), G4OTubs::GetCosEndPhi(), G4OTubs::GetCosStartPhi(), G4OTubs::GetDeltaPhiAngle(), GetHighNorm(), G4OTubs::GetInnerRadius(), GetLowNorm(), G4VSolid::GetName(), G4OTubs::GetOuterRadius(), G4OTubs::GetSinEndPhi(), G4OTubs::GetSinStartPhi(), G4OTubs::GetZHalfLength(), JustWarning, and twopi.

Referenced by CalculateExtent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4CutTubs::GetCubicVolume ( )
inlinevirtual

Reimplemented from G4VSolid.

G4double G4CutTubs::GetCutZ ( const G4ThreeVector p) const
protected

Definition at line 1921 of file G4CutTubs.cc.

References G4OTubs::fDz, fHighNorm, and fLowNorm.

Referenced by CreatePolyhedron(), DistanceToIn(), GetMaxMinZ(), GetPointOnSurface(), and IsCrossingCutPlanes().

+ Here is the caller graph for this function:

G4GeometryType G4CutTubs::GetEntityType ( ) const
virtual

Implements G4VSolid.

Definition at line 1716 of file G4CutTubs.cc.

G4ThreeVector G4CutTubs::GetHighNorm ( ) const
inline

Referenced by G4GDMLWriteSolids::CutTubeWrite(), and Extent().

+ Here is the caller graph for this function:

G4ThreeVector G4CutTubs::GetLowNorm ( ) const
inline

Referenced by G4GDMLWriteSolids::CutTubeWrite(), and Extent().

+ Here is the caller graph for this function:

void G4CutTubs::GetMaxMinZ ( G4double zmin,
G4double zmax 
) const
protected

Definition at line 1945 of file G4CutTubs.cc.

References G4OTubs::fDPhi, G4OTubs::fDz, fHighNorm, fLowNorm, G4OTubs::fRMax, G4OTubs::fRMin, G4OTubs::fSPhi, GetCutZ(), G4INCL::Math::max(), G4INCL::Math::min(), pi, and twopi.

+ Here is the call graph for this function:

G4ThreeVector G4CutTubs::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1759 of file G4CutTubs.cc.

References G4OTubs::fDPhi, G4OTubs::fDz, G4OTubs::fRMax, G4OTubs::fRMin, G4OTubs::fSPhi, GetCutZ(), G4CSGSolid::GetRadiusInRing(), G4INCL::DeJongSpin::shoot(), and twopi.

+ Here is the call graph for this function:

G4double G4CutTubs::GetSurfaceArea ( )
inlinevirtual

Reimplemented from G4VSolid.

G4bool G4CutTubs::IsCrossingCutPlanes ( ) const
protected

Definition at line 1898 of file G4CutTubs.cc.

References G4OTubs::fDz, G4OTubs::fRMax, and GetCutZ().

+ Here is the call graph for this function:

G4CutTubs & G4CutTubs::operator= ( const G4CutTubs rhs)

Definition at line 180 of file G4CutTubs.cc.

References fHighNorm, fLowNorm, fPhiFullCutTube, halfAngTolerance, halfCarTolerance, halfRadTolerance, and G4OTubs::operator=().

+ Here is the call graph for this function:

std::ostream & G4CutTubs::StreamInfo ( std::ostream &  os) const
virtual

Reimplemented from G4CSGSolid.

Definition at line 1734 of file G4CutTubs.cc.

References degree, G4OTubs::fDPhi, G4OTubs::fDz, fHighNorm, fLowNorm, G4OTubs::fRMax, G4OTubs::fRMin, G4OTubs::fSPhi, G4VSolid::GetName(), and mm.

+ Here is the call graph for this function:

G4ThreeVector G4CutTubs::SurfaceNormal ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 480 of file G4CutTubs.cc.

References ApproxSurfaceNormal(), G4OTubs::fDPhi, G4OTubs::fDz, fHighNorm, fLowNorm, fPhiFullCutTube, G4OTubs::fRMax, G4OTubs::fRMin, G4OTubs::fSPhi, G4cout, G4endl, G4Exception(), halfAngTolerance, halfCarTolerance, JustWarning, kInfinity, and twopi.

+ Here is the call graph for this function:

Member Data Documentation

G4bool G4CutTubs::fPhiFullCutTube
private
G4double G4CutTubs::halfAngTolerance
private

Definition at line 151 of file G4CutTubs.hh.

Referenced by DistanceToOut(), G4CutTubs(), Inside(), operator=(), and SurfaceNormal().

G4double G4CutTubs::halfCarTolerance
private

Definition at line 151 of file G4CutTubs.hh.

Referenced by DistanceToIn(), DistanceToOut(), G4CutTubs(), Inside(), operator=(), and SurfaceNormal().

G4double G4CutTubs::halfRadTolerance
private

Definition at line 151 of file G4CutTubs.hh.

Referenced by DistanceToIn(), G4CutTubs(), Inside(), and operator=().


The documentation for this class was generated from the following files: