Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TPARA.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/g3d:$Id$
0002 // Author: Nenad Buncic   19/09/95
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TPARA
0013 #define ROOT_TPARA
0014 
0015 
0016 ////////////////////////////////////////////////////////////////////////////
0017 //                                                                        //
0018 // TPARA                                                                  //
0019 //                                                                        //
0020 // PARA is parallelepiped. It has 6 parameters, the half length in x,     //
0021 // the half length in y, the half length in z, the angle w.r.t. the y     //
0022 // axis from the centre of the low y edge to the centre of the high y     //
0023 // edge, and the theta phi polar angles from the centre of the low        //
0024 // z face to the centre of the high z face.                               //
0025 //                                                                        //
0026 ////////////////////////////////////////////////////////////////////////////
0027 
0028 #include "TBRIK.h"
0029 
0030 class TPARA : public TBRIK {
0031 protected:
0032    Float_t fAlpha;  // angle w.r.t. the y axis from the centre of the low y to the high y
0033    Float_t fTheta;  // polar angle from the centre of the low z to the high z
0034    Float_t fPhi;    // polar angle from the centre of the low z to the high z
0035 
0036    void    SetPoints(Double_t *points) const override;
0037 
0038 public:
0039    TPARA();
0040    TPARA(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz,
0041          Float_t alpha, Float_t theta, Float_t phi);
0042    ~TPARA() override;
0043 
0044    virtual Float_t  GetAlpha() const  {return fAlpha;}
0045    virtual Float_t  GetTheta() const  {return fTheta;}
0046    virtual Float_t  GetPhi() const    {return fPhi;}
0047 
0048    ClassDefOverride(TPARA,1)  //PARA shape
0049 };
0050 
0051 #endif