Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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