Garfield++ 5.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
TGeoTet.hh
Go to the documentation of this file.
1#ifndef G_TGEOTET
2#define G_TGEOTET
3
4#include <array>
5
6#include "TGeoBBox.h"
7
8class TGeoTet : public TGeoBBox {
9
10public:
12 /// Constructor
13 TGeoTet(const char* name,
14 const std::array<std::array<double, 3>, 4>& vertices);
15 /// Destructor
16 virtual ~TGeoTet() {}
17
18 void ComputeBBox() override;
19 int DistancetoPrimitive(int, int) override { return 99999; }
20 const TBuffer3D &GetBuffer3D(int reqSections, bool localFrame) const override;
21 void GetMeshNumbers(int& nvert, int& nsegs, int& npols) const override {
22 nvert = 4;
23 nsegs = 12;
24 npols = 4;
25 }
26 int GetNmeshVertices() const override { return 4; }
27 void InspectShape() const override {}
28 TBuffer3D* MakeBuffer3D() const override;
29 void Print(Option_t *option = "") const override;
30 void SavePrimitive(std::ostream &, Option_t *) override {}
31 void SetPoints(double* points) const override;
32 void SetPoints(float* points) const override;
33 void SetSegsAndPols(TBuffer3D &buff) const override;
34 void Sizeof3D() const override {}
35
36 // ClassDef(TGeoTet, 1)
37
38 private:
39 std::array<std::array<double, 3>, 4> fVertices;
40
41 TGeoTet(const TGeoTet&) = delete;
42 TGeoTet& operator=(const TGeoTet&) = delete;
43
44};
45
46#endif
virtual ~TGeoTet()
Destructor.
Definition TGeoTet.hh:16
TGeoTet()
Definition TGeoTet.hh:11
void SavePrimitive(std::ostream &, Option_t *) override
Definition TGeoTet.hh:30
const TBuffer3D & GetBuffer3D(int reqSections, bool localFrame) const override
Fills a static 3D buffer and returns a reference.
Definition TGeoTet.cc:178
void SetSegsAndPols(TBuffer3D &buff) const override
Definition TGeoTet.cc:92
void Sizeof3D() const override
Definition TGeoTet.hh:34
void InspectShape() const override
Definition TGeoTet.hh:27
void GetMeshNumbers(int &nvert, int &nsegs, int &npols) const override
Definition TGeoTet.hh:21
TBuffer3D * MakeBuffer3D() const override
Definition TGeoTet.cc:74
void Print(Option_t *option="") const override
Definition TGeoTet.cc:88
void SetPoints(double *points) const override
Definition TGeoTet.cc:159
int GetNmeshVertices() const override
Definition TGeoTet.hh:26
void ComputeBBox() override
Definition TGeoTet.cc:56
int DistancetoPrimitive(int, int) override
Definition TGeoTet.hh:19