Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TCONS.h
Go to the documentation of this file.
1 // @(#)root/g3d:$Id$
2 // Author: Nenad Buncic 18/09/95
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TCONS
13 #define ROOT_TCONS
14 
15 
16 ////////////////////////////////////////////////////////////////////////////
17 // //
18 // TCONS //
19 // //
20 // CONS is a phi segment of a conical tube. It has 7 parameters, the half //
21 // the same 5 as a CONE plus the phi limits //
22 // //
23 ////////////////////////////////////////////////////////////////////////////
24 
25 #include "TTUBS.h"
26 
27 class TCONS : public TTUBS {
28 
29 protected:
30  Float_t fRmin2; // inside radius at the high z limit
31  Float_t fRmax2; // outside radius at the high z limit
32 
33  virtual void SetPoints(Double_t *points) const;
34 public:
35  TCONS();
36  TCONS(const char *name, const char *title, const char *material, Float_t dz, Float_t rmin1, Float_t rmax1,
37  Float_t rmin2, Float_t rmax2, Float_t phi1, Float_t phi2);
38  TCONS(const char *name, const char *title, const char *material, Float_t rmax1, Float_t dz
39  , Float_t phi1, Float_t phi2, Float_t rmax2 = 0);
40  virtual ~TCONS();
41 
42  virtual Float_t GetRmin2() const {return fRmin2;}
43  virtual Float_t GetRmax2() const {return fRmax2;}
44 
45  ClassDef(TCONS,1) //CONS shape
46 };
47 
48 #endif