ROOT  6.06/09
Reference Guide
TGeoArb8.h
Go to the documentation of this file.
1 // @(#)root/geom:$Id$
2 // Author: Andrei Gheata 24/10/01
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_TGeoArb8
13 #define ROOT_TGeoArb8
14 
15 #ifndef ROOT_TGeoBBox
16 #include "TGeoBBox.h"
17 #endif
18 
19 
20 ////////////////////////////////////////////////////////////////////////////
21 // //
22 // TGeoArb8 - a arbitrary trapezoid with less than 8 vertices standing on //
23 // two paralel planes perpendicular to Z axis. Parameters : //
24 // - dz - half length in Z; //
25 // - xy[8][2] - vector of (x,y) coordinates of vertices //
26 // - first four points (xy[i][j], i<4, j<2) are the (x,y) //
27 // coordinates of the vertices sitting on the -dz plane; //
28 // - last four points (xy[i][j], i>=4, j<2) are the (x,y) //
29 // coordinates of the vertices sitting on the +dz plane; //
30 // The order of defining the vertices of an arb8 is the following : //
31 // - point 0 is connected with points 1,3,4 //
32 // - point 1 is connected with points 0,2,5 //
33 // - point 2 is connected with points 1,3,6 //
34 // - point 3 is connected with points 0,2,7 //
35 // - point 4 is connected with points 0,5,7 //
36 // - point 5 is connected with points 1,4,6 //
37 // - point 6 is connected with points 2,5,7 //
38 // - point 7 is connected with points 3,4,6 //
39 // Points can be identical in order to create shapes with less than //
40 // 8 vertices. //
41 // //
42 ////////////////////////////////////////////////////////////////////////////
43 
44 class TGeoArb8 : public TGeoBBox
45 {
46 protected:
47  enum EGeoArb8Type {
48 // kArb8Trd1 = BIT(25), // trd1 type
49 // kArb8Trd2 = BIT(26), // trd2 type
50  kArb8Trap = BIT(27), // planar surface trapezoid
51  kArb8Tra = BIT(28) // general twisted trapezoid
52  };
53  // data members
54  Double_t fDz; // half length in Z
55  Double_t *fTwist; //! [4] tangents of twist angles
56  Double_t fXY[8][2]; // list of vertices
57 
58  TGeoArb8(const TGeoArb8&);
59  TGeoArb8& operator=(const TGeoArb8&);
60 
61 public:
62  // constructors
63  TGeoArb8();
64  TGeoArb8(Double_t dz, Double_t *vertices=0);
65  TGeoArb8(const char *name, Double_t dz, Double_t *vertices=0);
66  // destructor
67  virtual ~TGeoArb8();
68  // methods
69  virtual Double_t Capacity() const;
70  virtual void ComputeBBox();
71  virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm);
72  virtual void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize);
73  void ComputeTwist();
74  virtual Bool_t Contains(const Double_t *point) const;
75  virtual void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const;
76  Double_t DistToPlane(const Double_t *point, const Double_t *dir, Int_t ipl, Bool_t in) const;
77  virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1,
78  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
79  virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
80  virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1,
81  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
82  virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
83  virtual TGeoVolume *Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv,
84  Double_t start, Double_t step);
85  virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const;
86  virtual void GetBoundingCylinder(Double_t *param) const;
87  virtual Int_t GetByteCount() const {return 100;}
88  Double_t GetClosestEdge(const Double_t *point, Double_t *vert, Int_t &isegment) const;
89  virtual Bool_t GetPointsOnFacet(Int_t /*index*/, Int_t /*npoints*/, Double_t * /*array*/) const;
90  Double_t GetDz() const {return fDz;}
91  virtual Int_t GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const;
92  virtual TGeoShape *GetMakeRuntimeShape(TGeoShape * /*mother*/, TGeoMatrix * /*mat*/) const {return 0;}
94  Double_t *GetVertices() {return &fXY[0][0];}
95  Double_t GetTwist(Int_t iseg) const;
96  virtual Bool_t IsCylType() const {return kFALSE;}
97  static Bool_t IsSamePoint(const Double_t *p1, const Double_t *p2) {return (TMath::Abs(p1[0]-p2[0])<1.E-16 && TMath::Abs(p1[1]-p2[1])<1.E-16)?kTRUE:kFALSE;}
99  virtual void InspectShape() const;
100  Bool_t IsTwisted() const {return (fTwist==0)?kFALSE:kTRUE;}
101  Double_t SafetyToFace(const Double_t *point, Int_t iseg, Bool_t in) const;
102  virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const;
103  virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const;
104  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
105  void SetPlaneVertices(Double_t zpl, Double_t *vertices) const;
106  virtual void SetVertex(Int_t vnum, Double_t x, Double_t y);
107  virtual void SetDimensions(Double_t *param);
108  void SetDz(Double_t dz) {fDz = dz;}
109  virtual void SetPoints(Double_t *points) const;
110  virtual void SetPoints(Float_t *points) const;
111  virtual void Sizeof3D() const;
112 
113  ClassDef(TGeoArb8, 1) // arbitrary trapezoid with 8 vertices
114 };
115 
116 ////////////////////////////////////////////////////////////////////////////
117 // //
118 // TGeoTrap //
119 // //
120 // Trap is a general trapezoid, i.e. one for which the faces perpendicular//
121 // to z are trapezia and their centres are not the same x, y. It has 11 //
122 // parameters: the half length in z, the polar angles from the centre of //
123 // the face at low z to that at high z, H1 the half length in y at low z, //
124 // LB1 the half length in x at low z and y low edge, LB2 the half length //
125 // in x at low z and y high edge, TH1 the angle w.r.t. the y axis from the//
126 // centre of low y edge to the centre of the high y edge, and H2, LB2, //
127 // LH2, TH2, the corresponding quantities at high z. //
128 // //
129 ////////////////////////////////////////////////////////////////////////////
130 
131 class TGeoTrap : public TGeoArb8
132 {
133 protected:
134  // data members
135  Double_t fTheta; // theta angle
136  Double_t fPhi; // phi angle
137  Double_t fH1; // half length in y at low z
138  Double_t fBl1; // half length in x at low z and y low edge
139  Double_t fTl1; // half length in x at low z and y high edge
140  Double_t fAlpha1;// angle between centers of x edges an y axis at low z
141  Double_t fH2; // half length in y at high z
142  Double_t fBl2; // half length in x at high z and y low edge
143  Double_t fTl2; // half length in x at high z and y high edge
144  Double_t fAlpha2;// angle between centers of x edges an y axis at low z
145 
146 public:
147  // constructors
148  TGeoTrap();
149  TGeoTrap(Double_t dz, Double_t theta, Double_t phi);
150  TGeoTrap(Double_t dz, Double_t theta, Double_t phi, Double_t h1,
151  Double_t bl1, Double_t tl1, Double_t alpha1, Double_t h2, Double_t bl2,
152  Double_t tl2, Double_t alpha2);
153  TGeoTrap(const char *name, Double_t dz, Double_t theta, Double_t phi, Double_t h1,
154  Double_t bl1, Double_t tl1, Double_t alpha1, Double_t h2, Double_t bl2,
155  Double_t tl2, Double_t alpha2);
156  // destructor
157  virtual ~TGeoTrap();
158  virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1,
159  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
160  virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
161  virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1,
162  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
163  virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
164  virtual TGeoVolume *Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv,
165  Double_t start, Double_t step);
166  Double_t GetTheta() const {return fTheta;}
167  Double_t GetPhi() const {return fPhi;}
168  Double_t GetH1() const {return fH1;}
169  Double_t GetBl1() const {return fBl1;}
170  Double_t GetTl1() const {return fTl1;}
171  Double_t GetAlpha1() const {return fAlpha1;}
172  Double_t GetH2() const {return fH2;}
173  Double_t GetBl2() const {return fBl2;}
174  Double_t GetTl2() const {return fTl2;}
175  Double_t GetAlpha2() const {return fAlpha2;}
176  virtual TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const;
177  virtual void SetDimensions(Double_t *param);
178  virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const;
179  virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const;
180  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
181 
182  ClassDef(TGeoTrap, 1) // G3 TRAP shape
183 };
184 
185 ////////////////////////////////////////////////////////////////////////////
186 // //
187 // TGeoGtra //
188 // //
189 // Gtra is a twisted general trapezoid, i.e. one for which the faces perpendicular//
190 // to z are trapezia and their centres are not the same x, y. It has 12 //
191 // parameters: the half length in z, the polar angles from the centre of //
192 // the face at low z to that at high z, the twist angle, H1 the half length in y at low z, //
193 // LB1 the half length in x at low z and y low edge, LB2 the half length //
194 // in x at low z and y high edge, TH1 the angle w.r.t. the y axis from the//
195 // centre of low y edge to the centre of the high y edge, and H2, LB2, //
196 // LH2, TH2, the corresponding quantities at high z. //
197 // //
198 ////////////////////////////////////////////////////////////////////////////
199 
200 class TGeoGtra : public TGeoTrap
201 {
202 protected:
203  // data members
204  Double_t fTwistAngle; // twist angle in degrees
205 public:
206  // constructors
207  TGeoGtra();
208  TGeoGtra(Double_t dz, Double_t theta, Double_t phi, Double_t twist, Double_t h1,
209  Double_t bl1, Double_t tl1, Double_t alpha1, Double_t h2, Double_t bl2,
210  Double_t tl2, Double_t alpha2);
211  TGeoGtra(const char *name, Double_t dz, Double_t theta, Double_t phi, Double_t twist, Double_t h1,
212  Double_t bl1, Double_t tl1, Double_t alpha1, Double_t h2, Double_t bl2,
213  Double_t tl2, Double_t alpha2);
214  // destructor
215  virtual ~TGeoGtra();
216  virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1,
217  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
218  virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
219  virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1,
220  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
221  virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
222  virtual TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const;
224  virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const;
225  virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const;
226  virtual void SetDimensions(Double_t *param);
227  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
228 
229  ClassDef(TGeoGtra, 1) // G3 GTRA shape
230 };
231 
232 #endif
void SetDz(Double_t dz)
Definition: TGeoArb8.h:108
virtual void SetPoints(Double_t *points) const
Creates arb8 mesh points.
Definition: TGeoArb8.cxx:1185
Double_t SafetyToFace(const Double_t *point, Int_t iseg, Bool_t in) const
Estimate safety to lateral plane defined by segment iseg in range [0,3] Might be negative: plane seen...
Definition: TGeoArb8.cxx:1088
void SetPlaneVertices(Double_t zpl, Double_t *vertices) const
Computes intersection points between plane at zpl and non-horizontal edges.
Definition: TGeoArb8.cxx:1155
static double p3(double t, double a, double b, double c, double d)
virtual ~TGeoGtra()
Destructor.
Definition: TGeoArb8.cxx:1906
virtual Bool_t IsCylType() const
Definition: TGeoArb8.h:96
virtual TGeoVolume * Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)
Divide this shape along one axis.
Definition: TGeoArb8.cxx:787
float Float_t
Definition: RtypesCore.h:53
const char Option_t
Definition: RtypesCore.h:62
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
Definition: TGeoArb8.cxx:1722
Double_t GetBl2() const
Definition: TGeoArb8.h:173
virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const
Compute safe distance from each of the points in the input array.
Definition: TGeoArb8.cxx:1285
virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const
Computes the closest distance from given point to this shape.
Definition: TGeoArb8.cxx:1984
#define BIT(n)
Definition: Rtypes.h:120
virtual void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const
Check the inside status for each of the points in the array.
Definition: TGeoArb8.cxx:1249
Double_t fBl1
Definition: TGeoArb8.h:138
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
virtual Bool_t GetPointsOnFacet(Int_t, Int_t, Double_t *) const
Fills array with n random points located on the surface of indexed facet.
Definition: TGeoArb8.cxx:919
Double_t GetBl1() const
Definition: TGeoArb8.h:169
Short_t Abs(Short_t d)
Definition: TMathBase.h:110
Double_t GetTwist(Int_t iseg) const
Get twist for segment I in range [0,3].
Definition: TGeoArb8.cxx:344
Double_t GetH2() const
Definition: TGeoArb8.h:172
virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
Compute distance from inside point to surface of the trapezoid.
Definition: TGeoArb8.cxx:1408
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
Definition: TGeoArb8.cxx:1992
virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const
Compute safe distance from each of the points in the input array.
Definition: TGeoArb8.cxx:1809
Double_t x[n]
Definition: legend1.C:17
Double_t GetTl1() const
Definition: TGeoArb8.h:170
#define ClassDef(name, id)
Definition: Rtypes.h:254
Double_t DistToPlane(const Double_t *point, const Double_t *dir, Int_t ipl, Bool_t in) const
Computes distance to plane ipl : ipl=0 : points 0,4,1,5 ipl=1 : points 1,5,2,6 ipl=2 : points 2...
Definition: TGeoArb8.cxx:512
static double p2(double t, double a, double b, double c)
virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const
Compute distance from array of input points having directions specisied by dirs. Store output in dist...
Definition: TGeoArb8.cxx:1799
virtual void SetVertex(Int_t vnum, Double_t x, Double_t y)
Set values for a given vertex.
Definition: TGeoArb8.cxx:1209
Double_t GetTwistAngle() const
Definition: TGeoArb8.h:223
Double_t fTl1
Definition: TGeoArb8.h:139
Double_t fAlpha1
Definition: TGeoArb8.h:140
virtual void ComputeBBox()
Computes bounding box for an Arb8 shape.
Definition: TGeoArb8.cxx:226
TH1F * h1
Definition: legend1.C:5
Double_t GetH1() const
Definition: TGeoArb8.h:168
virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
Compute distance from inside point to surface of the shape.
Definition: TGeoArb8.cxx:1928
char * out
Definition: TBase64.cxx:29
virtual void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize)
Compute the normal for an array o points so that norm.dot.dir is positive Input: Arrays of point coor...
Definition: TGeoArb8.cxx:1259
virtual Int_t GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const
Fills real parameters of a positioned box inside this arb8. Returns 0 if successfull.
Definition: TGeoArb8.cxx:834
Double_t fDz
Definition: TGeoArb8.h:54
virtual TGeoShape * GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const
In case shape has some negative parameters, these have to be computed in order to fit the mother...
Definition: TGeoArb8.cxx:1628
virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm)
Compute normal to closest surface from POINT.
Definition: TGeoArb8.cxx:423
Double_t GetAlpha2() const
Definition: TGeoArb8.h:175
point * points
Definition: X3DBuffer.c:20
virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const
Compute safe distance from each of the points in the input array.
Definition: TGeoArb8.cxx:2083
virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
Compute distance from outside point to surface of the trapezoid.
Definition: TGeoArb8.cxx:1461
virtual TGeoShape * GetMakeRuntimeShape(TGeoShape *, TGeoMatrix *) const
In case shape has some negative parameters, these has to be computed in order to fit the mother...
Definition: TGeoArb8.h:92
virtual void InspectShape() const
Prints shape parameters.
Definition: TGeoArb8.cxx:995
virtual ~TGeoTrap()
destructor
Definition: TGeoArb8.cxx:1401
virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
Compute distance from inside point to surface of the shape.
Definition: TGeoArb8.cxx:661
virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const
Compute distance from array of input points having directions specisied by dirs. Store output in dist...
Definition: TGeoArb8.cxx:2073
static Bool_t InsidePolygon(Double_t x, Double_t y, Double_t *pts)
Finds if a point in XY plane is inside the polygon defines by PTS.
Definition: TGeoArb8.cxx:975
virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
Compute distance from inside point to surface of the shape.
Definition: TGeoArb8.cxx:1913
EGeoArb8Type
Definition: TGeoArb8.h:47
Double_t fPhi
Definition: TGeoArb8.h:136
Double_t fAlpha2
Definition: TGeoArb8.h:144
virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const
Computes the closest distance from given point to this shape.
Definition: TGeoArb8.cxx:1010
void ComputeTwist()
Computes tangents of twist angles (angles between projections on XY plane of corresponding -dz +dz ed...
Definition: TGeoArb8.cxx:252
Double_t fTheta
Definition: TGeoArb8.h:135
Double_t fH2
Definition: TGeoArb8.h:141
Bool_t IsTwisted() const
Definition: TGeoArb8.h:100
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
Definition: TGeoArb8.cxx:1127
Double_t E()
Definition: TMath.h:54
virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const
Compute distance from array of input points having directions specisied by dirs. Store output in dist...
Definition: TGeoArb8.cxx:2065
static Bool_t IsSamePoint(const Double_t *p1, const Double_t *p2)
Definition: TGeoArb8.h:97
static double p1(double t, double a, double b)
virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
Computes distance from outside point to surface of the shape.
Definition: TGeoArb8.cxx:633
virtual Bool_t Contains(const Double_t *point) const
Test if point is inside this shape.
Definition: TGeoArb8.cxx:489
Double_t GetClosestEdge(const Double_t *point, Double_t *vert, Int_t &isegment) const
Get index of the edge of the quadrilater represented by vert closest to point.
Definition: TGeoArb8.cxx:356
virtual Int_t GetByteCount() const
Definition: TGeoArb8.h:87
virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const
Compute distance from array of input points having directions specisied by dirs. Store output in dist...
Definition: TGeoArb8.cxx:1791
virtual void Sizeof3D() const
Fill size of this 3-D object.
Definition: TGeoArb8.cxx:1226
Double_t fTwistAngle
Definition: TGeoArb8.h:204
double Double_t
Definition: RtypesCore.h:55
virtual Double_t Capacity() const
Computes capacity of the shape in [length^3].
Definition: TGeoArb8.cxx:209
virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const
Compute distance from array of input points having directions specisied by dirs. Store output in dist...
Definition: TGeoArb8.cxx:1267
Double_t y[n]
Definition: legend1.C:17
Double_t GetTl2() const
Definition: TGeoArb8.h:174
static Double_t Big()
Definition: TGeoShape.h:98
static void GetPlaneNormal(Double_t *p1, Double_t *p2, Double_t *p3, Double_t *norm)
Computes normal to plane defined by P1, P2 and P3.
Definition: TGeoArb8.cxx:891
virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const
Computes the closest distance from given point to this shape.
Definition: TGeoArb8.cxx:1663
Double_t GetTheta() const
Definition: TGeoArb8.h:166
#define name(a, b)
Definition: linkTestLib0.cpp:5
virtual ~TGeoArb8()
Destructor.
Definition: TGeoArb8.cxx:201
Double_t fH1
Definition: TGeoArb8.h:137
virtual void GetBoundingCylinder(Double_t *param) const
— Fill vector param[4] with the bounding cylinder parameters.
Definition: TGeoArb8.cxx:816
Double_t GetAlpha1() const
Definition: TGeoArb8.h:171
Double_t fTl2
Definition: TGeoArb8.h:143
TGeoArb8 & operator=(const TGeoArb8 &)
assignment operator
Definition: TGeoArb8.cxx:184
Double_t fBl2
Definition: TGeoArb8.h:142
Double_t GetPhi() const
Definition: TGeoArb8.h:167
virtual void SetDimensions(Double_t *param)
Set all arb8 params in one step.
Definition: TGeoArb8.cxx:1171
virtual void SetDimensions(Double_t *param)
Set all arb8 params in one step.
Definition: TGeoArb8.cxx:2027
virtual TGeoVolume * Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)
— Divide this trapezoid shape belonging to volume "voldiv" into ndiv volumes called divname...
Definition: TGeoArb8.cxx:1580
const Bool_t kTRUE
Definition: Rtypes.h:91
double norm(double *x, double *p)
Definition: unuranDistr.cxx:40
virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const
Compute distance from array of input points having directions specisied by dirs. Store output in dist...
Definition: TGeoArb8.cxx:1275
Double_t GetDz() const
Definition: TGeoArb8.h:90
virtual void SetDimensions(Double_t *param)
Set all arb8 params in one step.
Definition: TGeoArb8.cxx:1755
Double_t * fTwist
Definition: TGeoArb8.h:55
virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const
Get shape range on a given axis.
Definition: TGeoArb8.cxx:797
virtual TGeoShape * GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const
In case shape has some negative parameters, these has to be computed in order to fit the mother...
Definition: TGeoArb8.cxx:1944
Double_t * GetVertices()
Definition: TGeoArb8.h:94