Geant4  10.00.p04
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4OTubs Class Reference
Inheritance diagram for G4OTubs:
G4CSGSolid G4VSolid G4CutTubs

Public Member Functions

 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
 
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 ()
 
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)
 

Protected Types

enum  ESide {
  kNull, kRMin, kRMax, kSPhi,
  kEPhi, kPZ, kMZ
}
 
enum  ENorm {
  kNRMin, kNRMax, kNSPhi, kNEPhi,
  kNZ
}
 

Protected Member Functions

G4ThreeVectorListCreateRotatedVertices (const G4AffineTransform &pTransform) const
 
void Initialize ()
 
void CheckSPhiAngle (G4double sPhi)
 
void CheckDPhiAngle (G4double dPhi)
 
void CheckPhiAngles (G4double sPhi, G4double dPhi)
 
void InitializeTrigonometry ()
 
virtual G4ThreeVector ApproxSurfaceNormal (const G4ThreeVector &p) const
 
- 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
 
G4double EstimateCubicVolume (G4int nStat, G4double epsilon) const
 
G4double EstimateSurfaceArea (G4int nStat, G4double ell) const
 

Protected Attributes

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
 

Member Enumeration Documentation

enum ESide
protected
Enumerator
kNull 
kRMin 
kRMax 
kSPhi 
kEPhi 
kPZ 
kMZ 
enum ENorm
protected
Enumerator
kNRMin 
kNRMax 
kNSPhi 
kNEPhi 
kNZ 

Constructor & Destructor Documentation

G4OTubs ( const G4String pName,
G4double  pRMin,
G4double  pRMax,
G4double  pDz,
G4double  pSPhi,
G4double  pDPhi 
)
virtual ~G4OTubs ( )
virtual
G4OTubs ( __void__ &  )
G4OTubs ( const G4OTubs rhs)

Member Function Documentation

G4double GetInnerRadius ( ) const
G4double GetOuterRadius ( ) const
G4double GetZHalfLength ( ) const
G4double GetStartPhiAngle ( ) const
G4double GetDeltaPhiAngle ( ) 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 ( )
virtual

Reimplemented from G4VSolid.

G4double GetSurfaceArea ( )
virtual

Reimplemented from G4VSolid.

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

Implements G4VSolid.

EInside Inside ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

G4ThreeVector SurfaceNormal ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

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

Implements G4VSolid.

G4double DistanceToIn ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

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

Implements G4VSolid.

G4double DistanceToOut ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

G4GeometryType GetEntityType ( ) const
virtual

Implements G4VSolid.

G4ThreeVector GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

G4VSolid* Clone ( ) const
virtual

Reimplemented from G4VSolid.

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

Reimplemented from G4CSGSolid.

void DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

G4Polyhedron* CreatePolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

G4OTubs& operator= ( const G4OTubs rhs)
G4double GetRMin ( ) const
G4double GetRMax ( ) const
G4double GetDz ( ) const
G4double GetSPhi ( ) const
G4double GetDPhi ( ) const
G4ThreeVectorList* CreateRotatedVertices ( const G4AffineTransform pTransform) const
protected
void Initialize ( )
protected
void CheckSPhiAngle ( G4double  sPhi)
protected
void CheckDPhiAngle ( G4double  dPhi)
protected
void CheckPhiAngles ( G4double  sPhi,
G4double  dPhi 
)
protected
void InitializeTrigonometry ( )
protected
virtual G4ThreeVector ApproxSurfaceNormal ( const G4ThreeVector p) const
protectedvirtual

Reimplemented in G4CutTubs.

Member Data Documentation

G4double kRadTolerance
protected
G4double kAngTolerance
protected
G4double fRMin
protected
G4double fRMax
protected
G4double fDz
protected
G4double fSPhi
protected
G4double fDPhi
protected
G4double sinCPhi
protected
G4double cosCPhi
protected
G4double cosHDPhiOT
protected
G4double cosHDPhiIT
protected
G4double sinSPhi
protected
G4double cosSPhi
protected
G4double sinEPhi
protected
G4double cosEPhi
protected
G4bool fPhiFullTube
protected
G4double halfCarTolerance
protected
G4double halfRadTolerance
protected
G4double halfAngTolerance
protected