TGTRA.h

Go to the documentation of this file.
00001 // @(#)root/g3d:$Id: TGTRA.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Nenad Buncic   19/09/95
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TGTRA
00013 #define ROOT_TGTRA
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////////////
00017 //                                                                        //
00018 // TGTRA                                                                  //
00019 //                                                                        //
00020 // GTRA is general twisted trapezoid. Essentially this is a TRAP shape,   //
00021 // except this it is twisted in the x, y plane as a function z.           //
00022 //                                                                        //
00023 ////////////////////////////////////////////////////////////////////////////
00024 
00025 #ifndef ROOT_TBRIK
00026 #include "TBRIK.h"
00027 #endif
00028 
00029 class TGTRA : public TBRIK {
00030 
00031 protected:
00032    Float_t fTwist;     // twisting parameter
00033    Float_t fH1;        // half length in y at low z
00034    Float_t fBl1;       // half length in x at low z and y low edge
00035    Float_t fTl1;       // half length in x at low z and y high edge
00036    Float_t fAlpha1;    // angle w.r.t. the y axis
00037    Float_t fH2;        // half length in y at high z
00038    Float_t fBl2;       // half length in x at high z and y low edge
00039    Float_t fTl2;       // half length in x at high z and y high edge
00040    Float_t fAlpha2;    // angle w.r.t. the y axis
00041 
00042    virtual void    SetPoints(Double_t *points) const;
00043 public:
00044    TGTRA();
00045    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,
00046          Float_t bl1, Float_t tl1, Float_t alpha1, Float_t h2, Float_t bl2, Float_t tl2,
00047          Float_t alpha2);
00048    virtual ~TGTRA();
00049 
00050    Float_t         GetTwist() const  {return fTwist;}
00051    Float_t         GetH1() const     {return fH1;}
00052    Float_t         GetBl1() const    {return fBl1;}
00053    Float_t         GetTl1() const    {return fTl1;}
00054    Float_t         GetAlpha1() const {return fAlpha1;}
00055    Float_t         GetH2() const     {return fH2;}
00056    Float_t         GetBl2() const    {return fBl2;}
00057    Float_t         GetTl2() const    {return fTl2;}
00058    Float_t         GetAlpha2() const {return fAlpha2;}
00059 
00060    ClassDef(TGTRA,1)  //GTRA shape
00061 };
00062 
00063 #endif

Generated on Tue Jul 5 14:16:20 2011 for ROOT_528-00b_version by  doxygen 1.5.1