#ifndef ROOT_TTUBS #define ROOT_TTUBS //+SEQ,CopyRight,T=NOINCLUDE. //////////////////////////////////////////////////////////////////////////// // // // TTUBS // // // // TUBS is a phi segment of a tube. It has 5 parameters, the same 3 as // // TUBE plus the phi limits. The segment start at first limit and // // includes increasing phi value up to the second limit or that plus // // 360 degrees. // // // //////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TTUBE //*KEEP,TTUBE. #include "TTUBE.h" //*KEND. #endif class TTUBS : public TTUBE { protected: Float_t fPhi1; // first phi limit Float_t fPhi2; // second phi limit virtual void MakeTableOfCoSin(); // Create the table of the fSiTab; fCoTab virtual void PaintGLPoints(Float_t *vertex); public: TTUBS(); TTUBS(Text_t *name, Text_t *title, Text_t *material, Float_t rmin, Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2); TTUBS(Text_t *name, Text_t *title, Text_t *material, Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2); virtual ~TTUBS(); virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); virtual Float_t GetPhi1() {return fPhi1;} virtual Float_t GetPhi2() {return fPhi2;} virtual void Paint(Option_t *option); virtual void SetPoints(Float_t *buff); virtual void Sizeof3D() const; ClassDef(TTUBS,1) //TUBS shape }; #endif