TGeoCtub


class description - source file - inheritance tree

class TGeoCtub : public TGeoTubeSeg


    public:
TGeoCtub TGeoCtub() 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 TGeoCtub(Double_t* params) TGeoCtub TGeoCtub(const TGeoCtub&) virtual void ~TGeoCtub() static TClass* Class() virtual void ComputeBBox() virtual Bool_t Contains(Double_t* point) const virtual Double_t DistToIn(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const virtual Double_t DistToOut(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const virtual Double_t DistToSurf(Double_t* point, Double_t* dir) const virtual TGeoVolume* Divide(TGeoVolume* voldiv, const char* divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step) virtual TGeoVolume* Divide(TGeoVolume* voldiv, const char* divname, Int_t iaxis, Double_t step) virtual Int_t GetByteCount() const virtual TGeoShape* GetMakeRuntimeShape(TGeoShape* mother) const Double_t* GetNhigh() const Double_t* GetNlow() const Double_t GetZcoord(Double_t xc, Double_t yc, Double_t zc) const virtual void InspectShape() const virtual TClass* IsA() const virtual void NextCrossing(TGeoParamCurve* c, Double_t* point) const virtual Double_t Safety(Double_t* point, Double_t* spoint, Option_t* option) const 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* buff) const virtual void SetPoints(Float_t* buff) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Double_t* fNlow normal to lower cut plane Double_t* fNhigh normal to highet cut plane

Class Description


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) :TGeoTubeSeg(rmin, rmax, dz, phi1, phi2)
 ctor

TGeoCtub(Double_t *params)
 ctor with parameters

~TGeoCtub()
 dtor

void ComputeBBox()
 compute minimum bounding box of the ctub

Bool_t Contains(Double_t *point) const
 check if point is contained in the cut tube
 check the lower cut plane

Double_t GetZcoord(Double_t xc, Double_t yc, Double_t zc) const
 compute real Z coordinate of a point belonging to either lower or
 higher caps (z should be either +fDz or -fDz)

Double_t DistToIn(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe) const
 compute distance from outside point to surface of the cut tube

Double_t DistToOut(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe) const
 compute distance from inside point to surface of the cut tube

Double_t DistToSurf(Double_t *point, Double_t *dir) const
 computes the distance to next surface of the sphere along a ray
 starting from given point to the given direction.

TGeoVolume* Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)

TGeoVolume* Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Double_t step)
 Divide all range of iaxis in range/step cells

TGeoShape* GetMakeRuntimeShape(TGeoShape *mother) const
 in case shape has some negative parameters, these has to be computed
 in order to fit the mother

void InspectShape() const
 print shape parameters

void NextCrossing(TGeoParamCurve *c, Double_t *point) const
 computes next intersection point of curve c with this shape

Double_t Safety(Double_t *point, Double_t *spoint, Option_t *option) const
 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 SetDimensions(Double_t *param)

void SetPoints(Double_t *buff) const
 create sphere mesh points

void SetPoints(Float_t *buff) const
 create sphere mesh points



Inline Functions


              Int_t GetByteCount() const
          Double_t* GetNlow() const
          Double_t* GetNhigh() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
           TGeoCtub TGeoCtub(const TGeoCtub&)


Author: Andrei Gheata 24/10/01
Last update: root/geom:$Name: $:$Id: TGeoTube.cxx,v 1.4 2002/07/15 15:32:25 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - 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.