TGeoTubeSeg
class description - source file - inheritance tree
protected:
static Double_t DistToPhiMin(Double_t* point, Double_t* dir, Double_t s1, Double_t c1, Double_t s2, Double_t c2, Double_t sm, Double_t cm)
public:
TGeoTubeSeg()
TGeoTubeSeg(Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2)
TGeoTubeSeg(const char* name, Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2)
TGeoTubeSeg(Double_t* params)
TGeoTubeSeg(const TGeoTubeSeg&)
virtual ~TGeoTubeSeg()
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 rmin, Double_t rmax, Double_t dz, Double_t c1, Double_t s1, Double_t c2, Double_t s2, Double_t cm, Double_t sm, Double_t cdfi)
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, Double_t rmin, Double_t rmax, Double_t dz, Double_t c1, Double_t s1, Double_t c2, Double_t s2, Double_t cm, Double_t sm)
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 Double_t GetAxisRange(Int_t iaxis, Double_t& xlo, Double_t& xhi) const
virtual void GetBoundingCylinder(Double_t* param) const
virtual Int_t GetByteCount() const
virtual TGeoShape* GetMakeRuntimeShape(TGeoShape* mother, TGeoMatrix* mat) const
Double_t GetPhi1() const
Double_t GetPhi2() const
virtual void InspectShape() const
virtual TClass* IsA() const
virtual void* Make3DBuffer(const TGeoVolume* vol) const
virtual void NextCrossing(TGeoParamCurve* c, Double_t* point) const
virtual void Paint(const Option_t* option)
virtual void PaintNext(TGeoHMatrix* glmat, const Option_t* option)
virtual Double_t Safety(Double_t* point, Bool_t in = kTRUE) const
static Double_t SafetyS(Double_t* point, Bool_t in, Double_t rmin, Double_t rmax, Double_t dz, Double_t c1, Double_t s1, Double_t c2, Double_t s2, Int_t skipz = 0)
virtual void SetDimensions(Double_t* param)
virtual void SetPoints(Double_t* buff) const
virtual void SetPoints(Float_t* buff) const
void SetTubsDimensions(Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Sizeof3D() const
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
Double_t fPhi1 first phi limit
Double_t fPhi2 second phi limit
See also
-
TGeoCtub
TGeoTubeSeg()
Default constructor
TGeoTubeSeg(Double_t rmin, Double_t rmax, Double_t dz,
Double_t phi1, Double_t phi2)
:TGeoTube(rmin, rmax, dz)
Default constructor specifying minimum and maximum radius
TGeoTubeSeg(const char *name, Double_t rmin, Double_t rmax, Double_t dz,
Double_t phi1, Double_t phi2)
:TGeoTube(name, rmin, rmax, dz)
Default constructor specifying minimum and maximum radius
TGeoTubeSeg(Double_t *param)
:TGeoTube(0, 0, 0)
Default constructor specifying minimum and maximum radius
param[0] = Rmin
param[1] = Rmax
param[2] = dz
param[3] = phi1
param[4] = phi2
~TGeoTubeSeg()
destructor
void ComputeBBox()
compute bounding box of the tube segment
Bool_t Contains(Double_t *point) const
test if point is inside this tube segment
first check if point is inside the tube
Int_t DistancetoPrimitive(Int_t px, Int_t py)
compute closest distance from point px,py to each corner
Double_t DistToPhiMin(Double_t *point, Double_t *dir, Double_t s1, Double_t c1,
Double_t s2, Double_t c2, Double_t sm, Double_t cm)
compute distance from poin to both phi planes. Return minimum.
Double_t DistToOutS(Double_t *point, Double_t *dir, Double_t rmin, Double_t rmax, Double_t dz,
Double_t c1, Double_t s1, Double_t c2, Double_t s2, Double_t cm, Double_t sm)
compute distance from inside point to surface of the tube segment (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 tube segment
Double_t DistToInS(Double_t *point, Double_t *dir, Double_t rmin, Double_t rmax,
Double_t dz, Double_t c1, Double_t s1, Double_t c2, Double_t s2,
Double_t cm, Double_t sm, Double_t cdfi)
static method to compute distance to arbitrary tube segment 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 segment
fist localize point w.r.t 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)
--- Divide this tube segment 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 radialdivision
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.
Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const
Get range of shape for a given axis.
void GetBoundingCylinder(Double_t *param) const
--- Fill vector param[4] with the bounding cylinder parameters. The order
is the following : Rmin, Rmax, Phi1, Phi2
TGeoShape* GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix * /*mat*/) 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* Make3DBuffer(const TGeoVolume *vol) const
void Paint(Option_t *option)
paint this shape according to option
void PaintNext(TGeoHMatrix *glmat, 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, Bool_t in) const
computes the closest distance from given point to this shape, according
to option. The matching point on the shape is stored in spoint.
Double_t SafetyS(Double_t *point, Bool_t in, Double_t rmin, Double_t rmax, Double_t dz,
Double_t c1, Double_t s1, Double_t c2, Double_t s2, Int_t skipz)
Static method to compute the closest distance from given point to this shape.
void SetTubsDimensions(Double_t rmin, Double_t rmax, Double_t dz,
Double_t phi1, Double_t phi2)
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
void Sizeof3D() const
fill size of this 3-D object
Inline Functions
Int_t GetByteCount() const
Double_t GetPhi1() const
Double_t GetPhi2() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGeoTubeSeg TGeoTubeSeg(const TGeoTubeSeg&)
Author: Andrei Gheata 24/10/01
Last update: root/geom:$Name: $:$Id: TGeoTube.cxx,v 1.22 2003/05/07 13:32:39 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.