Logo ROOT  
Reference Guide
TGeoCone.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_TGeoCone
13#define ROOT_TGeoCone
14
15#include "TGeoBBox.h"
16
17class TGeoCone : public TGeoBBox
18{
19protected :
20// data members
21 Double_t fDz; // half length
22 Double_t fRmin1; // inner radius at -dz
23 Double_t fRmax1; // outer radius at -dz
24 Double_t fRmin2; // inner radius at +dz
25 Double_t fRmax2; // outer radius at +dz
26// methods
27 TGeoCone(const TGeoCone&) = delete;
28 TGeoCone& operator=(const TGeoCone&) = delete;
29
30public:
31 // constructors
32 TGeoCone();
33 TGeoCone(Double_t dz, Double_t rmin1, Double_t rmax1,
34 Double_t rmin2, Double_t rmax2);
35 TGeoCone(const char *name, Double_t dz, Double_t rmin1, Double_t rmax1,
36 Double_t rmin2, Double_t rmax2);
37 TGeoCone(Double_t *params);
38 // destructor
39 virtual ~TGeoCone();
40 // methods
41
42 virtual Double_t Capacity() const;
43 static Double_t Capacity(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2);
44 virtual void ComputeBBox();
45 virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm);
46 virtual void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize);
47 static void ComputeNormalS(const Double_t *point, const Double_t *dir, Double_t *norm,
48 Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2);
49 virtual Bool_t Contains(const Double_t *point) const;
50 virtual void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const;
51 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
52 static void DistToCone(const Double_t *point, const Double_t *dir, Double_t dz, Double_t r1, Double_t r2, Double_t &b, Double_t &delta);
53 static Double_t DistFromInsideS(const Double_t *point, const Double_t *dir, Double_t dz,
54 Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2);
55 virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1,
56 Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
57 virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
58 static Double_t DistFromOutsideS(const Double_t *point, const Double_t *dir, Double_t dz,
59 Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2);
60 virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1,
61 Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
62 virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
63 virtual TGeoVolume *Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv,
64 Double_t start, Double_t step);
65
66 virtual const char *GetAxisName(Int_t iaxis) const;
67 virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const;
68 virtual void GetBoundingCylinder(Double_t *param) const;
69 virtual Int_t GetByteCount() const {return 56;}
70 virtual const TBuffer3D &GetBuffer3D(Int_t reqSections, Bool_t localFrame) const;
71 virtual Double_t GetDz() const {return fDz;}
72 virtual TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const;
73 virtual void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const;
74 virtual Int_t GetNmeshVertices() const;
75 virtual Bool_t GetPointsOnSegments(Int_t npoints, Double_t *array) const;
76 virtual Double_t GetRmin1() const {return fRmin1;}
77 virtual Double_t GetRmax1() const {return fRmax1;}
78 virtual Double_t GetRmin2() const {return fRmin2;}
79 virtual Double_t GetRmax2() const {return fRmax2;}
80
81 virtual void InspectShape() const;
82 virtual Bool_t IsCylType() const {return kTRUE;}
83 virtual TBuffer3D *MakeBuffer3D() const;
84 virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const;
85 virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const;
86 static Double_t SafetyS(const Double_t *point, Bool_t in, Double_t dz, Double_t rmin1, Double_t rmax1,
87 Double_t rmin2, Double_t rmax2, Int_t skipz=0);
88 virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
89 void SetConeDimensions(Double_t dz, Double_t rmin1, Double_t rmax1,
90 Double_t rmin2, Double_t rmax2);
91 virtual void SetDimensions(Double_t *param);
92 virtual void SetPoints(Double_t *points) const;
93 virtual void SetPoints(Float_t *points) const;
94 virtual void SetSegsAndPols(TBuffer3D &buffer) const;
95 virtual void Sizeof3D() const;
96
97 ClassDef(TGeoCone, 1) // conical tube class
98
99};
100
101class TGeoConeSeg : public TGeoCone
102{
103protected:
104 // data members
105 Double_t fPhi1; // first phi limit
106 Double_t fPhi2; // second phi limit
107 // Transient trigonometric data
108 Double_t fS1; // sin(phi1)
109 Double_t fC1; // cos(phi1)
110 Double_t fS2; // sin(phi2)
111 Double_t fC2; // cos(phi2)
112 Double_t fSm; // sin(0.5*(phi1+phi2))
113 Double_t fCm; // cos(0.5*(phi1+phi2))
114 Double_t fCdfi; // cos(0.5*(phi1-phi2))
115
116 void InitTrigonometry();
117
118public:
119 // constructors
120 TGeoConeSeg();
121 TGeoConeSeg(Double_t dz, Double_t rmin1, Double_t rmax1,
122 Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2);
123 TGeoConeSeg(const char *name, Double_t dz, Double_t rmin1, Double_t rmax1,
124 Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2);
125 TGeoConeSeg(Double_t *params);
126 // destructor
127 virtual ~TGeoConeSeg();
128 // methods
129 virtual void AfterStreamer();
130 virtual Double_t Capacity() const;
131 static Double_t Capacity(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2);
132 virtual void ComputeBBox();
133 virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm);
134 virtual void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize);
135 static void ComputeNormalS(const Double_t *point, const Double_t *dir, Double_t *norm,
136 Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2,
138 virtual Bool_t Contains(const Double_t *point) const;
139 virtual void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const;
140
141 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
142 static Double_t DistToCons(const Double_t *point, const Double_t *dir, Double_t r1, Double_t z1, Double_t r2, Double_t z2, Double_t phi1, Double_t phi2);
143 static Double_t DistFromInsideS(const Double_t *point, const Double_t *dir, Double_t dz, Double_t rmin1, Double_t rmax1,
145 virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1,
146 Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
147 virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
148 static Double_t DistFromOutsideS(const Double_t *point, const Double_t *dir, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2,
150 virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1,
151 Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
152 virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
153 virtual TGeoVolume *Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv,
154 Double_t start, Double_t step);
155 virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const;
156 virtual void GetBoundingCylinder(Double_t *param) const;
157 virtual const TBuffer3D &GetBuffer3D(Int_t reqSections, Bool_t localFrame) const;
158 virtual Int_t GetByteCount() const {return 64;}
159 virtual TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const;
160 virtual void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const;
161 virtual Int_t GetNmeshVertices() const;
162 virtual Bool_t GetPointsOnSegments(Int_t npoints, Double_t *array) const;
163 Double_t GetPhi1() const {return fPhi1;}
164 Double_t GetPhi2() const {return fPhi2;}
165 virtual void InspectShape() const;
166 virtual TBuffer3D *MakeBuffer3D() const;
167 virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const;
168 virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const;
169 static Double_t SafetyS(const Double_t *point, Bool_t in, Double_t dz, Double_t rmin1, Double_t rmax1,
170 Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2, Int_t skipz=0);
171 virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
172 void SetConsDimensions(Double_t dz, Double_t rmin1, Double_t rmax1,
173 Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2);
174 virtual void SetDimensions(Double_t *param);
175 virtual void SetPoints(Double_t *points) const;
176 virtual void SetPoints(Float_t *points) const;
177 virtual void SetSegsAndPols(TBuffer3D &buffer) const;
178 virtual void Sizeof3D() const;
179
180 ClassDef(TGeoConeSeg, 2) // conical tube segment class
181};
182
183#endif
int Int_t
Definition: CPyCppyy.h:43
#define b(i)
Definition: RSha256.hxx:100
#define s1(x)
Definition: RSha256.hxx:91
bool Bool_t
Definition: RtypesCore.h:63
double Double_t
Definition: RtypesCore.h:59
float Float_t
Definition: RtypesCore.h:57
const Bool_t kTRUE
Definition: RtypesCore.h:100
const char Option_t
Definition: RtypesCore.h:66
#define ClassDef(name, id)
Definition: Rtypes.h:325
point * points
Definition: X3DBuffer.c:22
Generic 3D primitive description class.
Definition: TBuffer3D.h:18
Box class.
Definition: TGeoBBox.h:18
A phi segment of a conical tube.
Definition: TGeoCone.h:102
static void ComputeNormalS(const Double_t *point, const Double_t *dir, Double_t *norm, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Double_t c1, Double_t s1, Double_t c2, Double_t s2)
Compute normal to closest surface from POINT.
Definition: TGeoCone.cxx:1405
Double_t fCdfi
Definition: TGeoCone.h:114
virtual Bool_t Contains(const Double_t *point) const
test if point is inside this sphere
Definition: TGeoCone.cxx:1452
virtual TBuffer3D * MakeBuffer3D() const
Creates a TBuffer3D describing this shape.
Definition: TGeoCone.cxx:2064
virtual ~TGeoConeSeg()
destructor
Definition: TGeoCone.cxx:1256
virtual Int_t GetByteCount() const
Definition: TGeoCone.h:158
Double_t fCm
Definition: TGeoCone.h:113
virtual void GetBoundingCylinder(Double_t *param) const
Fill vector param[4] with the bounding cylinder parameters.
Definition: TGeoCone.cxx:2002
static Double_t DistFromOutsideS(const Double_t *point, const Double_t *dir, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Double_t c1, Double_t s1, Double_t c2, Double_t s2, Double_t cm, Double_t sm, Double_t cdfi)
compute distance from outside point to surface of arbitrary tube
Definition: TGeoCone.cxx:1610
virtual Double_t Capacity() const
Computes capacity of the shape in [length^3].
Definition: TGeoCone.cxx:1289
virtual Int_t GetNmeshVertices() const
Return number of vertices of the mesh representation.
Definition: TGeoCone.cxx:2352
TGeoConeSeg()
Default constructor.
Definition: TGeoCone.cxx:1199
virtual Bool_t GetPointsOnSegments(Int_t npoints, Double_t *array) const
Fills array with n random points located on the line segments of the shape mesh.
Definition: TGeoCone.cxx:2402
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 tube segment
Definition: TGeoCone.cxx:1594
virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm)
Compute normal to closest surface from POINT.
Definition: TGeoCone.cxx:1354
Double_t GetPhi1() const
Definition: TGeoCone.h:163
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
Definition: TGeoCone.cxx:2199
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: TGeoCone.cxx:2457
virtual void Sizeof3D() const
Fill size of this 3-D object.
Definition: TGeoCone.cxx:2362
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 specified by dirs. Store output in dist...
Definition: TGeoCone.cxx:2473
Double_t fC1
Definition: TGeoCone.h:109
void InitTrigonometry()
Init frequently used trigonometric values.
Definition: TGeoCone.cxx:1271
virtual void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const
Returns numbers of vertices, segments and polygons composing the shape mesh.
Definition: TGeoCone.cxx:2341
static Double_t SafetyS(const Double_t *point, Bool_t in, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2, Int_t skipz=0)
Static method to compute the closest distance from given point to this shape.
Definition: TGeoCone.cxx:2185
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
compute closest distance from point px,py to each corner
Definition: TGeoCone.cxx:1903
virtual void SetDimensions(Double_t *param)
Set dimensions of the cone segment from an array.
Definition: TGeoCone.cxx:2236
Double_t fPhi1
Definition: TGeoCone.h:105
virtual void InspectShape() const
print shape parameters
Definition: TGeoCone.cxx:2046
void SetConsDimensions(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2)
Set dimensions of the cone segment.
Definition: TGeoCone.cxx:2217
Double_t fS2
Definition: TGeoCone.h:110
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 tube
Definition: TGeoCone.cxx:1885
virtual void AfterStreamer()
Function called after streaming an object of this class.
Definition: TGeoCone.cxx:1263
Double_t fS1
Definition: TGeoCone.h:108
virtual void SetPoints(Double_t *points) const
Create cone segment mesh points.
Definition: TGeoCone.cxx:2251
static Double_t DistFromInsideS(const Double_t *point, const Double_t *dir, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Double_t c1, Double_t s1, Double_t c2, Double_t s2, Double_t cm, Double_t sm, Double_t cdfi)
compute distance from inside point to surface of the tube segment
Definition: TGeoCone.cxx:1544
virtual TGeoVolume * Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)
Divide this cone segment shape belonging to volume "voldiv" into ndiv volumes called divname,...
Definition: TGeoCone.cxx:1918
static Double_t DistToCons(const Double_t *point, const Double_t *dir, Double_t r1, Double_t z1, Double_t r2, Double_t z2, Double_t phi1, Double_t phi2)
Static method to compute distance to a conical surface with :
Definition: TGeoCone.cxx:1472
Double_t GetPhi2() const
Definition: TGeoCone.h:164
virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const
Get range of shape for a given axis.
Definition: TGeoCone.cxx:1978
Double_t fSm
Definition: TGeoCone.h:112
virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const
computes the closest distance from given point to this shape, according to option.
Definition: TGeoCone.cxx:2172
virtual void ComputeBBox()
compute bounding box of the tube segment
Definition: TGeoCone.cxx:1308
virtual void SetSegsAndPols(TBuffer3D &buffer) const
Fill TBuffer3D structure for segments and polygons.
Definition: TGeoCone.cxx:2087
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: TGeoCone.cxx:2483
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 specified by dirs. Store output in dist...
Definition: TGeoCone.cxx:2465
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: TGeoCone.cxx:2447
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame) const
Fills a static 3D buffer and returns a reference.
Definition: TGeoCone.cxx:2369
Double_t fPhi2
Definition: TGeoCone.h:106
Double_t fC2
Definition: TGeoCone.h:111
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: TGeoCone.cxx:2017
Conical tube class.
Definition: TGeoCone.h:18
virtual void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const
Returns numbers of vertices, segments and polygons composing the shape mesh.
Definition: TGeoCone.cxx:1090
virtual const char * GetAxisName(Int_t iaxis) const
Returns name of axis IAXIS.
Definition: TGeoCone.cxx:617
virtual void Sizeof3D() const
Fill size of this 3-D object.
Definition: TGeoCone.cxx:1111
virtual Int_t GetByteCount() const
Definition: TGeoCone.h:69
virtual Double_t GetRmax2() const
Definition: TGeoCone.h:79
virtual void SetDimensions(Double_t *param)
Set cone dimensions from an array.
Definition: TGeoCone.cxx:989
virtual void GetBoundingCylinder(Double_t *param) const
Fill vector param[4] with the bounding cylinder parameters.
Definition: TGeoCone.cxx:657
static void ComputeNormalS(const Double_t *point, const Double_t *dir, Double_t *norm, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)
Compute normal to closest surface from POINT.
Definition: TGeoCone.cxx:223
void SetConeDimensions(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)
Set cone dimensions.
Definition: TGeoCone.cxx:935
static Double_t DistFromInsideS(const Double_t *point, const Double_t *dir, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)
Compute distance from inside point to surface of the cone (static) Boundary safe algorithm.
Definition: TGeoCone.cxx:274
virtual ~TGeoCone()
destructor
Definition: TGeoCone.cxx:163
virtual Double_t GetDz() const
Definition: TGeoCone.h:71
Double_t fRmax1
Definition: TGeoCone.h:23
Double_t fRmax2
Definition: TGeoCone.h:25
virtual void ComputeBBox()
compute bounding box of the sphere
Definition: TGeoCone.cxx:170
virtual Double_t Capacity() const
Computes capacity of the shape in [length^3].
Definition: TGeoCone.cxx:145
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: TGeoCone.cxx:1189
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
compute closest distance from point px,py to each corner
Definition: TGeoCone.cxx:545
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 specified by dirs. Store output in dist...
Definition: TGeoCone.cxx:1171
virtual Bool_t Contains(const Double_t *point) const
test if point is inside this cone
Definition: TGeoCone.cxx:260
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: TGeoCone.cxx:1163
virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const
Get range of shape for a given axis.
Definition: TGeoCone.cxx:634
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame) const
Fills a static 3D buffer and returns a reference.
Definition: TGeoCone.cxx:1118
virtual Bool_t IsCylType() const
Definition: TGeoCone.h:82
virtual Int_t GetNmeshVertices() const
Return number of vertices of the mesh representation.
Definition: TGeoCone.cxx:1101
virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm)
Compute normal to closest surface from POINT.
Definition: TGeoCone.cxx:180
virtual Double_t GetRmin2() const
Definition: TGeoCone.h:78
static Double_t DistFromOutsideS(const Double_t *point, const Double_t *dir, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)
Compute distance from outside point to surface of the tube Boundary safe algorithm.
Definition: TGeoCone.cxx:360
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 specified by dirs. Store output in dist...
Definition: TGeoCone.cxx:1179
Double_t fDz
Definition: TGeoCone.h:21
TGeoCone()
Default constructor.
Definition: TGeoCone.cxx:84
virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const
computes the closest distance from given point to this shape, according to option.
Definition: TGeoCone.cxx:867
TGeoCone(const TGeoCone &)=delete
TGeoCone & operator=(const TGeoCone &)=delete
virtual Double_t GetRmin1() const
Definition: TGeoCone.h:76
static void DistToCone(const Double_t *point, const Double_t *dir, Double_t dz, Double_t r1, Double_t r2, Double_t &b, Double_t &delta)
Static method to compute distance to a conical surface with :
Definition: TGeoCone.cxx:510
static Double_t SafetyS(const Double_t *point, Bool_t in, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Int_t skipz=0)
computes the closest distance from given point to this shape, according to option.
Definition: TGeoCone.cxx:884
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 cone Boundary safe algorithm.
Definition: TGeoCone.cxx:345
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
Definition: TGeoCone.cxx:919
virtual TGeoVolume * Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)
Divide this cone shape belonging to volume "voldiv" into ndiv volumes called divname,...
Definition: TGeoCone.cxx:560
virtual TBuffer3D * MakeBuffer3D() const
Creates a TBuffer3D describing this shape.
Definition: TGeoCone.cxx:765
virtual Bool_t GetPointsOnSegments(Int_t npoints, Double_t *array) const
Fills array with n random points located on the line segments of the shape mesh.
Definition: TGeoCone.cxx:702
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 tube
Definition: TGeoCone.cxx:490
Double_t fRmin1
Definition: TGeoCone.h:22
Double_t fRmin2
Definition: TGeoCone.h:24
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: TGeoCone.cxx:1153
virtual void SetSegsAndPols(TBuffer3D &buffer) const
Fill TBuffer3D structure for segments and polygons.
Definition: TGeoCone.cxx:787
virtual void SetPoints(Double_t *points) const
Create cone mesh points.
Definition: TGeoCone.cxx:1002
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: TGeoCone.cxx:671
virtual Double_t GetRmax1() const
Definition: TGeoCone.h:77
virtual void InspectShape() const
print shape parameters
Definition: TGeoCone.cxx:749
Geometrical transformation package.
Definition: TGeoMatrix.h:41
Base abstract class for all shapes.
Definition: TGeoShape.h:26
static Double_t Big()
Definition: TGeoShape.h:88
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
Definition: TGeoVolume.h:49
return c1
Definition: legend1.C:41
return c2
Definition: legend2.C:14
static const std::string name("name")
static constexpr double cm