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 void SetPoints(Double_t *points) const override;
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 ~TCONS() override;
41
42 virtual Float_t GetRmin2() const {return fRmin2;}
43 virtual Float_t GetRmax2() const {return fRmax2;}
44
45 ClassDefOverride(TCONS,1) //CONS shape
46};
47
48#endif
float Float_t
Definition RtypesCore.h:57
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
char name[80]
Definition TGX11.cxx:110
A segment of a conical tube.
Definition TCONS.h:27
~TCONS() override
CONS shape default destructor.
Definition TCONS.cxx:74
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
void SetPoints(Double_t *points) const override
Create CONS points.
Definition TCONS.cxx:81
Float_t fRmax2
Definition TCONS.h:31
A segment of a tube.
Definition TTUBS.h:29