Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGeoHalfSpace.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#) :$Id$
0002 // Author: Mihaela Gheata   03/08/04
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGeoHalfSpace
0013 #define ROOT_TGeoHalfSpace
0014 
0015 #include "TGeoBBox.h"
0016 
0017 class TGeoHalfSpace : public TGeoBBox {
0018 private:
0019    Double_t fP[3];
0020    Double_t fN[3];
0021 
0022    TGeoHalfSpace(const TGeoHalfSpace &) = delete;
0023    TGeoHalfSpace &operator=(const TGeoHalfSpace &) = delete;
0024 
0025 public:
0026    // constructors
0027    TGeoHalfSpace();
0028    TGeoHalfSpace(const char *name, Double_t *p, Double_t *n);
0029    TGeoHalfSpace(Double_t *params);
0030    // destructor
0031    ~TGeoHalfSpace() override;
0032    // methods
0033    Double_t Capacity() const override { return 0.; }
0034    void ComputeBBox() override {}
0035    void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm) override;
0036    void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize) override;
0037    Bool_t Contains(const Double_t *point) const override;
0038    void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const override;
0039    Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
0040    Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact = 1, Double_t step = TGeoShape::Big(),
0041                            Double_t *safe = nullptr) const override;
0042    void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize,
0043                          Double_t *step) const override;
0044    Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact = 1,
0045                             Double_t step = TGeoShape::Big(), Double_t *safe = nullptr) const override;
0046    void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize,
0047                           Double_t *step) const override;
0048    TGeoVolume *
0049    Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step) override;
0050    virtual Double_t *GetPoint() { return fP; }
0051    virtual Double_t *GetNorm() { return fN; }
0052    void GetBoundingCylinder(Double_t * /*param*/) const override {}
0053    TGeoShape *GetMakeRuntimeShape(TGeoShape * /*mother*/, TGeoMatrix * /*mat*/) const override { return nullptr; }
0054    void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const override;
0055    Int_t GetNmeshVertices() const override { return 0; }
0056    void InspectShape() const override;
0057    Bool_t IsCylType() const override { return kFALSE; }
0058    Double_t Safety(const Double_t *point, Bool_t in = kTRUE) const override;
0059    void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const override;
0060    void SavePrimitive(std::ostream &out, Option_t *option = "") override;
0061    void SetDimensions(Double_t *param) override;
0062    void SetPoints(Double_t * /*points*/) const override {}
0063    void SetPoints(Float_t * /*points*/) const override {}
0064    void Sizeof3D() const override {}
0065 
0066    ClassDefOverride(TGeoHalfSpace, 1) // half-space class
0067 };
0068 
0069 #endif