ROOT logo
// @(#)root/g3d:$Id: TPARA.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Nenad Buncic   19/09/95

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TPARA
#define ROOT_TPARA


////////////////////////////////////////////////////////////////////////////
//                                                                        //
// TPARA                                                                  //
//                                                                        //
// PARA is parallelepiped. It has 6 parameters, the half length in x,     //
// the half length in y, the half length in z, the angle w.r.t. the y     //
// axis from the centre of the low y edge to the centre of the high y     //
// edge, and the theta phi polar angles from the centre of the low        //
// z face to the centre of the high z face.                               //
//                                                                        //
////////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TBRIK
#include "TBRIK.h"
#endif

class TPARA : public TBRIK {
protected:
   Float_t fAlpha;  // angle w.r.t. the y axis from the centre of the low y to the high y
   Float_t fTheta;  // polar angle from the centre of the low z to the high z
   Float_t fPhi;    // polar angle from the centre of the low z to the high z

   virtual void    SetPoints(Double_t *points) const;

public:
   TPARA();
   TPARA(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz,
         Float_t alpha, Float_t theta, Float_t phi);
   virtual ~TPARA();

   virtual Float_t  GetAlpha() const  {return fAlpha;}
   virtual Float_t  GetTheta() const  {return fTheta;}
   virtual Float_t  GetPhi() const    {return fPhi;}

   ClassDef(TPARA,1)  //PARA shape
};

#endif
 TPARA.h:1
 TPARA.h:2
 TPARA.h:3
 TPARA.h:4
 TPARA.h:5
 TPARA.h:6
 TPARA.h:7
 TPARA.h:8
 TPARA.h:9
 TPARA.h:10
 TPARA.h:11
 TPARA.h:12
 TPARA.h:13
 TPARA.h:14
 TPARA.h:15
 TPARA.h:16
 TPARA.h:17
 TPARA.h:18
 TPARA.h:19
 TPARA.h:20
 TPARA.h:21
 TPARA.h:22
 TPARA.h:23
 TPARA.h:24
 TPARA.h:25
 TPARA.h:26
 TPARA.h:27
 TPARA.h:28
 TPARA.h:29
 TPARA.h:30
 TPARA.h:31
 TPARA.h:32
 TPARA.h:33
 TPARA.h:34
 TPARA.h:35
 TPARA.h:36
 TPARA.h:37
 TPARA.h:38
 TPARA.h:39
 TPARA.h:40
 TPARA.h:41
 TPARA.h:42
 TPARA.h:43
 TPARA.h:44
 TPARA.h:45
 TPARA.h:46
 TPARA.h:47
 TPARA.h:48
 TPARA.h:49
 TPARA.h:50
 TPARA.h:51
 TPARA.h:52
 TPARA.h:53