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 
17 class TGeoCone : public TGeoBBox
18 {
19 protected :
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 public:
28  // constructors
30  TGeoCone(Double_t dz, Double_t rmin1, Double_t rmax1,
31  Double_t rmin2, Double_t rmax2);
32  TGeoCone(const char *name, Double_t dz, Double_t rmin1, Double_t rmax1,
33  Double_t rmin2, Double_t rmax2);
34  TGeoCone(Double_t *params);
35  // destructor
36  virtual ~TGeoCone();
37  // methods
38 
39  virtual Double_t Capacity() const;
40  static Double_t Capacity(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2);
41  virtual void ComputeBBox();
42  virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm);
43  virtual void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize);
44  static void ComputeNormalS(const Double_t *point, const Double_t *dir, Double_t *norm,
45  Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2);
46  virtual Bool_t Contains(const Double_t *point) const;
47  virtual void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const;
48  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
49  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);
50  static Double_t DistFromInsideS(const Double_t *point, const Double_t *dir, Double_t dz,
51  Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2);
52  virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1,
53  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
54  virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
55  static Double_t DistFromOutsideS(const Double_t *point, const Double_t *dir, Double_t dz,
56  Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2);
57  virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1,
58  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
59  virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
60  virtual TGeoVolume *Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv,
61  Double_t start, Double_t step);
62 
63  virtual const char *GetAxisName(Int_t iaxis) const;
64  virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const;
65  virtual void GetBoundingCylinder(Double_t *param) const;
66  virtual Int_t GetByteCount() const {return 56;}
67  virtual const TBuffer3D &GetBuffer3D(Int_t reqSections, Bool_t localFrame) const;
68  virtual Double_t GetDz() const {return fDz;}
69  virtual TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const;
70  virtual void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const;
71  virtual Int_t GetNmeshVertices() const;
72  virtual Bool_t GetPointsOnSegments(Int_t npoints, Double_t *array) const;
73  virtual Double_t GetRmin1() const {return fRmin1;}
74  virtual Double_t GetRmax1() const {return fRmax1;}
75  virtual Double_t GetRmin2() const {return fRmin2;}
76  virtual Double_t GetRmax2() const {return fRmax2;}
77 
78  virtual void InspectShape() const;
79  virtual Bool_t IsCylType() const {return kTRUE;}
80  virtual TBuffer3D *MakeBuffer3D() const;
81  virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const;
82  virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const;
83  static Double_t SafetyS(const Double_t *point, Bool_t in, Double_t dz, Double_t rmin1, Double_t rmax1,
84  Double_t rmin2, Double_t rmax2, Int_t skipz=0);
85  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
86  void SetConeDimensions(Double_t dz, Double_t rmin1, Double_t rmax1,
87  Double_t rmin2, Double_t rmax2);
88  virtual void SetDimensions(Double_t *param);
89  virtual void SetPoints(Double_t *points) const;
90  virtual void SetPoints(Float_t *points) const;
91  virtual void SetSegsAndPols(TBuffer3D &buffer) const;
92  virtual void Sizeof3D() const;
93 
94  ClassDef(TGeoCone, 1) // conical tube class
95 
96 };
97 
98 class TGeoConeSeg : public TGeoCone
99 {
100 protected:
101  // data members
102  Double_t fPhi1; // first phi limit
103  Double_t fPhi2; // second phi limit
104  // Transient trigonometric data
105  Double_t fS1; // sin(phi1)
106  Double_t fC1; // cos(phi1)
107  Double_t fS2; // sin(phi2)
108  Double_t fC2; // cos(phi2)
109  Double_t fSm; // sin(0.5*(phi1+phi2))
110  Double_t fCm; // cos(0.5*(phi1+phi2))
111  Double_t fCdfi; // cos(0.5*(phi1-phi2))
112 
113  void InitTrigonometry();
114 
115 public:
116  // constructors
117  TGeoConeSeg();
118  TGeoConeSeg(Double_t dz, Double_t rmin1, Double_t rmax1,
119  Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2);
120  TGeoConeSeg(const char *name, Double_t dz, Double_t rmin1, Double_t rmax1,
121  Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2);
122  TGeoConeSeg(Double_t *params);
123  // destructor
124  virtual ~TGeoConeSeg();
125  // methods
126  virtual void AfterStreamer();
127  virtual Double_t Capacity() const;
128  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);
129  virtual void ComputeBBox();
130  virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm);
131  virtual void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize);
132  static void ComputeNormalS(const Double_t *point, const Double_t *dir, Double_t *norm,
133  Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2,
135  virtual Bool_t Contains(const Double_t *point) const;
136  virtual void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const;
137 
138  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
139  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);
140  static Double_t DistFromInsideS(const Double_t *point, const Double_t *dir, Double_t dz, Double_t rmin1, Double_t rmax1,
142  virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1,
143  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
144  virtual void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
145  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,
147  virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1,
148  Double_t step=TGeoShape::Big(), Double_t *safe=0) const;
149  virtual void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const;
150  virtual TGeoVolume *Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv,
151  Double_t start, Double_t step);
152  virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const;
153  virtual void GetBoundingCylinder(Double_t *param) const;
154  virtual const TBuffer3D &GetBuffer3D(Int_t reqSections, Bool_t localFrame) const;
155  virtual Int_t GetByteCount() const {return 64;}
156  virtual TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const;
157  virtual void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const;
158  virtual Int_t GetNmeshVertices() const;
159  virtual Bool_t GetPointsOnSegments(Int_t npoints, Double_t *array) const;
160  Double_t GetPhi1() const {return fPhi1;}
161  Double_t GetPhi2() const {return fPhi2;}
162  virtual void InspectShape() const;
163  virtual TBuffer3D *MakeBuffer3D() const;
164  virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const;
165  virtual void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const;
166  static Double_t SafetyS(const Double_t *point, Bool_t in, Double_t dz, Double_t rmin1, Double_t rmax1,
167  Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2, Int_t skipz=0);
168  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
169  void SetConsDimensions(Double_t dz, Double_t rmin1, Double_t rmax1,
170  Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2);
171  virtual void SetDimensions(Double_t *param);
172  virtual void SetPoints(Double_t *points) const;
173  virtual void SetPoints(Float_t *points) const;
174  virtual void SetSegsAndPols(TBuffer3D &buffer) const;
175  virtual void Sizeof3D() const;
176 
177  ClassDef(TGeoConeSeg, 2) // conical tube segment class
178 };
179 
180 #endif
TGeoCone::GetRmax1
virtual Double_t GetRmax1() const
Definition: TGeoCone.h:80
TGeoConeSeg::Contains_v
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
TGeoCone::SetSegsAndPols
virtual void SetSegsAndPols(TBuffer3D &buffer) const
Fill TBuffer3D structure for segments and polygons.
Definition: TGeoCone.cxx:787
TGeoCone::Capacity
virtual Double_t Capacity() const
Computes capacity of the shape in [length^3].
Definition: TGeoCone.cxx:145
TGeoCone::GetBoundingCylinder
virtual void GetBoundingCylinder(Double_t *param) const
Fill vector param[4] with the bounding cylinder parameters.
Definition: TGeoCone.cxx:657
TGeoConeSeg::GetBuffer3D
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame) const
Fills a static 3D buffer and returns a reference.
Definition: TGeoCone.cxx:2369
TGeoConeSeg::fSm
Double_t fSm
Definition: TGeoCone.h:109
TGeoCone::GetAxisRange
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
TGeoConeSeg::GetBoundingCylinder
virtual void GetBoundingCylinder(Double_t *param) const
Fill vector param[4] with the bounding cylinder parameters.
Definition: TGeoCone.cxx:2002
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TGeoConeSeg::~TGeoConeSeg
virtual ~TGeoConeSeg()
destructor
Definition: TGeoCone.cxx:1256
TGeoConeSeg::Capacity
virtual Double_t Capacity() const
Computes capacity of the shape in [length^3].
Definition: TGeoCone.cxx:1289
TGeoCone::GetByteCount
virtual Int_t GetByteCount() const
Definition: TGeoCone.h:72
TGeoConeSeg::Sizeof3D
virtual void Sizeof3D() const
Fill size of this 3-D object.
Definition: TGeoCone.cxx:2362
TGeoConeSeg::Divide
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
TGeoConeSeg::GetNmeshVertices
virtual Int_t GetNmeshVertices() const
Return number of vertices of the mesh representation.
Definition: TGeoCone.cxx:2352
TGeoCone::GetMeshNumbers
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
TGeoConeSeg::DistFromOutsideS
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
TGeoCone::Safety
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
TGeoConeSeg::ComputeBBox
virtual void ComputeBBox()
compute bounding box of the tube segment
Definition: TGeoCone.cxx:1308
TGeoCone::DistFromOutside_v
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
TGeoConeSeg::fS1
Double_t fS1
Definition: TGeoCone.h:105
TGeoConeSeg::Safety
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
Float_t
float Float_t
Definition: RtypesCore.h:57
TGeoConeSeg::fC2
Double_t fC2
Definition: TGeoCone.h:108
Int_t
int Int_t
Definition: RtypesCore.h:45
TGeoConeSeg::InspectShape
virtual void InspectShape() const
print shape parameters
Definition: TGeoCone.cxx:2046
TGeoConeSeg::InitTrigonometry
void InitTrigonometry()
Init frequently used trigonometric values.
Definition: TGeoCone.cxx:1271
TGeoConeSeg::GetPhi1
Double_t GetPhi1() const
Definition: TGeoCone.h:160
TGeoCone::MakeBuffer3D
virtual TBuffer3D * MakeBuffer3D() const
Creates a TBuffer3D describing this shape.
Definition: TGeoCone.cxx:765
TGeoConeSeg::Contains
virtual Bool_t Contains(const Double_t *point) const
test if point is inside this sphere
Definition: TGeoCone.cxx:1452
TGeoConeSeg::SetSegsAndPols
virtual void SetSegsAndPols(TBuffer3D &buffer) const
Fill TBuffer3D structure for segments and polygons.
Definition: TGeoCone.cxx:2087
TGeoCone
Definition: TGeoCone.h:17
TGeoCone::InspectShape
virtual void InspectShape() const
print shape parameters
Definition: TGeoCone.cxx:749
TGeoConeSeg::DistFromInside_v
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
TGeoBBox.h
TGeoCone::Contains_v
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
TGeoCone::ComputeNormal
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
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGeant4Unit::cm
static constexpr double cm
Definition: TGeant4SystemOfUnits.h:118
TGeoConeSeg::GetMeshNumbers
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
b
#define b(i)
Definition: RSha256.hxx:118
TGeoConeSeg::fPhi1
Double_t fPhi1
Definition: TGeoCone.h:102
bool
TGeoConeSeg::GetPhi2
Double_t GetPhi2() const
Definition: TGeoCone.h:161
TGeoConeSeg::Safety_v
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
TGeoCone::DistFromInside
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:346
TGeoConeSeg::SafetyS
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
TGeoCone::fRmax2
Double_t fRmax2
Definition: TGeoCone.h:31
TGeoCone::GetRmin2
virtual Double_t GetRmin2() const
Definition: TGeoCone.h:81
TGeoCone::DistFromOutsideS
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:361
TGeoConeSeg::fS2
Double_t fS2
Definition: TGeoCone.h:107
TGeoCone::fDz
Double_t fDz
Definition: TGeoCone.h:27
TGeoConeSeg::fC1
Double_t fC1
Definition: TGeoCone.h:106
TGeoConeSeg::TGeoConeSeg
TGeoConeSeg()
Default constructor.
Definition: TGeoCone.cxx:1199
TGeoCone::GetRmin1
virtual Double_t GetRmin1() const
Definition: TGeoCone.h:79
TBuffer3D
Definition: TBuffer3D.h:17
TGeoCone::GetDz
virtual Double_t GetDz() const
Definition: TGeoCone.h:74
TGeoConeSeg::AfterStreamer
virtual void AfterStreamer()
Function called after streaming an object of this class.
Definition: TGeoCone.cxx:1263
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TGeoShape
Definition: TGeoShape.h:25
TGeoCone::GetRmax2
virtual Double_t GetRmax2() const
Definition: TGeoCone.h:82
TGeoConeSeg::GetMakeRuntimeShape
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
TGeoCone::DistancetoPrimitive
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
compute closest distance from point px,py to each corner
Definition: TGeoCone.cxx:545
TGeoCone::SetPoints
virtual void SetPoints(Double_t *points) const
Create cone mesh points.
Definition: TGeoCone.cxx:1002
TGeoCone::GetBuffer3D
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame) const
Fills a static 3D buffer and returns a reference.
Definition: TGeoCone.cxx:1118
TGeoCone::SafetyS
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
TGeoCone::Sizeof3D
virtual void Sizeof3D() const
Fill size of this 3-D object.
Definition: TGeoCone.cxx:1111
s1
#define s1(x)
Definition: RSha256.hxx:109
TGeoConeSeg::SetDimensions
virtual void SetDimensions(Double_t *param)
Set dimensions of the cone segment from an array.
Definition: TGeoCone.cxx:2236
TGeoCone::GetAxisName
virtual const char * GetAxisName(Int_t iaxis) const
Returns name of axis IAXIS.
Definition: TGeoCone.cxx:617
TGeoCone::fRmin2
Double_t fRmin2
Definition: TGeoCone.h:30
TGeoBBox
Definition: TGeoBBox.h:17
TGeoConeSeg::SetPoints
virtual void SetPoints(Double_t *points) const
Create cone segment mesh points.
Definition: TGeoCone.cxx:2251
TGeoConeSeg::GetByteCount
virtual Int_t GetByteCount() const
Definition: TGeoCone.h:155
TGeoCone::Contains
virtual Bool_t Contains(const Double_t *point) const
test if point is inside this cone
Definition: TGeoCone.cxx:260
TGeoCone::ComputeNormal_v
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
TGeoCone::GetPointsOnSegments
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
TGeoConeSeg::MakeBuffer3D
virtual TBuffer3D * MakeBuffer3D() const
Creates a TBuffer3D describing this shape.
Definition: TGeoCone.cxx:2064
TGeoConeSeg::DistancetoPrimitive
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
compute closest distance from point px,py to each corner
Definition: TGeoCone.cxx:1903
TGeoConeSeg::DistToCons
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
TGeoCone::DistFromOutside
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:491
TGeoCone::DistFromInsideS
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
TGeoCone::GetMakeRuntimeShape
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
Double_t
double Double_t
Definition: RtypesCore.h:59
TGeoConeSeg::DistFromInsideS
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
TGeoMatrix
Definition: TGeoMatrix.h:40
TGeoConeSeg::ComputeNormal
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
TGeoConeSeg::SetConsDimensions
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
TGeoCone::SetDimensions
virtual void SetDimensions(Double_t *param)
Set cone dimensions from an array.
Definition: TGeoCone.cxx:989
TGeoCone::SavePrimitive
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
TGeoCone::ComputeBBox
virtual void ComputeBBox()
compute bounding box of the sphere
Definition: TGeoCone.cxx:170
TGeoCone::Safety_v
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
TGeoConeSeg::SavePrimitive
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
points
point * points
Definition: X3DBuffer.c:22
TGeoCone::DistFromInside_v
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
TGeoCone::fRmin1
Double_t fRmin1
Definition: TGeoCone.h:28
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGeoCone::~TGeoCone
virtual ~TGeoCone()
destructor
Definition: TGeoCone.cxx:163
TGeoCone::fRmax1
Double_t fRmax1
Definition: TGeoCone.h:29
TGeoCone::IsCylType
virtual Bool_t IsCylType() const
Definition: TGeoCone.h:85
name
char name[80]
Definition: TGX11.cxx:110
TGeoConeSeg::ComputeNormalS
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
TGeoConeSeg::ComputeNormal_v
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
c2
return c2
Definition: legend2.C:14
TGeoConeSeg
Definition: TGeoCone.h:98
TGeoConeSeg::DistFromOutside
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
TGeoCone::SetConeDimensions
void SetConeDimensions(Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)
Set cone dimensions.
Definition: TGeoCone.cxx:935
TGeoConeSeg::fCdfi
Double_t fCdfi
Definition: TGeoCone.h:111
TGeoCone::DistToCone
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:511
TGeoConeSeg::fPhi2
Double_t fPhi2
Definition: TGeoCone.h:103
TGeoConeSeg::DistFromInside
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
TGeoCone::ComputeNormalS
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
TGeoConeSeg::DistFromOutside_v
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
TGeoConeSeg::GetAxisRange
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
TGeoConeSeg::fCm
Double_t fCm
Definition: TGeoCone.h:110
TGeoShape::Big
static Double_t Big()
Definition: TGeoShape.h:88
TGeoVolume
Definition: TGeoVolume.h:44
TGeoCone::GetNmeshVertices
virtual Int_t GetNmeshVertices() const
Return number of vertices of the mesh representation.
Definition: TGeoCone.cxx:1101
TGeoConeSeg::GetPointsOnSegments
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
int
c1
return c1
Definition: legend1.C:41
TGeoCone::Divide
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
TGeoCone::TGeoCone
TGeoCone()
Default constructor.
Definition: TGeoCone.cxx:84