Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TELTU.cxx
Go to the documentation of this file.
1// @(#)root/g3d:$Id$
2// Author: Rene Brun 26/06/97
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#include "TELTU.h"
13#include "TNode.h"
14
16
17/** \class TELTU
18\ingroup g3d
19A cylinder with an elliptical section. It has three
20parameters: the ellipse semi-axis in X, the ellipse
21semi-axis in Y and the half length in Z. The equation of
22the conical curve is:
23
24 X**2/fRx**2 + Y**2/fRy**2 = 1
25
26ELTU is not divisible.
27
28 - name: name of the shape
29 - title: shape's title
30 - material: (see TMaterial)
31 - rx: the ellipse semi-axis in X
32 - ry: the ellipse semi-axis in Y
33 - dz: half-length in z
34*/
35
36////////////////////////////////////////////////////////////////////////////////
37/// ELTU shape default constructor.
38
40{
41
42}
43
44////////////////////////////////////////////////////////////////////////////////
45
46TELTU::TELTU(const char *name, const char *title, const char *material, Float_t rx, Float_t ry,
47 Float_t dz):TTUBE (name,title,material,0,rx,dz,rx?ry/rx:1.0)
48{}
49
50////////////////////////////////////////////////////////////////////////////////
51/// ELTU shape default destructor.
52
54{
55}
56
float Float_t
Definition RtypesCore.h:57
#define ClassImp(name)
Definition Rtypes.h:364
char name[80]
Definition TGX11.cxx:110
A cylinder with an elliptical section.
Definition TELTU.h:31
virtual ~TELTU()
ELTU shape default destructor.
Definition TELTU.cxx:53
TELTU()
ELTU shape default constructor.
Definition TELTU.cxx:39
A tube.
Definition TTUBE.h:32