library: libGeom
#include "TGeoHype.h"

TGeoHype


class description - header file - source file - inheritance tree (.pdf)

class TGeoHype : public TGeoTube

Inheritance Chart:
TObject
<-
TNamed
<-
TGeoShape
<-
TGeoBBox
<-
TGeoTube
<-
TGeoHype

    public:
TGeoHype() TGeoHype(Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz) TGeoHype(const char* name, Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz) TGeoHype(Double_t* params) TGeoHype(const TGeoHype&) virtual ~TGeoHype() virtual Double_t Capacity() const static TClass* Class() virtual void ComputeBBox() virtual void ComputeNormal(Double_t* point, Double_t* dir, Double_t* norm) virtual Bool_t Contains(Double_t* point) const virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual Double_t DistFromInside(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = TGeoShape::Big(), Double_t* safe = 0) const virtual Double_t DistFromOutside(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = TGeoShape::Big(), Double_t* safe = 0) const Int_t DistToHype(Double_t* point, Double_t* dir, Double_t* s, Bool_t inner) const virtual TGeoVolume* Divide(TGeoVolume* voldiv, const char* divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step) virtual Double_t GetAxisRange(Int_t iaxis, Double_t& xlo, Double_t& xhi) const virtual void GetBoundingCylinder(Double_t* param) const virtual const TBuffer3D& GetBuffer3D(Int_t reqSections, Bool_t localFrame) const virtual Int_t GetByteCount() const virtual TGeoShape* GetMakeRuntimeShape(TGeoShape* mother, TGeoMatrix* mat) const virtual Int_t GetNmeshVertices() const Double_t GetStIn() const Double_t GetStOut() const Bool_t HasInner() const virtual void InspectShape() const virtual TClass* IsA() const virtual Bool_t IsCylType() const virtual TBuffer3D* MakeBuffer3D() const TGeoHype& operator=(const TGeoHype&) Double_t RadiusHypeSq(Double_t z, Bool_t inner) const virtual Double_t Safety(Double_t* point, Bool_t in = kTRUE) const Double_t SafetyToHype(Double_t* point, Bool_t inner, Bool_t in) const virtual void SavePrimitive(ostream& out, Option_t* option = "") virtual void SetDimensions(Double_t* param) void SetHypeDimensions(Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz) virtual void SetPoints(Double_t* points) const virtual void SetPoints(Float_t* points) const virtual void SetSegsAndPols(TBuffer3D& buff) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Sizeof3D() const virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Double_t ZHypeSq(Double_t r, Bool_t inner) const

Data Members

    private:
Double_t fTin Tangent of stereo angle for inner surface Double_t fTout Tangent of stereo angle for outer surface Double_t fTinsq Squared tangent of stereo angle for inner surface Double_t fToutsq Squared tangent of stereo angle for outer surface protected:
Double_t fStIn Stereo angle for inner surface Double_t fStOut Stereo angle for inner surface

Class Description

_____________________________________________________________________________
 TGeoHype - Hyperboloid class defined by 5 parameters. Bounded by:
            - Two z planes at z=+/-dz
            - Inner and outer lateral surfaces. These represent the surfaces
              described by the revolution of 2 hyperbolas about the Z axis:
               r^2 - (t*z)^2 = a^2

            r = distance between hyperbola and Z axis at coordinate z
            t = tangent of the stereo angle (angle made by hyperbola
                asimptotic lines and Z axis). t=0 means cylindrical surface.
            a = distance between hyperbola and Z axis at z=0

          The inner hyperbolic surface is described by:
              r^2 - (tin*z)^2 = rin^2
           - absence of the inner surface (filled hyperboloid can be forced
             by rin=0 and sin=0
          The outer hyperbolic surface is described by:
              r^2 - (tout*z)^2 = rout^2
  TGeoHype parameters: dz[cm], rin[cm], sin[deg], rout[cm], sout[deg].
    MANDATORY conditions:
           - rin < rout
           - rout > 0
           - rin^2 + (tin*dz)^2 > rout^2 + (tout*dz)^2
    SUPPORTED CASES:
           - rin = 0, tin != 0     => inner surface conical
           - tin=0 AND/OR tout=0   => corresponding surface(s) cyllindrical
             e.g. tin=0 AND tout=0 => shape becomes a tube with: rmin,rmax,dz

_____________________________________________________________________________
TGeoHype()
 Default constructor
TGeoHype(Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz)
 Constructor specifying hyperboloid parameters.
TGeoHype(const char *name,Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz)
 Constructor specifying parameters and name.
TGeoHype(Double_t *param)
 Default constructor specifying a list of parameters
 param[0] = dz
 param[1] = rin
 param[2] = stin
 param[3] = rout
 param[4] = stout
~TGeoHype()
 destructor
Double_t Capacity()
 Computes capacity of the shape in [length^3]
void ComputeBBox()
 Compute bounding box of the hyperboloid
void ComputeNormal(Double_t *point, Double_t *dir, Double_t *norm)
 Compute normal to closest surface from POINT.
Bool_t Contains(Double_t *point)
 test if point is inside this tube
Int_t DistancetoPrimitive(Int_t px, Int_t py)
 compute closest distance from point px,py to each corner
Double_t DistFromInside(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe)
 Compute distance from inside point to surface of the hyperboloid.
Double_t DistFromOutside(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe)
 compute distance from outside point to surface of the hyperboloid.
Int_t DistToHype(Double_t *point, Double_t *dir, Double_t *s, Bool_t inner)
 Compute distance from an arbitrary point to inner/outer surface of hyperboloid.
 Returns number of positive solutions. S[2] contains the solutions.
Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi)
 Get range of shape for a given axis.
void GetBoundingCylinder(Double_t *param)
--- Fill vector param[4] with the bounding cylinder parameters. The order
 is the following : Rmin, Rmax, Phi1, Phi2, dZ
void InspectShape()
 print shape parameters
TBuffer3D * MakeBuffer3D()
 Creates a TBuffer3D describing *this* shape.
 Coordinates are in local reference frame.
void SetSegsAndPols(TBuffer3D &buff)
 Fill TBuffer3D structure for segments and polygons.
Double_t RadiusHypeSq(Double_t z, Bool_t inner)
 Compute r^2 = x^2 + y^2 at a given z coordinate, for either inner or outer hyperbolas.
Double_t ZHypeSq(Double_t r, Bool_t inner)
 Compute z^2 at a given  r^2, for either inner or outer hyperbolas.
Double_t Safety(Double_t *point, Bool_t in)
 computes the closest distance from given point to this shape, according
 to option. The matching point on the shape is stored in spoint.
Double_t SafetyToHype(Double_t *point, Bool_t inner, Bool_t in)
 Compute an underestimate of the closest distance from a point to inner or
 outer infinite hyperbolas.
void SavePrimitive(ostream &out, Option_t * /*option*/ /*= ""*/)
 Save a primitive as a C++ statement(s) on output stream "out".
void SetHypeDimensions(Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz)
 Set dimensions of the hyperboloid.
void SetDimensions(Double_t *param)
 Set dimensions of the hyperboloid starting from an array.
 param[0] = dz
 param[1] = rin
 param[2] = stin
 param[3] = rout
 param[4] = stout
void SetPoints(Double_t *points)
 create tube mesh points
void SetPoints(Float_t *points)
 create tube mesh points
Int_t GetNmeshVertices()
 Return number of vertices of the mesh representation
void Sizeof3D()
/// fill size of this 3-D object
/    TVirtualGeoPainter *painter = gGeoManager->GetGeomPainter();
/    if (!painter) return;
/    Int_t n = gGeoManager->GetNsegments();
/    Int_t numPoints = n*4;
/    Int_t numSegs   = n*8;
/    Int_t numPolys  = n*4;
/    painter->AddSize3D(numPoints, numSegs, numPolys);
const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame)
 Fills a static 3D buffer and returns a reference.
TGeoHype()
 constructors
Int_t GetByteCount()
Double_t GetStIn()
Double_t GetStOut()
Bool_t HasInner()
Bool_t IsCylType()

Author: Mihaela Gheata 20/11/04
Last update: root/geom:$Name: $:$Id: TGeoHype.cxx,v 1.13 2006/07/03 16:10:44 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.