TGeoPcon
class description - source file - inheritance tree
public:
TGeoPcon TGeoPcon()
TGeoPcon TGeoPcon(Double_t phi, Double_t dphi, Int_t nz)
TGeoPcon TGeoPcon(Double_t* params)
TGeoPcon TGeoPcon(const TGeoPcon&)
virtual void ~TGeoPcon()
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
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 DistToSegZ(Double_t* point, Double_t* dir, Int_t& iz, Double_t c1, Double_t s1, Double_t c2, Double_t s2, Double_t cfio, Double_t sfio, Double_t cdfi) 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
Double_t GetDphi() const
virtual TGeoShape* GetMakeRuntimeShape(TGeoShape* mother) const
virtual Int_t GetNsegments() const
Int_t GetNz() const
Double_t GetPhi1() const
Double_t* GetRmax() const
Double_t* GetRmin() const
Double_t* GetZ() 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)
protected:
Int_t fNz number of z planes (at least two)
Double_t fPhi1 lower phi limit
Double_t fDphi phi range
Double_t* fRmin [fNz] pointer to array of inner radii
Double_t* fRmax [fNz] pointer to array of outer radii
Double_t* fZ [fNz] pointer to array of Z planes positions
See also
-
TGeoPgon
TGeoPcon()
dummy ctor
TGeoPcon(Double_t phi, Double_t dphi, Int_t nz)
:TGeoBBox(0, 0, 0)
Default constructor
TGeoPcon(Double_t *param)
Default constructor in GEANT3 style
param[0] = phi1
param[1] = dphi
param[2] = nz
param[3] = z1
param[4] = Rmin1
param[5] = Rmax1
...
~TGeoPcon()
destructor
void ComputeBBox()
compute bounding box of the pcon
Bool_t Contains(Double_t *point) const
test if point is inside this shape
check total z range
Int_t DistancetoPrimitive(Int_t px, Int_t py)
compute closest distance from point px,py to each corner
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 polycone
Double_t DistToSegZ(Double_t *point, Double_t *dir, Int_t &iz, Double_t c1, Double_t s1,
Double_t c2, Double_t s2, Double_t cfio, Double_t sfio, Double_t cdfi) const
compute distance to a pcon Z slice. Segment iz must be valid
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
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.
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.
Int_t GetNsegments() const
TGeoVolume* Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv,
Double_t start, Double_t step)
--- Divide this polycone 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. 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
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 SetDimensions(Double_t *param)
void SetPoints(Double_t *buff) const
create polycone mesh points
void SetPoints(Float_t *buff) const
create polycone mesh points
void Sizeof3D() const
fill size of this 3-D object
Inline Functions
Int_t GetByteCount() const
Double_t GetPhi1() const
Double_t GetDphi() const
Int_t GetNz() const
Double_t* GetRmin() const
Double_t* GetRmax() const
Double_t* GetZ() const
TGeoShape* GetMakeRuntimeShape(TGeoShape* mother) const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGeoPcon TGeoPcon(const TGeoPcon&)
Author: Andrei Gheata 24/10/01
Last update: root/geom:$Name: $:$Id: TGeoPcon.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.