ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4GenericPolycone Class Reference

#include <geant4/tree/geant4-10.6-release/source/geometry/solids/specific/include/G4GenericPolycone.hh>

+ Inheritance diagram for G4GenericPolycone:
+ Collaboration diagram for G4GenericPolycone:

Public Member Functions

 G4GenericPolycone (const G4String &name, G4double phiStart, G4double phiTotal, G4int numRZ, const G4double r[], const G4double z[])
 
virtual ~G4GenericPolycone ()
 
EInside Inside (const G4ThreeVector &p) const
 
G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const
 
G4double DistanceToIn (const G4ThreeVector &p) const
 
void BoundingLimits (G4ThreeVector &pMin, G4ThreeVector &pMax) const
 
G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pmin, G4double &pmax) const
 
G4ThreeVector GetPointOnSurface () const
 
G4GeometryType GetEntityType () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
G4PolyhedronCreatePolyhedron () const
 
G4bool Reset ()
 
G4double GetStartPhi () const
 
G4double GetEndPhi () const
 
G4double GetSinStartPhi () const
 
G4double GetCosStartPhi () const
 
G4double GetSinEndPhi () const
 
G4double GetCosEndPhi () const
 
G4bool IsOpen () const
 
G4int GetNumRZCorner () const
 
G4PolyconeSideRZ GetCorner (G4int index) const
 
 G4GenericPolycone (__void__ &)
 
 G4GenericPolycone (const G4GenericPolycone &source)
 
G4GenericPolyconeoperator= (const G4GenericPolycone &source)
 
- Public Member Functions inherited from G4VCSGfaceted
 G4VCSGfaceted (const G4String &name)
 
virtual ~G4VCSGfaceted ()
 
 G4VCSGfaceted (const G4VCSGfaceted &source)
 
G4VCSGfacetedoperator= (const G4VCSGfaceted &source)
 
virtual G4ThreeVector SurfaceNormal (const G4ThreeVector &p) const
 
virtual G4double DistanceToOut (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=nullptr, G4ThreeVector *n=nullptr) const
 
virtual G4double DistanceToOut (const G4ThreeVector &p) const
 
virtual void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
virtual G4VisExtent GetExtent () const
 
virtual G4PolyhedronGetPolyhedron () const
 
G4int GetCubVolStatistics () const
 
G4double GetCubVolEpsilon () const
 
void SetCubVolStatistics (G4int st)
 
void SetCubVolEpsilon (G4double ep)
 
G4int GetAreaStatistics () const
 
G4double GetAreaAccuracy () const
 
void SetAreaStatistics (G4int st)
 
void SetAreaAccuracy (G4double ep)
 
virtual G4double GetCubicVolume ()
 
virtual G4double GetSurfaceArea ()
 
 G4VCSGfaceted (__void__ &)
 
- 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 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

void Create (G4double phiStart, G4double phiTotal, G4ReduciblePolygon *rz)
 
void CopyStuff (const G4GenericPolycone &source)
 
- Protected Member Functions inherited from G4VCSGfaceted
virtual G4double DistanceTo (const G4ThreeVector &p, const G4bool outgoing) const
 
G4ThreeVector GetPointOnSurfaceGeneric () const
 
void CopyStuff (const G4VCSGfaceted &source)
 
void DeleteStuff ()
 
- 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
 

Protected Attributes

G4double startPhi
 
G4double endPhi
 
G4bool phiIsOpen = false
 
G4int numCorner
 
G4PolyconeSideRZcorners = nullptr
 
G4EnclosingCylinderenclosingCylinder = nullptr
 
- Protected Attributes inherited from G4VCSGfaceted
G4int numFace = 0
 
G4VCSGface ** faces = nullptr
 
G4double fCubicVolume = 0.0
 
G4double fSurfaceArea = 0.0
 
G4bool fRebuildPolyhedron = false
 
G4PolyhedronfpPolyhedron = nullptr
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 65 of file G4GenericPolycone.hh.

View newest version in sPHENIX GitHub at line 65 of file G4GenericPolycone.hh

Constructor & Destructor Documentation

G4GenericPolycone::G4GenericPolycone ( const G4String name,
G4double  phiStart,
G4double  phiTotal,
G4int  numRZ,
const G4double  r[],
const G4double  z[] 
)

Definition at line 54 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 54 of file G4GenericPolycone.cc

References Create().

Referenced by Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4GenericPolycone::~G4GenericPolycone ( )
virtual

Definition at line 254 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 254 of file G4GenericPolycone.cc

References corners, and enclosingCylinder.

G4GenericPolycone::G4GenericPolycone ( __void__ &  a)

Definition at line 247 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 247 of file G4GenericPolycone.cc

G4GenericPolycone::G4GenericPolycone ( const G4GenericPolycone source)

Definition at line 262 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 262 of file G4GenericPolycone.cc

