library: libGraf3d #include "TTRAP.h"

# TTRAP

class description - source file - inheritance tree (.pdf)

## class TTRAP : public TBRIK

| Inheritance Chart:
`TObject`
| <- | `TNamed`
`TAttLine`
`TAttFill`
`TAtt3D`
| <- | `TShape`
| <- | `TBRIK`
| <- | `TTRAP` |

        protected:

          virtual void SetPoints(Double_t* points) const

        public:

                          TTRAP()
                          TTRAP(const char* name, const char* title, const char* material, Float_t dz, Float_t theta, Float_t phi, Float_t h1, Float_t bl1, Float_t tl1, Float_t alpha1, Float_t h2, Float_t bl2, Float_t tl2, Float_t alpha2)
                          TTRAP(const TTRAP&)
                  virtual ~TTRAP()
           static TClass* Class()
          virtual Float_t GetAlpha1() const
          virtual Float_t GetAlpha2() const
          virtual Float_t GetBl1() const
          virtual Float_t GetBl2() const
          virtual Float_t GetH1() const
          virtual Float_t GetH2() const
          virtual Float_t GetTl1() const
          virtual Float_t GetTl2() const
          virtual TClass* IsA() const
                   TTRAP& operator=(const TTRAP&)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          Float_t fH1      half length in y at low z
          Float_t fBl1     half length in x at low z and y low edge
          Float_t fTl1     half length in x at low z and y high edge
          Float_t fAlpha1  angle w.r.t. the y axis
          Float_t fH2      half length in y at high z
          Float_t fBl2     half length in x at high z and y low edge
          Float_t fTl2     half length in x at high z and y high edge
          Float_t fAlpha2  angle w.r.t. the y axis

## Class Description

     TRAP is a general trapezoid. The faces perpendicular to z are trapezia and
     their centres are not necessarily on a line parallel to the z axis.
     This shape has 14 parameters.

         - name       name of the shape
         - title      shape's title
         - material  (see TMaterial)
         - dz         half-length along the z axis
         - theta      polar angle of the line joining the centre of the face
                      at -DZ to the centre of the one at +DZ
         - phi        azimuthal angle of the line joining the centre of the face
                      at -DZ to the centre of the one at +DZ
         - h1         half-length along y of the face at -DZ
         - bl1        half-length along x of the side at -H1 in y of the face
                      at -DZ in z
         - tl1        half-length along x of the side at +H1 in y of the face
                      at -DZ in z
         - alpha1     angle with respect to the y axis from the centre of the
                      side at -H1 in y to the centre of the side at +H1 in y
                      of the face at -DZ in z
         - h2         half-length along y of the face at +DZ
         - bl2        half-length along x of the side at -H2 in y of the
                      face at +DZ in z
         - tl2        half-length along x of the side at +H2 in y of the face
                      at +DZ in z
         - alpha2     angle with respect to the y axis from the centre of the side
                      at -H2 in y to the centre of the side at +H2 in y of the
                      face at +DZ in z

TTRAP()

     TRAP shape default constructor

TTRAP(const char *name, const char *title, const char *material, Float_t dz, Float_t theta, Float_t phi, Float_t h1, Float_t bl1, Float_t tl1, Float_t alpha1, Float_t h2, Float_t bl2, Float_t tl2, Float_t alpha2) : TBRIK(name, title,material,theta,phi,dz)

     TRAP shape normal constructor

~TTRAP()

     TRAP shape default destructor

void SetPoints(Double_t *points) const

     Create TRAP points

### Inline Functions

                Float_t GetH1() const
                Float_t GetBl1() const
                Float_t GetTl1() const
                Float_t GetAlpha1() const
                Float_t GetH2() const
                Float_t GetBl2() const
                Float_t GetTl2() const
                Float_t GetAlpha2() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                  TTRAP TTRAP(const TTRAP&)
                 TTRAP& operator=(const TTRAP&)

Author: Nenad Buncic 19/09/95
Last update: root/g3d:$Name: $:$Id: TTRAP.cxx,v 1.4 2005/03/09 18:19:26 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *