library: libGeom
#include "TGeoTube.h"

TGeoCtub


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

class TGeoCtub : public TGeoTubeSeg

Inheritance Chart:
TObject
<-
TNamed
<-
TGeoShape
<-
TGeoBBox
<-
TGeoTube
<-
TGeoTubeSeg
<-
TGeoCtub

    public:
TGeoCtub() TGeoCtub(Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2, Double_t lx, Double_t ly, Double_t lz, Double_t tx, Double_t ty, Double_t tz) TGeoCtub(const char* name, Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2, Double_t lx, Double_t ly, Double_t lz, Double_t tx, Double_t ty, Double_t tz) TGeoCtub(Double_t* params) TGeoCtub(const TGeoCtub&) virtual ~TGeoCtub() 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 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 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 const TBuffer3D& GetBuffer3D(Int_t reqSections, Bool_t localFrame) const virtual Int_t GetByteCount() const virtual TGeoShape* GetMakeRuntimeShape(TGeoShape* mother, TGeoMatrix* mat) const const Double_t* GetNhigh() const const Double_t* GetNlow() const virtual Int_t GetNmeshVertices() const Double_t GetZcoord(Double_t xc, Double_t yc, Double_t zc) const virtual void InspectShape() const virtual TClass* IsA() const TGeoCtub& operator=(const TGeoCtub&) virtual Double_t Safety(Double_t* point, Bool_t in = kTRUE) const virtual void SavePrimitive(ostream& out, Option_t* option = "") void SetCtubDimensions(Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2, Double_t lx, Double_t ly, Double_t lz, Double_t tx, Double_t ty, Double_t tz) virtual void SetDimensions(Double_t* param) virtual void SetPoints(Double_t* points) const virtual void SetPoints(Float_t* points) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Double_t fNlow[3] normal to lower cut plane Double_t fNhigh[3] normal to highet cut plane

Class Description

_____________________________________________________________________________
 TGeoTube - cylindrical tube class. It takes 3 parameters :
            inner radius, outer radius and half-length dz.

_____________________________________________________________________________
























_____________________________________________________________________________
 TGeoTubeSeg - a phi segment of a tube. Has 5 parameters :
            - the same 3 as a tube;
            - first phi limit (in degrees)
            - second phi limit

_____________________________________________________________________________












_____________________________________________________________________________
 TGeoCtub - a tube segment cut with 2 planes. Has 11 parameters :
            - the same 5 as a tube segment;
            - x, y, z components of the normal to the -dZ cut plane in
              point (0, 0, -dZ);
            - x, y, z components of the normal to the +dZ cut plane in
              point (0, 0, dZ);

_____________________________________________________________________________
TGeoCtub()
 default ctor
TGeoCtub(Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2, Double_t lx, Double_t ly, Double_t lz, Double_t tx, Double_t ty, Double_t tz)
 constructor
TGeoCtub(const char *name, Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2, Double_t lx, Double_t ly, Double_t lz, Double_t tx, Double_t ty, Double_t tz)
 constructor
TGeoCtub(Double_t *params)
 ctor with parameters
~TGeoCtub()
 destructor
Double_t Capacity()
 Computes capacity of the shape in [length^3]
void ComputeBBox()
 compute minimum bounding box of the ctub
void ComputeNormal(Double_t *point, Double_t *dir, Double_t *norm)
 Compute normal to closest surface from POINT.
Bool_t Contains(Double_t *point)
 check if point is contained in the cut tube
 check the lower cut plane
Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi)
 Get range of shape for a given axis.
Double_t GetZcoord(Double_t xc, Double_t yc, Double_t zc)
 compute real Z coordinate of a point belonging to either lower or
 higher caps (z should be either +fDz or -fDz)
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 cut tube
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 cut tube
void InspectShape()
 print shape parameters
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.
void SetCtubDimensions(Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2, Double_t lx, Double_t ly, Double_t lz, Double_t tx, Double_t ty, Double_t tz)
 set dimensions of a cut tube
void SavePrimitive(ostream &out, Option_t * /*option*/ /*= ""*/)
 Save a primitive as a C++ statement(s) on output stream "out".
void SetDimensions(Double_t *param)
 Set dimensions of the cut tube starting from a list.
void SetPoints(Double_t *points)
 Create mesh points for the cut tube.
void SetPoints(Float_t *points)
 Create mesh points for the cut tube.
Int_t GetNmeshVertices()
 Return number of vertices of the mesh representation
const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame)
 Fills a static 3D buffer and returns a reference.
Int_t GetByteCount()
TGeoCtub()
 constructors

Author: Andrei Gheata 24/10/01
Last update: root/geom:$Name: $:$Id: TGeoTube.cxx,v 1.68 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.