ROOT  6.06/09
Reference Guide
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 #ifndef ROOT_TTUBS
26 #include "TTUBS.h"
27 #endif
28 
29 class TCONS : public TTUBS {
30 
31 protected:
32  Float_t fRmin2; // inside radius at the high z limit
33  Float_t fRmax2; // outside radius at the high z limit
34 
35  virtual void SetPoints(Double_t *points) const;
36 public:
37  TCONS();
38  TCONS(const char *name, const char *title, const char *material, Float_t dz, Float_t rmin1, Float_t rmax1,
39  Float_t rmin2, Float_t rmax2, Float_t phi1, Float_t phi2);
40  TCONS(const char *name, const char *title, const char *material, Float_t rmax1, Float_t dz
41  , Float_t phi1, Float_t phi2, Float_t rmax2 = 0);
42  virtual ~TCONS();
43 
44  virtual Float_t GetRmin2() const {return fRmin2;}
45  virtual Float_t GetRmax2() const {return fRmax2;}
46 
47  ClassDef(TCONS,1) //CONS shape
48 };
49 
50 #endif
virtual Float_t GetRmin2() const
Definition: TCONS.h:44
A segment of a conical tube.
Definition: TCONS.h:29
float Float_t
Definition: RtypesCore.h:53
Float_t fRmin2
Definition: TCONS.h:32
Float_t fRmax2
Definition: TCONS.h:33
ClassDef(TAttLine, 2)
point * points
Definition: X3DBuffer.c:20
virtual ~TCONS()
CONS shape default destructor.
Definition: TCONS.cxx:74
double Double_t
Definition: RtypesCore.h:55
virtual Float_t GetRmax2() const
Definition: TCONS.h:45
#define name(a, b)
Definition: linkTestLib0.cpp:5
A segment of a tube.
Definition: TTUBS.h:31
virtual void SetPoints(Double_t *points) const
Create CONS points.
Definition: TCONS.cxx:81