ROOT  6.06/09
Reference Guide
TGTRA.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_TGTRA
13 #define ROOT_TGTRA
14 
15 
16 ////////////////////////////////////////////////////////////////////////////
17 // //
18 // TGTRA //
19 // //
20 // GTRA is general twisted trapezoid. Essentially this is a TRAP shape, //
21 // except this it is twisted in the x, y plane as a function z. //
22 // //
23 ////////////////////////////////////////////////////////////////////////////
24 
25 #ifndef ROOT_TBRIK
26 #include "TBRIK.h"
27 #endif
28 
29 class TGTRA : public TBRIK {
30 
31 protected:
32  Float_t fTwist; // twisting parameter
33  Float_t fH1; // half length in y at low z
34  Float_t fBl1; // half length in x at low z and y low edge
35  Float_t fTl1; // half length in x at low z and y high edge
36  Float_t fAlpha1; // angle w.r.t. the y axis
37  Float_t fH2; // half length in y at high z
38  Float_t fBl2; // half length in x at high z and y low edge
39  Float_t fTl2; // half length in x at high z and y high edge
40  Float_t fAlpha2; // angle w.r.t. the y axis
41 
42  virtual void SetPoints(Double_t *points) const;
43 public:
44  TGTRA();
45  TGTRA(const char *name, const char *title, const char *material, Float_t dz, Float_t theta, Float_t phi, Float_t twist, Float_t h1,
46  Float_t bl1, Float_t tl1, Float_t alpha1, Float_t h2, Float_t bl2, Float_t tl2,
47  Float_t alpha2);
48  virtual ~TGTRA();
49 
50  Float_t GetTwist() const {return fTwist;}
51  Float_t GetH1() const {return fH1;}
52  Float_t GetBl1() const {return fBl1;}
53  Float_t GetTl1() const {return fTl1;}
54  Float_t GetAlpha1() const {return fAlpha1;}
55  Float_t GetH2() const {return fH2;}
56  Float_t GetBl2() const {return fBl2;}
57  Float_t GetTl2() const {return fTl2;}
58  Float_t GetAlpha2() const {return fAlpha2;}
59 
60  ClassDef(TGTRA,1) //GTRA shape
61 };
62 
63 #endif
float Float_t
Definition: RtypesCore.h:53
Float_t GetH1() const
Definition: TGTRA.h:51
Float_t fAlpha1
Definition: TGTRA.h:36
Float_t GetAlpha1() const
Definition: TGTRA.h:54
Float_t GetTl1() const
Definition: TGTRA.h:53
Float_t fTl1
Definition: TGTRA.h:35
Float_t fTl2
Definition: TGTRA.h:39
ClassDef(TAttLine, 2)
TH1F * h1
Definition: legend1.C:5
point * points
Definition: X3DBuffer.c:20
Float_t fH1
Definition: TGTRA.h:33
virtual ~TGTRA()
GTRA shape default destructor.
Definition: TGTRA.cxx:102
Float_t GetTwist() const
Definition: TGTRA.h:50
Float_t GetBl2() const
Definition: TGTRA.h:56
Float_t fBl1
Definition: TGTRA.h:34
Float_t fAlpha2
Definition: TGTRA.h:40
Float_t fH2
Definition: TGTRA.h:37
A box with faces perpendicular to the axes.
Definition: TBRIK.h:28
double Double_t
Definition: RtypesCore.h:55
Float_t GetH2() const
Definition: TGTRA.h:55
A general twisted trapezoid.
Definition: TGTRA.h:29
#define name(a, b)
Definition: linkTestLib0.cpp:5
virtual void SetPoints(Double_t *points) const
Create GTRA points.
Definition: TGTRA.cxx:109
Float_t GetBl1() const
Definition: TGTRA.h:52
Float_t fBl2
Definition: TGTRA.h:38
Float_t GetTl2() const
Definition: TGTRA.h:57
Float_t fTwist
Definition: TGTRA.h:32
Float_t GetAlpha2() const
Definition: TGTRA.h:58