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 void SetPoints(Double_t *points) const override;
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 ~TTRD2() override;
41
42 Float_t GetDx2() const {return fDx2;}
43 Float_t GetDy2() const {return fDy2;}
44
45 ClassDefOverride(TTRD2,1) //TRD2 shape
46};
47
48#endif
float Float_t
Definition RtypesCore.h:57
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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 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
void SetPoints(Double_t *points) const override
Create TRD2 points.
Definition TTRD2.cxx:63
Float_t GetDx2() const
Definition TTRD2.h:42
Float_t GetDy2() const
Definition TTRD2.h:43
Float_t fDy2
Definition TTRD2.h:32
~TTRD2() override
TRD2 shape default destructor.
Definition TTRD2.cxx:56