TGeoSphere Class Reference

#include <TGeoSphere.h>

Inheritance diagram for TGeoSphere:

TGeoBBox TGeoBBox TGeoShape TGeoShape TGeoShape TGeoShape TNamed TNamed TNamed TNamed TNamed TNamed TNamed TNamed List of all members.

Public Member Functions

 TGeoSphere ()
 TGeoSphere (Double_t rmin, Double_t rmax, Double_t theta1=0, Double_t theta2=180, Double_t phi1=0, Double_t phi2=360)
 TGeoSphere (const char *name, Double_t rmin, Double_t rmax, Double_t theta1=0, Double_t theta2=180, Double_t phi1=0, Double_t phi2=360)
 TGeoSphere (Double_t *param, Int_t nparam=6)
virtual ~TGeoSphere ()
virtual Double_t Capacity () const
virtual void ComputeBBox ()
virtual void ComputeNormal (Double_t *point, Double_t *dir, Double_t *norm)
virtual Bool_t Contains (Double_t *point) const
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual Double_t DistFromInside (Double_t *point, Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
virtual Double_t DistFromOutside (Double_t *point, Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
Double_t DistToSphere (Double_t *point, Double_t *dir, Double_t rsph, Bool_t check=kTRUE, Bool_t firstcross=kTRUE) const
virtual TGeoVolumeDivide (TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)
virtual const char * GetAxisName (Int_t iaxis) const
virtual Double_t GetAxisRange (Int_t iaxis, Double_t &xlo, Double_t &xhi) const
virtual void GetBoundingCylinder (Double_t *param) const
virtual const TBuffer3DGetBuffer3D (Int_t reqSections, Bool_t localFrame) const
virtual Int_t GetByteCount () const
virtual TGeoShapeGetMakeRuntimeShape (TGeoShape *, TGeoMatrix *) const
virtual void GetMeshNumbers (Int_t &nvert, Int_t &nsegs, Int_t &npols) const
virtual Int_t GetNmeshVertices () const
Int_t GetNumberOfDivisions () const
virtual Bool_t GetPointsOnSegments (Int_t, Double_t *) const
Int_t GetNz () const
virtual Double_t GetRmin () const
virtual Double_t GetRmax () const
Double_t GetTheta1 () const
Double_t GetTheta2 () const
Double_t GetPhi1 () const
Double_t GetPhi2 () const
virtual void InspectShape () const
virtual Bool_t IsCylType () const
Int_t IsOnBoundary (Double_t *point) const
Bool_t IsPointInside (Double_t *point, Bool_t checkR=kTRUE, Bool_t checkTh=kTRUE, Bool_t checkPh=kTRUE) const
virtual TBuffer3DMakeBuffer3D () const
virtual Double_t Safety (Double_t *point, Bool_t in=kTRUE) const
virtual void SavePrimitive (ostream &out, Option_t *option="")
void SetSphDimensions (Double_t rmin, Double_t rmax, Double_t theta1, Double_t theta2, Double_t phi1, Double_t phi2)
virtual void SetNumberOfDivisions (Int_t p)
virtual void SetDimensions (Double_t *param)
virtual void SetPoints (Double_t *points) const
virtual void SetPoints (Float_t *points) const
virtual void SetSegsAndPols (TBuffer3D &buff) const
virtual void Sizeof3D () const
 TGeoSphere ()
 TGeoSphere (Double_t rmin, Double_t rmax, Double_t theta1=0, Double_t theta2=180, Double_t phi1=0, Double_t phi2=360)
 TGeoSphere (const char *name, Double_t rmin, Double_t rmax, Double_t theta1=0, Double_t theta2=180, Double_t phi1=0, Double_t phi2=360)
 TGeoSphere (Double_t *param, Int_t nparam=6)
virtual ~TGeoSphere ()
virtual Double_t Capacity () const
virtual void ComputeBBox ()
virtual void ComputeNormal (Double_t *point, Double_t *dir, Double_t *norm)
virtual Bool_t Contains (Double_t *point) const
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual Double_t DistFromInside (Double_t *point, Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
virtual Double_t DistFromOutside (Double_t *point, Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
Double_t DistToSphere (Double_t *point, Double_t *dir, Double_t rsph, Bool_t check=kTRUE, Bool_t firstcross=kTRUE) const
virtual TGeoVolumeDivide (TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)
virtual const char * GetAxisName (Int_t iaxis) const
virtual Double_t GetAxisRange (Int_t iaxis, Double_t &xlo, Double_t &xhi) const
virtual void GetBoundingCylinder (Double_t *param) const
virtual const TBuffer3DGetBuffer3D (Int_t reqSections, Bool_t localFrame) const
virtual Int_t GetByteCount () const
virtual TGeoShapeGetMakeRuntimeShape (TGeoShape *, TGeoMatrix *) const
virtual void GetMeshNumbers (Int_t &nvert, Int_t &nsegs, Int_t &npols) const
virtual Int_t GetNmeshVertices () const
Int_t GetNumberOfDivisions () const
virtual Bool_t GetPointsOnSegments (Int_t, Double_t *) const
Int_t GetNz () const
virtual Double_t GetRmin () const
virtual Double_t GetRmax () const
Double_t GetTheta1 () const
Double_t GetTheta2 () const
Double_t GetPhi1 () const
Double_t GetPhi2 () const
virtual void InspectShape () const
virtual Bool_t IsCylType () const
Int_t IsOnBoundary (Double_t *point) const
Bool_t IsPointInside (Double_t *point, Bool_t checkR=kTRUE, Bool_t checkTh=kTRUE, Bool_t checkPh=kTRUE) const
virtual TBuffer3DMakeBuffer3D () const
virtual Double_t Safety (Double_t *point, Bool_t in=kTRUE) const
virtual void SavePrimitive (ostream &out, Option_t *option="")
void SetSphDimensions (Double_t rmin, Double_t rmax, Double_t theta1, Double_t theta2, Double_t phi1, Double_t phi2)
virtual void SetNumberOfDivisions (Int_t p)
virtual void SetDimensions (Double_t *param)
virtual void SetPoints (Double_t *points) const
virtual void SetPoints (Float_t *points) const
virtual void SetSegsAndPols (TBuffer3D &buff) const
virtual void Sizeof3D () const

Protected Attributes

Int_t fNz
Int_t fNseg
Double_t fRmin
Double_t fRmax
Double_t fTheta1
Double_t fTheta2
Double_t fPhi1
Double_t fPhi2

Detailed Description

Definition at line 29 of file TGeoSphere.h.


Constructor & Destructor Documentation

TGeoSphere::TGeoSphere (  ) 

TGeoSphere::TGeoSphere ( Double_t  rmin,
Double_t  rmax,
Double_t  theta1 = 0,
Double_t  theta2 = 180,
Double_t  phi1 = 0,
Double_t  phi2 = 360 
)

Definition at line 57 of file TGeoSphere.cxx.

References ComputeBBox(), TGeoShape::kGeoSph, SetNumberOfDivisions(), TGeoShape::SetShapeBit(), and SetSphDimensions().

TGeoSphere::TGeoSphere ( const char *  name,
Double_t  rmin,
Double_t  rmax,
Double_t  theta1 = 0,
Double_t  theta2 = 180,
Double_t  phi1 = 0,
Double_t  phi2 = 360 
)

Definition at line 69 of file TGeoSphere.cxx.

References ComputeBBox(), TGeoShape::kGeoSph, SetNumberOfDivisions(), TGeoShape::SetShapeBit(), and SetSphDimensions().

TGeoSphere::TGeoSphere ( Double_t param,
Int_t  nparam = 6 
)

Definition at line 81 of file TGeoSphere.cxx.

References ComputeBBox(), TGeoShape::kGeoSph, SetDimensions(), SetNumberOfDivisions(), and TGeoShape::SetShapeBit().

TGeoSphere::~TGeoSphere (  )  [virtual]

Definition at line 94 of file TGeoSphere.cxx.

TGeoSphere::TGeoSphere (  ) 

TGeoSphere::TGeoSphere ( Double_t  rmin,
Double_t  rmax,
Double_t  theta1 = 0,
Double_t  theta2 = 180,
Double_t  phi1 = 0,
Double_t  phi2 = 360 
)

TGeoSphere::TGeoSphere ( const char *  name,
Double_t  rmin,
Double_t  rmax,
Double_t  theta1 = 0,
Double_t  theta2 = 180,
Double_t  phi1 = 0,
Double_t  phi2 = 360 
)

TGeoSphere::TGeoSphere ( Double_t param,
Int_t  nparam = 6 
)

virtual TGeoSphere::~TGeoSphere (  )  [virtual]


Member Function Documentation

Double_t TGeoSphere::Capacity (  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 100 of file TGeoSphere.cxx.

References TMath::Abs(), TMath::Cos(), TMath::DegToRad(), fPhi1, fPhi2, fRmax, fRmin, fTheta1, and fTheta2.

void TGeoSphere::ComputeBBox (  )  [virtual]

Reimplemented from TGeoBBox.

Definition at line 114 of file TGeoSphere.cxx.

References TMath::Abs(), TMath::Cos(), TMath::DegToRad(), TGeoBBox::fDX, TGeoBBox::fDY, TGeoBBox::fDZ, TGeoBBox::fOrigin, fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, TGeoShape::IsSameWithinTolerance(), TMath::LocMax(), TMath::LocMin(), TMath::Max(), TMath::Min(), TGeoBBox::SetBoxDimensions(), TMath::Sin(), xmax, xmin, ymax, and ymin.

Referenced by TGeoSphereEditor::DoApply(), and TGeoSphere().

void TGeoSphere::ComputeNormal ( Double_t point,
Double_t dir,
Double_t norm 
) [virtual]

Reimplemented from TGeoBBox.

Definition at line 189 of file TGeoSphere.cxx.

References TMath::Abs(), TMath::ACos(), TMath::ATan2(), TGeoShape::Big(), c1, TMath::Cos(), TMath::DegToRad(), E, fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, i, TGeoShape::IsCloseToPhi(), TGeoShape::IsSameWithinTolerance(), kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoThetaSeg, kTRUE, TMath::LocMin(), TGeoShape::NormalPhi(), phi, r2, s1, s2, TMath::Sin(), TMath::Sqrt(), and TGeoShape::TestShapeBit().

Bool_t TGeoSphere::Contains ( Double_t point  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 321 of file TGeoSphere.cxx.

References TMath::ACos(), TMath::ATan2(), E, fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, kTRUE, phi, r2, TMath::RadToDeg(), TMath::Sqrt(), TGeoShape::TestShapeBit(), and theta.

Int_t TGeoSphere::DistancetoPrimitive ( Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TGeoBBox.

Definition at line 349 of file TGeoSphere.cxx.

References fNseg, fNz, n, and TGeoShape::ShapeDistancetoPrimitive().

Double_t TGeoSphere::DistFromInside ( Double_t point,
Double_t dir,
Int_t  iact = 1,
Double_t  step = TGeoShape::Big(),
Double_t safe = 0 
) const [virtual]

Reimplemented from TGeoBBox.

Definition at line 600 of file TGeoSphere.cxx.

References TMath::Abs(), TMath::ACos(), TMath::ATan2(), b, TGeoShape::Big(), c1, TMath::Cos(), TMath::DegToRad(), TGeoCone::DistToCone(), TGeoConeSeg::DistToCons(), TGeoShape::DistToPhiMin(), DistToSphere(), E, fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, TGeoShape::IsSameWithinTolerance(), kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoThetaSeg, kTRUE, TMath::LocMin(), TMath::Min(), phi, r1, r2, TMath::RadToDeg(), s1, s2, TMath::Sin(), TMath::Sqrt(), TGeoShape::TestShapeBit(), and TGeoShape::Tolerance().

Double_t TGeoSphere::DistFromOutside ( Double_t point,
Double_t dir,
Int_t  iact = 1,
Double_t  step = TGeoShape::Big(),
Double_t safe = 0 
) const [virtual]

Reimplemented from TGeoBBox.

Definition at line 359 of file TGeoSphere.cxx.

References TMath::Abs(), TMath::ACos(), TMath::ATan2(), b, TGeoShape::Big(), c, c1, TMath::Cos(), d, TMath::DegToRad(), TGeoBBox::DistFromOutside(), TGeoCone::DistToCone(), TGeoConeSeg::DistToCons(), DistToSphere(), E, TGeoBBox::fDX, TGeoBBox::fDY, TGeoBBox::fDZ, TGeoBBox::fOrigin, fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, IsPointInside(), TGeoShape::IsSameWithinTolerance(), kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoThetaSeg, kTRUE, TMath::LocMin(), TMath::Min(), phi, r1, r2, TMath::RadToDeg(), s, s1, s2, TMath::Sin(), TMath::Sqrt(), TGeoShape::TestShapeBit(), and TGeoShape::Tolerance().

Double_t TGeoSphere::DistToSphere ( Double_t point,
Double_t dir,
Double_t  rsph,
Bool_t  check = kTRUE,
Bool_t  firstcross = kTRUE 
) const

Definition at line 772 of file TGeoSphere.cxx.

References b, TGeoShape::Big(), c, d, i, IsPointInside(), kFALSE, kTRUE, r2, s, and TMath::Sqrt().

Referenced by DistFromInside(), and DistFromOutside().

TGeoVolume * TGeoSphere::Divide ( TGeoVolume voldiv,
const char *  divname,
Int_t  iaxis,
Int_t  ndiv,
Double_t  start,
Double_t  step 
) [virtual]

Reimplemented from TGeoBBox.

Definition at line 802 of file TGeoSphere.cxx.

References TObject::Error().

const char * TGeoSphere::GetAxisName ( Int_t  iaxis  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 811 of file TGeoSphere.cxx.

Double_t TGeoSphere::GetAxisRange ( Int_t  iaxis,
Double_t xlo,
Double_t xhi 
) const [virtual]

Reimplemented from TGeoBBox.

Definition at line 827 of file TGeoSphere.cxx.

References fPhi1, fPhi2, fRmax, fRmin, fTheta1, and fTheta2.

void TGeoSphere::GetBoundingCylinder ( Double_t param  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 854 of file TGeoSphere.cxx.

References a, TMath::DegToRad(), fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, TGeoShape::IsSameWithinTolerance(), and TMath::Sin().

const TBuffer3D & TGeoSphere::GetBuffer3D ( Int_t  reqSections,
Bool_t  localFrame 
) const [virtual]

Reimplemented from TGeoBBox.

Definition at line 1682 of file TGeoSphere.cxx.

References buffer, TGeoBBox::FillBuffer3D(), fNseg, fNz, fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, TGeoManager::GetNsegments(), gGeoManager, kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, TBuffer3D::kRaw, TBuffer3D::kRawSizes, TBuffer3D::kShapeSpecific, kTRUE, SetNumberOfDivisions(), SetPoints(), SetSegsAndPols(), TGeoShape::TestShapeBit(), and TGeoShape::TransformPoints().

virtual Int_t TGeoSphere::GetByteCount (  )  const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 70 of file TGeoSphere.h.

virtual TGeoShape* TGeoSphere::GetMakeRuntimeShape ( TGeoShape ,
TGeoMatrix  
) const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 71 of file TGeoSphere.h.

void TGeoSphere::GetMeshNumbers ( Int_t nvert,
Int_t nsegs,
Int_t npols 
) const [virtual]

Reimplemented from TGeoBBox.

Definition at line 1620 of file TGeoSphere.cxx.

References fNseg, fNz, fTheta1, fTheta2, TGeoManager::GetNsegments(), gGeoManager, kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, kTRUE, SetNumberOfDivisions(), and TGeoShape::TestShapeBit().

Int_t TGeoSphere::GetNmeshVertices (  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 1652 of file TGeoSphere.cxx.

References fNseg, fNz, fTheta1, fTheta2, kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, kTRUE, and TGeoShape::TestShapeBit().

Int_t TGeoSphere::GetNumberOfDivisions (  )  const [inline]

Definition at line 74 of file TGeoSphere.h.

References fNseg.

virtual Bool_t TGeoSphere::GetPointsOnSegments ( Int_t  ,
Double_t  
) const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 75 of file TGeoSphere.h.

References kFALSE.

Int_t TGeoSphere::GetNz (  )  const [inline]

Definition at line 76 of file TGeoSphere.h.

References fNz.

virtual Double_t TGeoSphere::GetRmin (  )  const [inline, virtual]

Definition at line 77 of file TGeoSphere.h.

References fRmin.

Referenced by TGeoMCGeometry::GetShape(), and TGeoSphereEditor::SetModel().

virtual Double_t TGeoSphere::GetRmax (  )  const [inline, virtual]

Definition at line 78 of file TGeoSphere.h.

References fRmax.

Referenced by TGeoMCGeometry::GetShape(), and TGeoSphereEditor::SetModel().

Double_t TGeoSphere::GetTheta1 (  )  const [inline]

Definition at line 79 of file TGeoSphere.h.

References fTheta1.

Referenced by TGeoMCGeometry::GetShape(), and TGeoSphereEditor::SetModel().

Double_t TGeoSphere::GetTheta2 (  )  const [inline]

Definition at line 80 of file TGeoSphere.h.

References fTheta2.

Referenced by TGeoMCGeometry::GetShape(), and TGeoSphereEditor::SetModel().

Double_t TGeoSphere::GetPhi1 (  )  const [inline]

Definition at line 81 of file TGeoSphere.h.

References fPhi1.

Referenced by TGeoMCGeometry::GetShape(), and TGeoSphereEditor::SetModel().

Double_t TGeoSphere::GetPhi2 (  )  const [inline]

Definition at line 82 of file TGeoSphere.h.

References fPhi2.

Referenced by TGeoMCGeometry::GetShape(), and TGeoSphereEditor::SetModel().

void TGeoSphere::InspectShape (  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 880 of file TGeoSphere.cxx.

References fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, TGeoShape::GetName(), and TGeoBBox::InspectShape().

virtual Bool_t TGeoSphere::IsCylType (  )  const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 84 of file TGeoSphere.h.

References kFALSE.

Int_t TGeoSphere::IsOnBoundary ( Double_t point  )  const

Definition at line 245 of file TGeoSphere.cxx.

References TMath::Abs(), TMath::ACos(), TMath::ATan2(), TMath::DegToRad(), fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, phi, TMath::Pi(), r2, TMath::Sqrt(), TGeoShape::TestShapeBit(), theta, tol, and TGeoShape::Tolerance().

Bool_t TGeoSphere::IsPointInside ( Double_t point,
Bool_t  checkR = kTRUE,
Bool_t  checkTh = kTRUE,
Bool_t  checkPh = kTRUE 
) const

Definition at line 295 of file TGeoSphere.cxx.

References TMath::ACos(), TMath::ATan2(), E, fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, kTRUE, phi, r2, TMath::RadToDeg(), TMath::Sqrt(), TGeoShape::TestShapeBit(), and theta.

Referenced by DistFromOutside(), and DistToSphere().

TBuffer3D * TGeoSphere::MakeBuffer3D (  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 895 of file TGeoSphere.cxx.

References fNseg, fNz, TBuffer3D::fPnts, fTheta1, fTheta2, kFALSE, TBuffer3DTypes::kGeneric, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, kTRUE, SetPoints(), SetSegsAndPols(), and TGeoShape::TestShapeBit().

Double_t TGeoSphere::Safety ( Double_t point,
Bool_t  in = kTRUE 
) const [virtual]

Reimplemented from TGeoBBox.

Definition at line 1306 of file TGeoSphere.cxx.

References TMath::ACos(), TGeoShape::Big(), TMath::DegToRad(), E, fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, i, TGeoShape::IsSameWithinTolerance(), kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoThetaSeg, kTRUE, TMath::LocMax(), TMath::LocMin(), TMath::Max(), TMath::Min(), r2, TMath::RadToDeg(), safe, TGeoShape::SafetyPhi(), TMath::Sin(), TMath::Sqrt(), and TGeoShape::TestShapeBit().

void TGeoSphere::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGeoBBox.

Definition at line 1341 of file TGeoSphere.cxx.

References TObject::ClassName(), fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, TGeoShape::GetName(), TGeoShape::GetPointerName(), TGeoShape::kGeoSavePrimitive, TObject::SetBit(), and TObject::TestBit().

void TGeoSphere::SetSphDimensions ( Double_t  rmin,
Double_t  rmax,
Double_t  theta1,
Double_t  theta2,
Double_t  phi1,
Double_t  phi2 
)

Definition at line 1357 of file TGeoSphere.cxx.

References TMath::Abs(), TObject::Error(), fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, TGeoShape::IsSameWithinTolerance(), TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, and TGeoShape::SetShapeBit().

Referenced by TGeoSphereEditor::DoApply(), SetDimensions(), and TGeoSphere().

void TGeoSphere::SetNumberOfDivisions ( Int_t  p  )  [virtual]

Definition at line 1400 of file TGeoSphere.cxx.

References TMath::Abs(), fNseg, fNz, fPhi1, fPhi2, fTheta1, and fTheta2.

Referenced by GetBuffer3D(), GetMeshNumbers(), and TGeoSphere().

void TGeoSphere::SetDimensions ( Double_t param  )  [virtual]

Reimplemented from TGeoBBox.

Definition at line 1383 of file TGeoSphere.cxx.

References SetSphDimensions().

Referenced by TGeoSphere().

void TGeoSphere::SetPoints ( Double_t points  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 1412 of file TGeoSphere.cxx.

References TMath::Cos(), TMath::DegToRad(), TObject::Error(), fNseg, fNz, fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, i, j, kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, kTRUE, phi, TMath::Sin(), TGeoShape::TestShapeBit(), and theta.

Referenced by GetBuffer3D(), and MakeBuffer3D().

void TGeoSphere::SetPoints ( Float_t points  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 1516 of file TGeoSphere.cxx.

References TMath::Cos(), TMath::DegToRad(), TObject::Error(), fNseg, fNz, fPhi1, fPhi2, fRmax, fRmin, fTheta1, fTheta2, i, j, kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, kTRUE, phi, TMath::Sin(), TGeoShape::TestShapeBit(), and theta.

void TGeoSphere::SetSegsAndPols ( TBuffer3D buff  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 938 of file TGeoSphere.cxx.

References c, fNseg, fNz, TBuffer3D::fPols, TBuffer3D::fSegs, fTheta1, fTheta2, TGeoShape::GetBasicColor(), i, if(), j, kFALSE, TGeoShape::kGeoPhiSeg, TGeoShape::kGeoRSeg, TGeoShape::kGeoThetaSeg, kTRUE, and TGeoShape::TestShapeBit().

Referenced by GetBuffer3D(), and MakeBuffer3D().

void TGeoSphere::Sizeof3D (  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 1676 of file TGeoSphere.cxx.

virtual Double_t TGeoSphere::Capacity (  )  const [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoSphere::ComputeBBox (  )  [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoSphere::ComputeNormal ( Double_t point,
Double_t dir,
Double_t norm 
) [virtual]

Reimplemented from TGeoBBox.

virtual Bool_t TGeoSphere::Contains ( Double_t point  )  const [virtual]

Reimplemented from TGeoBBox.

virtual Int_t TGeoSphere::DistancetoPrimitive ( Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TGeoBBox.

virtual Double_t TGeoSphere::DistFromInside ( Double_t point,
Double_t dir,
Int_t  iact = 1,
Double_t  step = TGeoShape::Big(),
Double_t safe = 0 
) const [virtual]

Reimplemented from TGeoBBox.

virtual Double_t TGeoSphere::DistFromOutside ( Double_t point,
Double_t dir,
Int_t  iact = 1,
Double_t  step = TGeoShape::Big(),
Double_t safe = 0 
) const [virtual]

Reimplemented from TGeoBBox.

Double_t TGeoSphere::DistToSphere ( Double_t point,
Double_t dir,
Double_t  rsph,
Bool_t  check = kTRUE,
Bool_t  firstcross = kTRUE 
) const

virtual TGeoVolume* TGeoSphere::Divide ( TGeoVolume voldiv,
const char *  divname,
Int_t  iaxis,
Int_t  ndiv,
Double_t  start,
Double_t  step 
) [virtual]

Reimplemented from TGeoBBox.

virtual const char* TGeoSphere::GetAxisName ( Int_t  iaxis  )  const [virtual]

Reimplemented from TGeoBBox.

virtual Double_t TGeoSphere::GetAxisRange ( Int_t  iaxis,
Double_t xlo,
Double_t xhi 
) const [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoSphere::GetBoundingCylinder ( Double_t param  )  const [virtual]

Reimplemented from TGeoBBox.

virtual const TBuffer3D& TGeoSphere::GetBuffer3D ( Int_t  reqSections,
Bool_t  localFrame 
) const [virtual]

Reimplemented from TGeoBBox.

virtual Int_t TGeoSphere::GetByteCount (  )  const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 70 of file TGeoSphere.h.

virtual TGeoShape* TGeoSphere::GetMakeRuntimeShape ( TGeoShape ,
TGeoMatrix  
) const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 71 of file TGeoSphere.h.

virtual void TGeoSphere::GetMeshNumbers ( Int_t nvert,
Int_t nsegs,
Int_t npols 
) const [virtual]

Reimplemented from TGeoBBox.

virtual Int_t TGeoSphere::GetNmeshVertices (  )  const [virtual]

Reimplemented from TGeoBBox.

Int_t TGeoSphere::GetNumberOfDivisions (  )  const [inline]

Definition at line 74 of file TGeoSphere.h.

References fNseg.

virtual Bool_t TGeoSphere::GetPointsOnSegments ( Int_t  ,
Double_t  
) const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 75 of file TGeoSphere.h.

References kFALSE.

Int_t TGeoSphere::GetNz (  )  const [inline]

Definition at line 76 of file TGeoSphere.h.

References fNz.

virtual Double_t TGeoSphere::GetRmin (  )  const [inline, virtual]

Definition at line 77 of file TGeoSphere.h.

References fRmin.

virtual Double_t TGeoSphere::GetRmax (  )  const [inline, virtual]

Definition at line 78 of file TGeoSphere.h.

References fRmax.

Double_t TGeoSphere::GetTheta1 (  )  const [inline]

Definition at line 79 of file TGeoSphere.h.

References fTheta1.

Double_t TGeoSphere::GetTheta2 (  )  const [inline]

Definition at line 80 of file TGeoSphere.h.

References fTheta2.

Double_t TGeoSphere::GetPhi1 (  )  const [inline]

Definition at line 81 of file TGeoSphere.h.

References fPhi1.

Double_t TGeoSphere::GetPhi2 (  )  const [inline]

Definition at line 82 of file TGeoSphere.h.

References fPhi2.

virtual void TGeoSphere::InspectShape (  )  const [virtual]

Reimplemented from TGeoBBox.

virtual Bool_t TGeoSphere::IsCylType (  )  const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 84 of file TGeoSphere.h.

References kFALSE.

Int_t TGeoSphere::IsOnBoundary ( Double_t point  )  const

Bool_t TGeoSphere::IsPointInside ( Double_t point,
Bool_t  checkR = kTRUE,
Bool_t  checkTh = kTRUE,
Bool_t  checkPh = kTRUE 
) const

virtual TBuffer3D* TGeoSphere::MakeBuffer3D (  )  const [virtual]

Reimplemented from TGeoBBox.

virtual Double_t TGeoSphere::Safety ( Double_t point,
Bool_t  in = kTRUE 
) const [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoSphere::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGeoBBox.

void TGeoSphere::SetSphDimensions ( Double_t  rmin,
Double_t  rmax,
Double_t  theta1,
Double_t  theta2,
Double_t  phi1,
Double_t  phi2 
)

virtual void TGeoSphere::SetNumberOfDivisions ( Int_t  p  )  [virtual]

virtual void TGeoSphere::SetDimensions ( Double_t param  )  [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoSphere::SetPoints ( Double_t points  )  const [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoSphere::SetPoints ( Float_t points  )  const [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoSphere::SetSegsAndPols ( TBuffer3D buff  )  const [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoSphere::Sizeof3D (  )  const [virtual]

Reimplemented from TGeoBBox.


Member Data Documentation

Int_t TGeoSphere::fNz [protected]

Definition at line 33 of file TGeoSphere.h.

Referenced by DistancetoPrimitive(), GetBuffer3D(), GetMeshNumbers(), GetNmeshVertices(), GetNz(), MakeBuffer3D(), SetNumberOfDivisions(), SetPoints(), and SetSegsAndPols().

Int_t TGeoSphere::fNseg [protected]

Definition at line 34 of file TGeoSphere.h.

Referenced by DistancetoPrimitive(), GetBuffer3D(), GetMeshNumbers(), GetNmeshVertices(), GetNumberOfDivisions(), MakeBuffer3D(), SetNumberOfDivisions(), SetPoints(), and SetSegsAndPols().

Double_t TGeoSphere::fRmin [protected]

Definition at line 35 of file TGeoSphere.h.

Referenced by Capacity(), ComputeBBox(), ComputeNormal(), Contains(), DistFromInside(), DistFromOutside(), GetAxisRange(), GetBoundingCylinder(), GetBuffer3D(), GetRmin(), InspectShape(), IsOnBoundary(), IsPointInside(), Safety(), SavePrimitive(), SetPoints(), and SetSphDimensions().

Double_t TGeoSphere::fRmax [protected]

Definition at line 36 of file TGeoSphere.h.

Referenced by Capacity(), ComputeBBox(), ComputeNormal(), Contains(), DistFromInside(), DistFromOutside(), GetAxisRange(), GetBoundingCylinder(), GetBuffer3D(), GetRmax(), InspectShape(), IsOnBoundary(), IsPointInside(), Safety(), SavePrimitive(), SetPoints(), and SetSphDimensions().

Double_t TGeoSphere::fTheta1 [protected]

Definition at line 37 of file TGeoSphere.h.

Referenced by Capacity(), ComputeBBox(), ComputeNormal(), Contains(), DistFromInside(), DistFromOutside(), GetAxisRange(), GetBoundingCylinder(), GetBuffer3D(), GetMeshNumbers(), GetNmeshVertices(), GetTheta1(), InspectShape(), IsOnBoundary(), IsPointInside(), MakeBuffer3D(), Safety(), SavePrimitive(), SetNumberOfDivisions(), SetPoints(), SetSegsAndPols(), and SetSphDimensions().

Double_t TGeoSphere::fTheta2 [protected]

Definition at line 38 of file TGeoSphere.h.

Referenced by Capacity(), ComputeBBox(), ComputeNormal(), Contains(), DistFromInside(), DistFromOutside(), GetAxisRange(), GetBoundingCylinder(), GetBuffer3D(), GetMeshNumbers(), GetNmeshVertices(), GetTheta2(), InspectShape(), IsOnBoundary(), IsPointInside(), MakeBuffer3D(), Safety(), SavePrimitive(), SetNumberOfDivisions(), SetPoints(), SetSegsAndPols(), and SetSphDimensions().

Double_t TGeoSphere::fPhi1 [protected]

Definition at line 39 of file TGeoSphere.h.

Referenced by Capacity(), ComputeBBox(), ComputeNormal(), Contains(), DistFromInside(), DistFromOutside(), GetAxisRange(), GetBoundingCylinder(), GetBuffer3D(), GetPhi1(), InspectShape(), IsOnBoundary(), IsPointInside(), Safety(), SavePrimitive(), SetNumberOfDivisions(), SetPoints(), and SetSphDimensions().

Double_t TGeoSphere::fPhi2 [protected]

Definition at line 40 of file TGeoSphere.h.

Referenced by Capacity(), ComputeBBox(), ComputeNormal(), Contains(), DistFromInside(), DistFromOutside(), GetAxisRange(), GetBoundingCylinder(), GetBuffer3D(), GetPhi2(), InspectShape(), IsOnBoundary(), IsPointInside(), Safety(), SavePrimitive(), SetNumberOfDivisions(), SetPoints(), and SetSphDimensions().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:07 2011 for ROOT_528-00b_version by  doxygen 1.5.1