// @(#)root/g3d:$Id$
// Author: Nenad Buncic   18/09/95

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TCONS
#define ROOT_TCONS


////////////////////////////////////////////////////////////////////////////
//                                                                        //
// TCONS                                                                  //
//                                                                        //
// CONS is a phi segment of a conical tube. It has 7 parameters, the half //
// the same 5 as a CONE plus the phi limits                               //
//                                                                        //
////////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TTUBS
#include "TTUBS.h"
#endif

class TCONS : public TTUBS {

protected:
   Float_t fRmin2;        // inside radius at the high z limit
   Float_t fRmax2;        // outside radius at the high z limit

   virtual void    SetPoints(Double_t *points) const;
public:
   TCONS();
   TCONS(const char *name, const char *title, const char *material, Float_t dz, Float_t rmin1, Float_t rmax1,
         Float_t rmin2, Float_t rmax2, Float_t phi1, Float_t phi2);
   TCONS(const char *name, const char *title, const char *material, Float_t rmax1, Float_t dz
                          , Float_t phi1, Float_t phi2, Float_t rmax2 = 0);
   virtual ~TCONS();

   virtual Float_t GetRmin2() const {return fRmin2;}
   virtual Float_t GetRmax2() const {return fRmax2;}

   ClassDef(TCONS,1)  //CONS shape
};

#endif
 TCONS.h:1
 TCONS.h:2
 TCONS.h:3
 TCONS.h:4
 TCONS.h:5
 TCONS.h:6
 TCONS.h:7
 TCONS.h:8
 TCONS.h:9
 TCONS.h:10
 TCONS.h:11
 TCONS.h:12
 TCONS.h:13
 TCONS.h:14
 TCONS.h:15
 TCONS.h:16
 TCONS.h:17
 TCONS.h:18
 TCONS.h:19
 TCONS.h:20
 TCONS.h:21
 TCONS.h:22
 TCONS.h:23
 TCONS.h:24
 TCONS.h:25
 TCONS.h:26
 TCONS.h:27
 TCONS.h:28
 TCONS.h:29
 TCONS.h:30
 TCONS.h:31
 TCONS.h:32
 TCONS.h:33
 TCONS.h:34
 TCONS.h:35
 TCONS.h:36
 TCONS.h:37
 TCONS.h:38
 TCONS.h:39
 TCONS.h:40
 TCONS.h:41
 TCONS.h:42
 TCONS.h:43
 TCONS.h:44
 TCONS.h:45
 TCONS.h:46
 TCONS.h:47
 TCONS.h:48
 TCONS.h:49
 TCONS.h:50