00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ROOT_TGeoHype
00013 #define ROOT_TGeoHype
00014
00015 #ifndef ROOT_TGeoTube
00016 #include "TGeoTube.h"
00017 #endif
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 class TGeoHype : public TGeoTube
00048 {
00049 protected :
00050
00051
00052
00053
00054 Double_t fStIn;
00055 Double_t fStOut;
00056
00057 private :
00058
00059 Double_t fTin;
00060 Double_t fTout;
00061 Double_t fTinsq;
00062 Double_t fToutsq;
00063
00064 public:
00065
00066 TGeoHype();
00067 TGeoHype(Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz);
00068 TGeoHype(const char *name, Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz);
00069 TGeoHype(Double_t *params);
00070
00071 virtual ~TGeoHype();
00072
00073
00074 virtual Double_t Capacity() const;
00075 virtual void ComputeBBox();
00076 virtual void ComputeNormal(Double_t *point, Double_t *dir, Double_t *norm);
00077 virtual Bool_t Contains(Double_t *point) const;
00078 virtual Double_t DistFromInside(Double_t *point, Double_t *dir, Int_t iact=1,
00079 Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
00080 virtual Double_t DistFromOutside(Double_t *point, Double_t *dir, Int_t iact=1,
00081 Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
00082 Int_t DistToHype(Double_t *point, Double_t *dir, Double_t *s, Bool_t inner) const;
00083 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
00084 virtual TGeoVolume *Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv,
00085 Double_t start, Double_t step);
00086 virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const;
00087 virtual void GetBoundingCylinder(Double_t *param) const;
00088 virtual const TBuffer3D &GetBuffer3D(Int_t reqSections, Bool_t localFrame) const;
00089 virtual Int_t GetByteCount() const {return 64;}
00090 virtual Bool_t GetPointsOnSegments(Int_t , Double_t * ) const {return kFALSE;}
00091 virtual TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const;
00092 virtual void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const;
00093 virtual Int_t GetNmeshVertices() const;
00094 Double_t GetStIn() const {return fStIn;}
00095 Double_t GetStOut() const {return fStOut;}
00096 Bool_t HasInner() const {return !TestShapeBit(kGeoRSeg);}
00097 Double_t RadiusHypeSq(Double_t z, Bool_t inner) const;
00098 Double_t ZHypeSq(Double_t r, Bool_t inner) const;
00099 virtual void InspectShape() const;
00100 virtual Bool_t IsCylType() const {return kTRUE;}
00101 virtual TBuffer3D *MakeBuffer3D() const;
00102
00103 virtual Double_t Safety(Double_t *point, Bool_t in=kTRUE) const;
00104 Double_t SafetyToHype(Double_t *point, Bool_t inner, Bool_t in) const;
00105 virtual void SavePrimitive(ostream &out, Option_t *option = "");
00106 void SetHypeDimensions(Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz);
00107 virtual void SetDimensions(Double_t *param);
00108 virtual void SetPoints(Double_t *points) const;
00109 virtual void SetPoints(Float_t *points) const;
00110 virtual void SetSegsAndPols(TBuffer3D &buff) const;
00111 virtual void Sizeof3D() const;
00112
00113 ClassDef(TGeoHype, 1)
00114
00115 };
00116
00117 #endif