References CopyStuff().

+ Here is the call graph for this function:

Member Function Documentation

void G4GenericPolycone::BoundingLimits ( G4ThreeVector pMin,
G4ThreeVector pMax 
) const
virtual

Reimplemented from G4VSolid.

Definition at line 382 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 382 of file G4GenericPolycone.cc

References G4GeomTools::DiskExtent(), G4VSolid::DumpInfo(), G4Exception(), GetCorner(), GetCosEndPhi(), GetCosStartPhi(), G4VSolid::GetName(), GetNumRZCorner(), GetSinEndPhi(), GetSinStartPhi(), IsOpen(), JustWarning, kInfinity, message(), pMax, G4PolyconeSideRZ::r, rmax(), CLHEP::Hep3Vector::set(), CLHEP::Hep2Vector::x(), CLHEP::Hep3Vector::x(), CLHEP::Hep2Vector::y(), CLHEP::Hep3Vector::y(), G4PolyconeSideRZ::z, and CLHEP::Hep3Vector::z().

Referenced by CalculateExtent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4GenericPolycone::CalculateExtent ( const EAxis  pAxis,
const G4VoxelLimits pVoxelLimit,
const G4AffineTransform pTransform,
G4double pmin,
G4double pmax 
) const
virtual
G4VSolid * G4GenericPolycone::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 578 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 578 of file G4GenericPolycone.cc

References G4GenericPolycone().

+ Here is the call graph for this function:

void G4GenericPolycone::CopyStuff ( const G4GenericPolycone source)
protected

Definition at line 289 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 289 of file G4GenericPolycone.cc

References corners, enclosingCylinder, endPhi, G4VCSGfaceted::fpPolyhedron, G4VCSGfaceted::fRebuildPolyhedron, numCorner, phiIsOpen, and startPhi.

Referenced by G4GenericPolycone(), and operator=().

+ Here is the caller graph for this function:

void G4GenericPolycone::Create ( G4double  phiStart,
G4double  phiTotal,
G4ReduciblePolygon rz 
)
protected
G4Polyhedron * G4GenericPolycone::CreatePolyhedron ( ) const
virtual

Creates user defined polyhedron. This function allows to the user to define arbitrary polyhedron. The faces of the polyhedron should be either triangles or planar quadrilateral. Nodes of a face are defined by indexes pointing to the elements in the xyz array. Numeration of the elements in the array starts from 1 (like in fortran). The indexes can be positive or negative. Negative sign means that the corresponding edge is invisible. The normal of the face should be directed to exterior of the polyhedron.

Parameters
Nnodesnumber of nodes
Nfacesnumber of faces
xyznodes
faces_vecfaces (quadrilaterals or triangles)
Returns
status of the operation - is non-zero in case of problem

Implements G4VCSGfaceted.

Definition at line 622 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 622 of file G4GenericPolycone.cc

References a, A(), ab, kdfinder::abs(), b, B(), C(), c, corners, HepPolyhedron::createPolyhedron(), d, endPhi, G4Exception(), G4VSolid::GetName(), HepPolyhedron::GetNumberOfRotationSteps(), JustWarning, G4VSolid::kCarTolerance, message(), numCorner, numSide(), phi, phiIsOpen, G4PolyconeSideRZ::r, startPhi, twopi, and G4PolyconeSideRZ::z.

+ Here is the call graph for this function:

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

Reimplemented from G4VCSGfaceted.

Definition at line 355 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 355 of file G4GenericPolycone.cc

References G4VCSGfaceted::DistanceToIn(), enclosingCylinder, kInfinity, and G4EnclosingCylinder::ShouldMiss().

+ Here is the call graph for this function:

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

Reimplemented from G4VCSGfaceted.

Definition at line 372 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 372 of file G4GenericPolycone.cc

References G4VCSGfaceted::DistanceToIn().

+ Here is the call graph for this function:

G4PolyconeSideRZ G4GenericPolycone::GetCorner ( G4int  index) const
inline

