Logo ROOT   6.10/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 #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
virtual Float_t GetRmax2() const
Definition: TCONS.h:43
A segment of a conical tube.
Definition: TCONS.h:27
float Float_t
Definition: RtypesCore.h:53
Float_t fRmin2
Definition: TCONS.h:30
Float_t fRmax2
Definition: TCONS.h:31
#define ClassDef(name, id)
Definition: Rtypes.h:297
point * points
Definition: X3DBuffer.c:20
virtual void SetPoints(Double_t *points) const
Create CONS points.
Definition: TCONS.cxx:81
virtual ~TCONS()
CONS shape default destructor.
Definition: TCONS.cxx:74
TCONS()
CONS shape default constructor.
Definition: TCONS.cxx:43
double Double_t
Definition: RtypesCore.h:55
virtual Float_t GetRmin2() const
Definition: TCONS.h:42
A segment of a tube.
Definition: TTUBS.h:29