Logo ROOT   6.14/05
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 #include "TBRIK.h"
26 
27 class TGTRA : public TBRIK {
28 
29 protected:
30  Float_t fTwist; // twisting parameter
31  Float_t fH1; // half length in y at low z
32  Float_t fBl1; // half length in x at low z and y low edge
33  Float_t fTl1; // half length in x at low z and y high edge
34  Float_t fAlpha1; // angle w.r.t. the y axis
35  Float_t fH2; // half length in y at high z
36  Float_t fBl2; // half length in x at high z and y low edge
37  Float_t fTl2; // half length in x at high z and y high edge
38  Float_t fAlpha2; // angle w.r.t. the y axis
39 
40  virtual void SetPoints(Double_t *points) const;
41 public:
42  TGTRA();
43  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,
44  Float_t bl1, Float_t tl1, Float_t alpha1, Float_t h2, Float_t bl2, Float_t tl2,
45  Float_t alpha2);
46  virtual ~TGTRA();
47 
48  Float_t GetTwist() const {return fTwist;}
49  Float_t GetH1() const {return fH1;}
50  Float_t GetBl1() const {return fBl1;}
51  Float_t GetTl1() const {return fTl1;}
52  Float_t GetAlpha1() const {return fAlpha1;}
53  Float_t GetH2() const {return fH2;}
54  Float_t GetBl2() const {return fBl2;}
55  Float_t GetTl2() const {return fTl2;}
56  Float_t GetAlpha2() const {return fAlpha2;}
57 
58  ClassDef(TGTRA,1) //GTRA shape
59 };
60 
61 #endif
TGTRA()
GTRA shape default constructor.
Definition: TGTRA.cxx:67
Float_t GetTwist() const
Definition: TGTRA.h:48
float Float_t
Definition: RtypesCore.h:53
virtual void SetPoints(Double_t *points) const
Create GTRA points.
Definition: TGTRA.cxx:109
Float_t GetAlpha2() const
Definition: TGTRA.h:56
Float_t fAlpha1
Definition: TGTRA.h:34
Float_t GetBl2() const
Definition: TGTRA.h:54
Float_t fTl1
Definition: TGTRA.h:33
Float_t fTl2
Definition: TGTRA.h:37
#define ClassDef(name, id)
Definition: Rtypes.h:320
Float_t GetH2() const
Definition: TGTRA.h:53
TH1F * h1
Definition: legend1.C:5
point * points
Definition: X3DBuffer.c:20
Float_t fH1
Definition: TGTRA.h:31
virtual ~TGTRA()
GTRA shape default destructor.
Definition: TGTRA.cxx:102
Float_t GetH1() const
Definition: TGTRA.h:49
Float_t fBl1
Definition: TGTRA.h:32
Float_t fAlpha2
Definition: TGTRA.h:38
Float_t GetTl1() const
Definition: TGTRA.h:51
Float_t fH2
Definition: TGTRA.h:35
A box with faces perpendicular to the axes.
Definition: TBRIK.h:26
double Double_t
Definition: RtypesCore.h:55
A general twisted trapezoid.
Definition: TGTRA.h:27
Float_t GetBl1() const
Definition: TGTRA.h:50
Float_t fBl2
Definition: TGTRA.h:36
Float_t GetTl2() const
Definition: TGTRA.h:55
Float_t GetAlpha1() const
Definition: TGTRA.h:52
Float_t fTwist
Definition: TGTRA.h:30
char name[80]
Definition: TGX11.cxx:109