TTUBS.h

Go to the documentation of this file.
00001 // @(#)root/g3d:$Id: TTUBS.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Nenad Buncic   18/09/95
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TTUBS
00013 #define ROOT_TTUBS
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////////////
00017 //                                                                        //
00018 // TTUBS                                                                  //
00019 //                                                                        //
00020 // TUBS is a phi segment of a tube. It has 5 parameters, the same 3 as    //
00021 // TUBE plus the phi limits. The segment start at first limit and         //
00022 // includes increasing phi value up to the second limit or that plus      //
00023 // 360 degrees.                                                           //
00024 //                                                                        //
00025 ////////////////////////////////////////////////////////////////////////////
00026 
00027 #ifndef ROOT_TTUBE
00028 #include "TTUBE.h"
00029 #endif
00030 
00031 class TTUBS : public TTUBE {
00032 protected:
00033    Float_t fPhi1;        // first phi limit
00034    Float_t fPhi2;        // second phi limit
00035    virtual void    MakeTableOfCoSin() const;  // Create the table of the fSiTab; fCoTab
00036 
00037    virtual void    SetPoints(Double_t *points) const;
00038 
00039 public:
00040    TTUBS();
00041    TTUBS(const char *name, const char *title, const char *material, Float_t rmin, Float_t rmax, Float_t dz,
00042          Float_t phi1, Float_t phi2);
00043    TTUBS(const char *name, const char *title, const char *material, Float_t rmax, Float_t dz,
00044          Float_t phi1, Float_t phi2);
00045    virtual ~TTUBS();
00046 
00047    virtual Int_t   DistancetoPrimitive(Int_t px, Int_t py);
00048    virtual const TBuffer3D &GetBuffer3D(Int_t reqSections) const;
00049    virtual Float_t GetPhi1() const {return fPhi1;}
00050    virtual Float_t GetPhi2() const {return fPhi2;}
00051    virtual void    Sizeof3D() const;
00052 
00053    ClassDef(TTUBS,1)  //TUBS shape
00054 };
00055 
00056 #endif

Generated on Tue Jul 5 14:16:26 2011 for ROOT_528-00b_version by  doxygen 1.5.1