Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
27class TCONS : public TTUBS {
28
29protected:
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;
34public:
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
double Double_t
Definition RtypesCore.h:59
float Float_t
Definition RtypesCore.h:57
#define ClassDef(name, id)
Definition Rtypes.h:325
char name[80]
Definition TGX11.cxx:110
point * points
Definition X3DBuffer.c:22
A segment of a conical tube.
Definition TCONS.h:27
virtual Float_t GetRmax2() const
Definition TCONS.h:43
TCONS()
CONS shape default constructor.
Definition TCONS.cxx:43
virtual Float_t GetRmin2() const
Definition TCONS.h:42
Float_t fRmin2
Definition TCONS.h:30
Float_t fRmax2
Definition TCONS.h:31
virtual ~TCONS()
CONS shape default destructor.
Definition TCONS.cxx:74
virtual void SetPoints(Double_t *points) const
Create CONS points.
Definition TCONS.cxx:81
A segment of a tube.
Definition TTUBS.h:29