Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TTRD2.h
Go to the documentation of this file.
1// @(#)root/g3d:$Id$
2// Author: Nenad Buncic 13/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_TTRD2
13#define ROOT_TTRD2
14
15
16//////////////////////////////////////////////////////////////////////////
17// //
18// TTRD2 //
19// //
20// TRD2 is a trapezoid with both x and y lengths varying with z. It //
21// has 5 parameters, half length in x at the low z surface, half length //
22// in x at the high z surface, half length in y at the low z surface, //
23// half length in y at the high z surface, and half length in z //
24// //
25//////////////////////////////////////////////////////////////////////////
26
27#include "TBRIK.h"
28
29class TTRD2 : public TBRIK {
30protected:
31 Float_t fDx2; // half length in x at the high z surface
32 Float_t fDy2; // half length in y at the high z surface
33
34 virtual void SetPoints(Double_t *points) const;
35
36public:
37 TTRD2();
38 TTRD2(const char *name, const char *title, const char *material, Float_t dx1, Float_t dx2,
39 Float_t dy1, Float_t dy2, Float_t dz);
40 virtual ~TTRD2();
41
42 Float_t GetDx2() const {return fDx2;}
43 Float_t GetDy2() const {return fDy2;}
44
45 ClassDef(TTRD2,1) //TRD2 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 box with faces perpendicular to the axes.
Definition TBRIK.h:26
A trapezoid with both x and y dimensions varying along z.
Definition TTRD2.h:29
TTRD2()
TRD2 shape default constructor.
Definition TTRD2.cxx:37
Float_t fDx2
Definition TTRD2.h:31
virtual void SetPoints(Double_t *points) const
Create TRD2 points.
Definition TTRD2.cxx:63
Float_t GetDx2() const
Definition TTRD2.h:42
Float_t GetDy2() const
Definition TTRD2.h:43
virtual ~TTRD2()
TRD2 shape default destructor.
Definition TTRD2.cxx:56
Float_t fDy2
Definition TTRD2.h:32