TPARA.h

Go to the documentation of this file.
00001 // @(#)root/g3d:$Id: TPARA.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_TPARA
00013 #define ROOT_TPARA
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////////////
00017 //                                                                        //
00018 // TPARA                                                                  //
00019 //                                                                        //
00020 // PARA is parallelepiped. It has 6 parameters, the half length in x,     //
00021 // the half length in y, the half length in z, the angle w.r.t. the y     //
00022 // axis from the centre of the low y edge to the centre of the high y     //
00023 // edge, and the theta phi polar angles from the centre of the low        //
00024 // z face to the centre of the high z face.                               //
00025 //                                                                        //
00026 ////////////////////////////////////////////////////////////////////////////
00027 
00028 #ifndef ROOT_TBRIK
00029 #include "TBRIK.h"
00030 #endif
00031 
00032 class TPARA : public TBRIK {
00033 protected:
00034    Float_t fAlpha;  // angle w.r.t. the y axis from the centre of the low y to the high y
00035    Float_t fTheta;  // polar angle from the centre of the low z to the high z
00036    Float_t fPhi;    // polar angle from the centre of the low z to the high z
00037 
00038    virtual void    SetPoints(Double_t *points) const;
00039 
00040 public:
00041    TPARA();
00042    TPARA(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz,
00043          Float_t alpha, Float_t theta, Float_t phi);
00044    virtual ~TPARA();
00045 
00046    virtual Float_t  GetAlpha() const  {return fAlpha;}
00047    virtual Float_t  GetTheta() const  {return fTheta;}
00048    virtual Float_t  GetPhi() const    {return fPhi;}
00049 
00050    ClassDef(TPARA,1)  //PARA shape
00051 };
00052 
00053 #endif

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