TGeoPara.h

Go to the documentation of this file.
00001 // @(#)root/geom:$Id: TGeoPara.h 21425 2007-12-17 15:59:27Z brun $
00002 // Author: Andrei Gheata   31/01/02
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_TGeoPara
00013 #define ROOT_TGeoPara
00014 
00015 #ifndef ROOT_TGeoBBox
00016 #include "TGeoBBox.h"
00017 #endif
00018 
00019 ////////////////////////////////////////////////////////////////////////////
00020 //                                                                        //
00021 // TGeoPara - parallelipeped class. It has 6 parameters :                 //
00022 //         dx, dy, dz - half lengths in X, Y, Z                           //
00023 //         alpha - angle w.r.t the Y axis from center of low Y edge to    //
00024 //                 center of high Y edge [deg]                            //
00025 //         theta, phi - polar and azimuthal angles of the segment between //
00026 //                 low and high Z surfaces [deg]                          //
00027 //                                                                        //
00028 ////////////////////////////////////////////////////////////////////////////
00029 
00030 class TGeoPara : public TGeoBBox
00031 {
00032 protected :
00033 // data members
00034    Double_t              fX;        // X half-length
00035    Double_t              fY;        // Y half-length
00036    Double_t              fZ;        // Z half-length
00037    Double_t              fAlpha;     // angle w.r.t Y from the center of low Y to the hihg Y
00038    Double_t              fTheta;     // polar angle of segment between low and hi Z surfaces    
00039    Double_t              fPhi;       // azimuthal angle of segment between low and hi Z surfaces 
00040    Double_t              fTxy;       // tangent of XY section angle
00041    Double_t              fTxz;       // tangent of XZ section angle
00042    Double_t              fTyz;       // tangent of XZ section angle
00043 
00044 // methods
00045 public:
00046    // constructors
00047    TGeoPara();
00048    TGeoPara(Double_t dx, Double_t dy, Double_t dz, Double_t alpha, Double_t theta, Double_t phi);
00049    TGeoPara(const char *name, Double_t dx, Double_t dy, Double_t dz, Double_t alpha, Double_t theta, Double_t phi);
00050    TGeoPara(Double_t *param);
00051    // destructor
00052    virtual ~TGeoPara();
00053    // methods
00054    virtual Double_t      Capacity() const;
00055    virtual void          ComputeBBox();
00056    virtual void          ComputeNormal(Double_t *point, Double_t *dir, Double_t *norm);
00057    virtual Bool_t        Contains(Double_t *point) const;
00058    virtual Double_t      DistFromInside(Double_t *point, Double_t *dir, Int_t iact=1, 
00059                                    Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
00060    virtual Double_t      DistFromOutside(Double_t *point, Double_t *dir, Int_t iact=1, 
00061                                    Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
00062    virtual TGeoVolume   *Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, 
00063                                 Double_t start, Double_t step);
00064    virtual Double_t      GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const;
00065    virtual void          GetBoundingCylinder(Double_t *param) const;
00066    virtual Int_t         GetByteCount() const {return 48;}
00067    virtual Int_t         GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const;
00068    virtual TGeoShape    *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const;
00069    virtual Int_t         GetNmeshVertices() const {return 8;}
00070    Double_t              GetX() const  {return fX;}
00071    Double_t              GetY() const  {return fY;}
00072    Double_t              GetZ() const  {return fZ;}
00073    Double_t              GetAlpha() const {return fAlpha;}
00074    Double_t              GetTheta() const {return fTheta;}
00075    Double_t              GetPhi() const   {return fPhi;}
00076    Double_t              GetTxy() const {return fTxy;}
00077    Double_t              GetTxz() const {return fTxz;}
00078    Double_t              GetTyz() const {return fTyz;}
00079    virtual void          InspectShape() const;
00080    virtual Bool_t        IsCylType() const {return kFALSE;}
00081    virtual Double_t      Safety(Double_t *point, Bool_t in=kTRUE) const;
00082    virtual void          SavePrimitive(ostream &out, Option_t *option = "");
00083    virtual void          SetDimensions(Double_t *param);
00084    virtual void          SetPoints(Double_t *points) const;
00085    virtual void          SetPoints(Float_t *points) const;
00086    virtual void          Sizeof3D() const;
00087 
00088    ClassDef(TGeoPara, 1)         // box primitive
00089 };
00090 
00091 #endif

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