Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TGeoPara.h
Go to the documentation of this file.
1 // @(#)root/geom:$Id$
2 // Author: Andrei Gheata 31/01/02
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGeoPara
13 #define ROOT_TGeoPara
14 
15 #include "TGeoBBox.h"
16 
17 class TGeoPara : public TGeoBBox
18 {
19 protected :
20 // data members
21  Double_t fX; // X half-length
22  Double_t fY; // Y half-length
23  Double_t fZ; // Z half-length
24  Double_t fAlpha; // angle w.r.t Y from the center of low Y to the high Y
25  Double_t fTheta; // polar angle of segment between low and hi Z surfaces
26  Double_t fPhi; // azimuthal angle of segment between low and hi Z surfaces
27  Double_t fTxy; // tangent of XY section angle
28  Double_t fTxz; // tangent of XZ section angle
29  Double_t fTyz; // tangent of XZ section angle
30 
31 // methods
32 public:
33  // constructors
34  TGeoPara();
35  TGeoPara(Double_t dx, Double_t dy, Double_t dz, Double_t alpha, Double_t theta, Double_t phi);
36  TGeoPara(const char *name, Double_t dx, Double_t dy, Double_t dz, Double_t alpha, Double_t theta, Double_t phi);
37  TGeoPara(Double_t *param);
38  // destructor
39  virtual ~TGeoPara();
40  // methods
41  virtual Double_t Capacity() const;
42  virtual void ComputeBBox();
43  virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm);
44  virtual void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize);
45  virtual Bool_t Contains(const Double_t *point) const;
46  virtual void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const;
47  virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1,
48  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
49  virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
50  virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1,
51  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
52  virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
53  virtual TGeoVolume *Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv,
54  Double_t start, Double_t step);
55  virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const;
56  virtual void GetBoundingCylinder(Double_t *param) const;
57  virtual Int_t GetByteCount() const {return 48;}
58  virtual Int_t GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const;
59  virtual TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const;
60  virtual Int_t GetNmeshVertices() const {return 8;}
61  Double_t GetX() const {return fX;}
62  Double_t GetY() const {return fY;}
63  Double_t GetZ() const {return fZ;}
64  Double_t GetAlpha() const {return fAlpha;}
65  Double_t GetTheta() const {return fTheta;}
66  Double_t GetPhi() const {return fPhi;}
67  Double_t GetTxy() const {return fTxy;}
68  Double_t GetTxz() const {return fTxz;}
69  Double_t GetTyz() const {return fTyz;}
70  virtual void InspectShape() const;
71  virtual Bool_t IsCylType() const {return kFALSE;}
72  virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const;
73  virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const;
74  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
75  virtual void SetDimensions(Double_t *param);
76  virtual void SetPoints(Double_t *points) const;
77  virtual void SetPoints(Float_t *points) const;
78  virtual void Sizeof3D() const;
79 
80  ClassDef(TGeoPara, 1) // box primitive
81 };
82 
83 #endif