Logo ROOT  
Reference Guide
TTRD1.h
Go to the documentation of this file.
1// @(#)root/g3d:$Id$
2// Author: Nenad Buncic 17/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_TTRD1
13#define ROOT_TTRD1
14
15
16////////////////////////////////////////////////////////////////////////////
17// //
18// TTRD1 //
19// //
20// TRD1 is a trapezoid with only the x length varying with z. It has 4 //
21// parameters, the half length in x at the low z surface, that at the //
22// high z surface, the half length in y, and in z. //
23// //
24////////////////////////////////////////////////////////////////////////////
25
26#include "TBRIK.h"
27
28class TTRD1 : public TBRIK {
29protected:
30 Float_t fDx2; // half length in x at the high z surface
31
32 virtual void SetPoints(Double_t *points) const;
33
34public:
35 TTRD1();
36 TTRD1(const char *name, const char *title, const char *material, Float_t dx1, Float_t dx2, Float_t dy, Float_t dz);
37 virtual ~TTRD1();
38
39 virtual Float_t GetDx2() const {return fDx2;}
40
41 ClassDef(TTRD1,1) //TRD1 shape
42};
43
44#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 the x dimension varying along z.
Definition: TTRD1.h:28
virtual Float_t GetDx2() const
Definition: TTRD1.h:39
virtual ~TTRD1()
TRD1 shape default destructor.
Definition: TTRD1.cxx:54
Float_t fDx2
Definition: TTRD1.h:30
TTRD1()
TRD1 shape default constructor.
Definition: TTRD1.cxx:37
virtual void SetPoints(Double_t *points) const
Create TRD1 points.
Definition: TTRD1.cxx:61