TGeoCone


class description - source file - inheritance tree

class TGeoCone : public TGeoBBox


    public:
TGeoCone TGeoCone() TGeoCone TGeoCone(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2) TGeoCone TGeoCone(Double_t* params) TGeoCone TGeoCone(const TGeoCone&) virtual void ~TGeoCone() static TClass* Class() virtual void ComputeBBox() virtual Bool_t Contains(Double_t* point) const virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual Double_t DistToIn(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const static Double_t DistToInS(Double_t* point, Double_t* dir, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Double_t dz, Double_t ro1, Double_t tg1, Double_t cr1, Double_t zv1, Double_t ro2, Double_t tg2, Double_t cr2, Double_t zv2, Double_t r2, Double_t rin, Double_t rout) virtual Double_t DistToOut(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const static Double_t DistToOutS(Double_t* point, Double_t* dir, Int_t iact, Double_t step, Double_t* safe, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2) 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 Double_t GetDz() const virtual TGeoShape* GetMakeRuntimeShape(TGeoShape* mother) const virtual Double_t GetRmax1() const virtual Double_t GetRmax2() const virtual Double_t GetRmin1() const virtual Double_t GetRmin2() const virtual void InspectShape() const virtual TClass* IsA() const virtual void NextCrossing(TGeoParamCurve* c, Double_t* point) const virtual void Paint(Option_t* option) virtual Double_t Safety(Double_t* point, Double_t* spoint, Option_t* option) const void SetConeDimensions(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2) 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 Sizeof3D() const virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Double_t fDz half length Double_t fRmin1 inner radius at -dz Double_t fRmax1 outer radius at -dz Double_t fRmin2 inner radius at +dz Double_t fRmax2 outer radius at +dz


See also

TGeoConeSeg

Class Description


TGeoCone()
 Default constructor

TGeoCone(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2) :TGeoBBox(0, 0, 0)
 Default constructor specifying minimum and maximum radius

TGeoCone(Double_t *param)
 Default constructor specifying minimum and maximum radius
 param[0] = dz
 param[1] = Rmin1
 param[2] = Rmax1
 param[3] = Rmin2
 param[4] = Rmax2

~TGeoCone()
 destructor

void ComputeBBox()
 compute bounding box of the sphere

Bool_t Contains(Double_t *point) const
 test if point is inside this cone

Double_t DistToOutS(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)
 compute distance from inside point to surface of the cone (static)

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 cone

Double_t DistToInS(Double_t *point, Double_t *dir, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Double_t dz, Double_t ro1, Double_t tg1, Double_t cr1, Double_t zv1, Double_t ro2, Double_t tg2, Double_t cr2, Double_t zv2, Double_t r2, Double_t rin, Double_t rout)
 compute distance to arbitrary cone from outside point

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 tube

return DistToInS(point, dir,fRmin1,fRmax1,fRmin2,fRmax2,fDz, ro1,tg1,cr1,zv1,ro2,tg2,cr2,zv2,r2,rin,rout); } //----------------------------------------------------------------------------- Int_t TGeoCone::DistancetoPrimitive(Int_t px, Int_t py)
 compute closest distance from point px,py to each corner

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)
--- Divide this cone shape belonging to volume "voldiv" into ndiv volumes
 called divname, from start position with the given step. Returns pointer
 to created division cell volume in case of Z divisions. For Z division
 creates all volumes with different shapes and returns pointer to volume that
 was divided. In case a wrong division axis is supplied, returns pointer to
 volume that was divided.

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 Paint(Option_t *option)
 paint this shape according to option

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 SetConeDimensions(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)

void SetDimensions(Double_t *param)

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

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

void Sizeof3D() const
 fill size of this 3-D object



Inline Functions


              Int_t DistancetoPrimitive(Int_t px, Int_t py)
              Int_t GetByteCount() const
           Double_t GetDz() const
           Double_t GetRmin1() const
           Double_t GetRmax1() const
           Double_t GetRmin2() const
           Double_t GetRmax2() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
           TGeoCone TGeoCone(const TGeoCone&)


Author: Andrei Gheata 31/01/02
Last update: root/geom:$Name: $:$Id: TGeoCone.cxx,v 1.3 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.