ROOT  6.06/09
Reference Guide
TTRAP.h
Go to the documentation of this file.
1 // @(#)root/g3d:$Id$
2 // Author: Nenad Buncic 19/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_TTRAP
13 #define ROOT_TTRAP
14 
15 
16 ////////////////////////////////////////////////////////////////////////////
17 // //
18 // TTRAP //
19 // //
20 // TRAP is a general trapezoid, i.e. one for which the faces perpendicular//
21 // to z are trapezia and their centres are not the same x, y. It has 11 //
22 // parameters: the half length in z, the polar angles from the centre of //
23 // the face at low z to that at high z, H1 the half length in y at low z, //
24 // LB1 the half length in x at low z and y low edge, LB2 the half length //
25 // in x at low z and y high edge, TH1 the angle w.r.t. the y axis from the//
26 // centre of low y edge to the centre of the high y edge, and H2, LB2, //
27 // LH2, TH2, the corresponding quantities at high z. //
28 // //
29 ////////////////////////////////////////////////////////////////////////////
30 
31 #ifndef ROOT_TBRIK
32 #include "TBRIK.h"
33 #endif
34 
35 class TTRAP : public TBRIK {
36 protected:
37  Float_t fH1; // half length in y at low z
38  Float_t fBl1; // half length in x at low z and y low edge
39  Float_t fTl1; // half length in x at low z and y high edge
40  Float_t fAlpha1; // angle w.r.t. the y axis
41  Float_t fH2; // half length in y at high z
42  Float_t fBl2; // half length in x at high z and y low edge
43  Float_t fTl2; // half length in x at high z and y high edge
44  Float_t fAlpha2; // angle w.r.t. the y axis
45 
46  virtual void SetPoints(Double_t *points) const;
47 
48 public:
49  TTRAP();
50  TTRAP(const char *name, const char *title, const char *material, Float_t dz, Float_t theta, Float_t phi, Float_t h1,
51  Float_t bl1, Float_t tl1, Float_t alpha1, Float_t h2, Float_t bl2, Float_t tl2,
52  Float_t alpha2);
53  virtual ~TTRAP();
54 
55  virtual Float_t GetH1() const {return fH1;}
56  virtual Float_t GetBl1() const {return fBl1;}
57  virtual Float_t GetTl1() const {return fTl1;}
58  virtual Float_t GetAlpha1() const {return fAlpha1;}
59  virtual Float_t GetH2() const {return fH2;}
60  virtual Float_t GetBl2() const {return fBl2;}
61  virtual Float_t GetTl2() const {return fTl2;}
62  virtual Float_t GetAlpha2() const {return fAlpha2;}
63 
64  ClassDef(TTRAP,1) //TRAP shape
65 };
66 
67 #endif
Float_t fTl2
Definition: TTRAP.h:43
Float_t fAlpha1
Definition: TTRAP.h:40
float Float_t
Definition: RtypesCore.h:53
virtual Float_t GetBl2() const
Definition: TTRAP.h:60
Float_t fBl2
Definition: TTRAP.h:42
virtual ~TTRAP()
TRAP shape default destructor.
Definition: TTRAP.cxx:89
virtual Float_t GetTl1() const
Definition: TTRAP.h:57
Float_t fH2
Definition: TTRAP.h:41
virtual Float_t GetTl2() const
Definition: TTRAP.h:61
Float_t fBl1
Definition: TTRAP.h:38
ClassDef(TAttLine, 2)
virtual Float_t GetAlpha2() const
Definition: TTRAP.h:62
virtual Float_t GetBl1() const
Definition: TTRAP.h:56
TH1F * h1
Definition: legend1.C:5
virtual Float_t GetH1() const
Definition: TTRAP.h:55
Float_t fH1
Definition: TTRAP.h:37
point * points
Definition: X3DBuffer.c:20
A general trapezoid.
Definition: TTRAP.h:35
A box with faces perpendicular to the axes.
Definition: TBRIK.h:28
virtual void SetPoints(Double_t *points) const
Create TRAP points.
Definition: TTRAP.cxx:96
virtual Float_t GetAlpha1() const
Definition: TTRAP.h:58
double Double_t
Definition: RtypesCore.h:55
virtual Float_t GetH2() const
Definition: TTRAP.h:59
Float_t fTl1
Definition: TTRAP.h:39
#define name(a, b)
Definition: linkTestLib0.cpp:5
Float_t fAlpha2
Definition: TTRAP.h:44