Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
17class TGeoPara : public TGeoBBox {
18protected:
19 // data members
20 Double_t fX; // X half-length
21 Double_t fY; // Y half-length
22 Double_t fZ; // Z half-length
23 Double_t fAlpha; // angle w.r.t Y from the center of low Y to the high Y
24 Double_t fTheta; // polar angle of segment between low and hi Z surfaces
25 Double_t fPhi; // azimuthal angle of segment between low and hi Z surfaces
26 Double_t fTxy; // tangent of XY section angle
27 Double_t fTxz; // tangent of XZ section angle
28 Double_t fTyz; // tangent of XZ section angle
29
30 // methods
31 TGeoPara(const TGeoPara &) = delete;
32 TGeoPara &operator=(const TGeoPara &) = delete;
33
34public:
35 // constructors
38 TGeoPara(const char *name, Double_t dx, Double_t dy, Double_t dz, Double_t alpha, Double_t theta, Double_t phi);
40 // destructor
41 ~TGeoPara() override;
42 // methods
43 Double_t Capacity() const override;
44 void ComputeBBox() override;
45 void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm) override;
46 void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize) override;
47 Bool_t Contains(const Double_t *point) const override;
48 void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const override;
49 Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact = 1, Double_t step = TGeoShape::Big(),
50 Double_t *safe = nullptr) const override;
51 void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize,
52 Double_t *step) const override;
53 Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact = 1,
54 Double_t step = TGeoShape::Big(), Double_t *safe = nullptr) const override;
55 void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize,
56 Double_t *step) const override;
58 Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step) override;
59 Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const override;
60 void GetBoundingCylinder(Double_t *param) const override;
61 Int_t GetByteCount() const override { return 48; }
62 Int_t
63 GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const override;
64 TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const override;
65 Int_t GetNmeshVertices() const override { return 8; }
66 Double_t GetX() const { return fX; }
67 Double_t GetY() const { return fY; }
68 Double_t GetZ() const { return fZ; }
69 Double_t GetAlpha() const { return fAlpha; }
70 Double_t GetTheta() const { return fTheta; }
71 Double_t GetPhi() const { return fPhi; }
72 Double_t GetTxy() const { return fTxy; }
73 Double_t GetTxz() const { return fTxz; }
74 Double_t GetTyz() const { return fTyz; }
75 void InspectShape() const override;
76 Bool_t IsCylType() const override { return kFALSE; }
77 Double_t Safety(const Double_t *point, Bool_t in = kTRUE) const override;
78 void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const override;
79 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
80 void SetDimensions(Double_t *param) override;
81 void SetPoints(Double_t *points) const override;
82 void SetPoints(Float_t *points) const override;
83 void Sizeof3D() const override;
84
85 ClassDefOverride(TGeoPara, 1) // box primitive
86};
87
88#endif
int Int_t
Definition RtypesCore.h:45
float Float_t
Definition RtypesCore.h:57
constexpr Bool_t kFALSE
Definition RtypesCore.h:94
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
char name[80]
Definition TGX11.cxx:110
Geometrical transformation package.
Definition TGeoMatrix.h:38
void SetDimensions(Double_t *param) override
Double_t GetZ() const
Definition TGeoPara.h:68
Double_t fTxy
Definition TGeoPara.h:26
Double_t fTyz
Definition TGeoPara.h:28
void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize) override
Double_t GetPhi() const
Definition TGeoPara.h:71
Double_t fX
Definition TGeoPara.h:20
void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm) override
Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const override
void Sizeof3D() const override
TGeoShape * GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const override
Bool_t IsCylType() const override
Definition TGeoPara.h:76
void GetBoundingCylinder(Double_t *param) const override
Double_t Capacity() const override
TGeoVolume * Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step) override
TGeoPara(Double_t dx, Double_t dy, Double_t dz, Double_t alpha, Double_t theta, Double_t phi)
Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const override
Double_t GetAlpha() const
Definition TGeoPara.h:69
Int_t GetByteCount() const override
Definition TGeoPara.h:61
void InspectShape() const override
void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const override
Double_t fTheta
Definition TGeoPara.h:24
Double_t GetTxz() const
Definition TGeoPara.h:73
Int_t GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const override
Double_t GetX() const
Definition TGeoPara.h:66
Double_t fTxz
Definition TGeoPara.h:27
void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const override
void SetPoints(Double_t *points) const override
TGeoPara(const char *name, Double_t dx, Double_t dy, Double_t dz, Double_t alpha, Double_t theta, Double_t phi)
Double_t GetTyz() const
Definition TGeoPara.h:74
Double_t fAlpha
Definition TGeoPara.h:23
void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const override
Double_t fZ
Definition TGeoPara.h:22
~TGeoPara() override
Double_t fY
Definition TGeoPara.h:21
TGeoPara(Double_t *param)
Double_t GetTxy() const
Definition TGeoPara.h:72
Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=nullptr) const override
Double_t fPhi
Definition TGeoPara.h:25
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a primitive as a C++ statement(s) on output stream "out".
void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize, Double_t *step) const override
void SetPoints(Float_t *points) const override
Bool_t Contains(const Double_t *point) const override
Double_t GetY() const
Definition TGeoPara.h:67
Int_t GetNmeshVertices() const override
Definition TGeoPara.h:65
TGeoPara(const TGeoPara &)=delete
Double_t GetTheta() const
Definition TGeoPara.h:70
TGeoPara & operator=(const TGeoPara &)=delete
Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=nullptr) const override
void ComputeBBox() override
Base abstract class for all shapes.
Definition TGeoShape.h:25
static Double_t Big()
Definition TGeoShape.h:87
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
Definition TGeoVolume.h:43