File indexing completed on 2025-01-18 10:11:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGeoPara
0013 #define ROOT_TGeoPara
0014
0015 #include "TGeoBBox.h"
0016
0017 class TGeoPara : public TGeoBBox {
0018 protected:
0019
0020 Double_t fX;
0021 Double_t fY;
0022 Double_t fZ;
0023 Double_t fAlpha;
0024 Double_t fTheta;
0025 Double_t fPhi;
0026 Double_t fTxy;
0027 Double_t fTxz;
0028 Double_t fTyz;
0029
0030
0031 TGeoPara(const TGeoPara &) = delete;
0032 TGeoPara &operator=(const TGeoPara &) = delete;
0033
0034 public:
0035
0036 TGeoPara();
0037 TGeoPara(Double_t dx, Double_t dy, Double_t dz, Double_t alpha, Double_t theta, Double_t phi);
0038 TGeoPara(const char *name, Double_t dx, Double_t dy, Double_t dz, Double_t alpha, Double_t theta, Double_t phi);
0039 TGeoPara(Double_t *param);
0040
0041 ~TGeoPara() override;
0042
0043 Double_t Capacity() const override;
0044 void ComputeBBox() override;
0045 void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm) override;
0046 void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize) override;
0047 Bool_t Contains(const Double_t *point) const override;
0048 void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const override;
0049 Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact = 1, Double_t step = TGeoShape::Big(),
0050 Double_t *safe = nullptr) const override;
0051 void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize,
0052 Double_t *step) const override;
0053 Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact = 1,
0054 Double_t step = TGeoShape::Big(), Double_t *safe = nullptr) const override;
0055 void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize,
0056 Double_t *step) const override;
0057 TGeoVolume *
0058 Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step) override;
0059 Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const override;
0060 void GetBoundingCylinder(Double_t *param) const override;
0061 Int_t GetByteCount() const override { return 48; }
0062 Int_t
0063 GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const override;
0064 TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const override;
0065 Int_t GetNmeshVertices() const override { return 8; }
0066 Double_t GetX() const { return fX; }
0067 Double_t GetY() const { return fY; }
0068 Double_t GetZ() const { return fZ; }
0069 Double_t GetAlpha() const { return fAlpha; }
0070 Double_t GetTheta() const { return fTheta; }
0071 Double_t GetPhi() const { return fPhi; }
0072 Double_t GetTxy() const { return fTxy; }
0073 Double_t GetTxz() const { return fTxz; }
0074 Double_t GetTyz() const { return fTyz; }
0075 void InspectShape() const override;
0076 Bool_t IsCylType() const override { return kFALSE; }
0077 Double_t Safety(const Double_t *point, Bool_t in = kTRUE) const override;
0078 void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const override;
0079 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
0080 void SetDimensions(Double_t *param) override;
0081 void SetPoints(Double_t *points) const override;
0082 void SetPoints(Float_t *points) const override;
0083 void Sizeof3D() const override;
0084
0085 ClassDefOverride(TGeoPara, 1)
0086 };
0087
0088 #endif