Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 void SetPoints(Double_t *points) const override;
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 ~TTRD1() override;
38
39 virtual Float_t GetDx2() const {return fDx2;}
40
41 ClassDefOverride(TTRD1,1) //TRD1 shape
42};
43
44#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 the x dimension varying along z.
Definition TTRD1.h:28
virtual Float_t GetDx2() const
Definition TTRD1.h:39
Float_t fDx2
Definition TTRD1.h:30
void SetPoints(Double_t *points) const override
Create TRD1 points.
Definition TTRD1.cxx:61
TTRD1()
TRD1 shape default constructor.
Definition TTRD1.cxx:37
~TTRD1() override
TRD1 shape default destructor.
Definition TTRD1.cxx:54