Referenced by BoundingLimits(), G4tgbVolume::BuildSolidForDivision(), CalculateExtent(), PHG4GDMLWriteSolids::GenericPolyconeWrite(), G4GDMLWriteSolids::GenericPolyconeWrite(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4double G4GenericPolycone::GetCosEndPhi ( ) const
inline

Referenced by BoundingLimits(), and CalculateExtent().

+ Here is the caller graph for this function:

G4double G4GenericPolycone::GetCosStartPhi ( ) const
inline

Referenced by BoundingLimits(), and CalculateExtent().

+ Here is the caller graph for this function:

G4double G4GenericPolycone::GetEndPhi ( ) const
inline

Referenced by G4tgbVolume::BuildSolidForDivision(), CalculateExtent(), PHG4GDMLWriteSolids::GenericPolyconeWrite(), G4GDMLWriteSolids::GenericPolyconeWrite(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4GeometryType G4GenericPolycone::GetEntityType ( ) const
virtual

Reimplemented from G4VCSGfaceted.

Definition at line 569 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 569 of file G4GenericPolycone.cc

G4int G4GenericPolycone::GetNumRZCorner ( ) const
inline

Referenced by BoundingLimits(), G4tgbVolume::BuildSolidForDivision(), CalculateExtent(), PHG4GDMLWriteSolids::GenericPolyconeWrite(), G4GDMLWriteSolids::GenericPolyconeWrite(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4ThreeVector G4GenericPolycone::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 614 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 614 of file G4GenericPolycone.cc

References G4VCSGfaceted::GetPointOnSurfaceGeneric().

+ Here is the call graph for this function:

G4double G4GenericPolycone::GetSinEndPhi ( ) const
inline

Referenced by BoundingLimits(), and CalculateExtent().

+ Here is the caller graph for this function:

G4double G4GenericPolycone::GetSinStartPhi ( ) const
inline

Referenced by BoundingLimits(), and CalculateExtent().

+ Here is the caller graph for this function:

G4double G4GenericPolycone::GetStartPhi ( ) const
inline

Referenced by G4tgbVolume::BuildSolidForDivision(), CalculateExtent(), PHG4GDMLWriteSolids::GenericPolyconeWrite(), G4GDMLWriteSolids::GenericPolyconeWrite(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

EInside G4GenericPolycone::Inside ( const G4ThreeVector p) const
virtual

Reimplemented from G4VCSGfaceted.

Definition at line 337 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 337 of file G4GenericPolycone.cc

References enclosingCylinder, G4VCSGfaceted::Inside(), kOutside, and G4EnclosingCylinder::MustBeOutside().

+ Here is the call graph for this function:

G4bool G4GenericPolycone::IsOpen ( ) const
inline

Referenced by BoundingLimits(), and CalculateExtent().

+ Here is the caller graph for this function:

G4GenericPolycone & G4GenericPolycone::operator= ( const G4GenericPolycone source)

Definition at line 271 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 271 of file G4GenericPolycone.cc

References CopyStuff(), corners, enclosingCylinder, and G4VCSGfaceted::operator=().

+ Here is the call graph for this function:

G4bool G4GenericPolycone::Reset ( )

Definition at line 322 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 322 of file G4GenericPolycone.cc

References G4endl, G4Exception(), G4VSolid::GetName(), JustWarning, and message().

+ Here is the call graph for this function:

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

Reimplemented from G4VCSGfaceted.

Definition at line 587 of file G4GenericPolycone.cc.

View newest version in sPHENIX GitHub at line 587 of file G4GenericPolycone.cc

References corners, degree, endPhi, G4VSolid::GetName(), numCorner, G4PolyconeSideRZ::r, startPhi, and G4PolyconeSideRZ::z.

+ Here is the call graph for this function:

Member Data Documentation

G4PolyconeSideRZ* G4GenericPolycone::corners = nullptr
protected

Definition at line 146 of file G4GenericPolycone.hh.

View newest version in sPHENIX GitHub at line 146 of file G4GenericPolycone.hh

Referenced by CopyStuff(), Create(), CreatePolyhedron(), operator=(), StreamInfo(), and ~G4GenericPolycone().

G4EnclosingCylinder* G4GenericPolycone::enclosingCylinder = nullptr
protected

Definition at line 150 of file G4GenericPolycone.hh.

View newest version in sPHENIX GitHub at line 150 of file G4GenericPolycone.hh

Referenced by CopyStuff(), Create(), DistanceToIn(), Inside(), operator=(), and ~G4GenericPolycone().

G4double G4GenericPolycone::endPhi
protected

Definition at line 143 of file G4GenericPolycone.hh.

View newest version in sPHENIX GitHub at line 143 of file G4GenericPolycone.hh

Referenced by CopyStuff(), Create(), CreatePolyhedron(), and StreamInfo().

G4int G4GenericPolycone::numCorner
protected

Definition at line 145 of file G4GenericPolycone.hh.

View newest version in sPHENIX GitHub at line 145 of file G4GenericPolycone.hh

Referenced by CopyStuff(), Create(), CreatePolyhedron(), and StreamInfo().

G4bool G4GenericPolycone::phiIsOpen = false
protected

Definition at line 144 of file G4GenericPolycone.hh.

View newest version in sPHENIX GitHub at line 144 of file G4GenericPolycone.hh

Referenced by CopyStuff(), Create(), and CreatePolyhedron().

G4double G4GenericPolycone::startPhi
protected

Definition at line 142 of file G4GenericPolycone.hh.

View newest version in sPHENIX GitHub at line 142 of file G4GenericPolycone.hh

Referenced by CopyStuff(), Create(), CreatePolyhedron(), and StreamInfo().


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