TGeoPgon


class description - source file - inheritance tree

class TGeoPgon : public TGeoPcon


    public:
TGeoPgon TGeoPgon() TGeoPgon TGeoPgon(Double_t phi, Double_t dphi, Int_t nedges, Int_t nz) TGeoPgon TGeoPgon(Double_t* params) TGeoPgon TGeoPgon(const TGeoPgon&) virtual void ~TGeoPgon() static TClass* Class() virtual void ComputeBBox() virtual Bool_t Contains(Double_t* point) const virtual void DefineSection(Int_t snum, Double_t z, Double_t rmin, Double_t rmax) 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 Double_t DistToInSect(Double_t* point, Double_t* dir, Int_t& iz, Int_t& ipsec, UChar_t& bits, Double_t* saf) const virtual Double_t DistToOut(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const Double_t DistToOutSect(Double_t* point, Double_t* dir, Int_t& iz, Int_t& isect) 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 Int_t GetNedges() const virtual Int_t GetNsegments() 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 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:
Int_t fNedges number of z planes (at least two)

Class Description


TGeoPgon()
 dummy ctor

TGeoPgon(Double_t phi, Double_t dphi, Int_t nedges, Int_t nz) :TGeoPcon(phi, dphi, nz)
 Default constructor

TGeoPgon(Double_t *param)
 Default constructor in GEANT3 style
 param[0] = phi1
 param[1] = dphi
 param[2] = nedges
 param[3] = nz

 param[4] = z1
 param[5] = Rmin1
 param[6] = Rmax1
 ...

~TGeoPgon()
 destructor

void ComputeBBox()
 compute bounding box for a polygone

Bool_t Contains(Double_t *point) const
 test if point is inside this shape
 check total z range

void DefineSection(Int_t snum, Double_t z, Double_t rmin, Double_t rmax)
 defines z position of a section plane, rmin and rmax at this z.

Double_t DistToOutSect(Double_t *point, Double_t *dir, Int_t &iz, Int_t &isect) const
 compute distance to outside from a  pgon phi trapezoid
   printf("Checking sector : iz=%i isect=%in", iz, isect);
   printf(" point is : %f %f %fn", point[0], point[1], point[2]);
   printf(" dir   is : %f %f %fn", dir[0], dir[1], dir[2]);

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 polygone
 first find out in which Z section the point is in

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 polygone
 first find in which segment we are

Double_t DistToInSect(Double_t *point, Double_t *dir, Int_t &iz, Int_t &ipsec, UChar_t &bits, Double_t *saf) const
 propagate to next Z plane

Int_t 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 polygone 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. Phi divisions are
 allowed only if nedges%ndiv=0 and create polygone "segments" with nedges/ndiv edges.
 Z divisions can be performed if the divided range is in between two consecutive Z planes.
 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

void InspectShape() const

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 SetDimensions(Double_t *param)

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

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

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



Inline Functions


              Int_t GetByteCount() const
         TGeoShape* GetMakeRuntimeShape(TGeoShape* mother) const
              Int_t GetNedges() const
              Int_t GetNsegments() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
           TGeoPgon TGeoPgon(const TGeoPgon&)


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