00001 // @(#)root/g3d:$Id: TPGON.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Nenad Buncic 29/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_TPGON 00013 #define ROOT_TPGON 00014 00015 00016 //////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TPGON // 00019 // // 00020 // PGON is a polygone. It has at least 10 parameters, the lower phi limit,// 00021 // the range in phi, the number of straight sides (of equal length) // 00022 // between those phi limits, the number (at least two) of z planes where // 00023 // the radius is changing for each z boundary and the z coordinate, the // 00024 // minimum radius and the maximum radius. // 00025 // // 00026 //////////////////////////////////////////////////////////////////////////// 00027 00028 #ifndef ROOT_TPCON 00029 #include "TPCON.h" 00030 #endif 00031 00032 class TPGON : public TPCON { 00033 protected: 00034 virtual void FillTableOfCoSin(Double_t phi, Double_t angstep,Int_t n) const; // Fill the table of cosin 00035 00036 public: 00037 TPGON(); 00038 TPGON(const char *name, const char *title, const char *material, Float_t phi1, Float_t dphi1, 00039 Int_t npdv, Int_t nz); 00040 virtual ~TPGON(); 00041 ClassDef(TPGON,1) //PGON shape 00042 }; 00043 00044 #endif