Garfield 0.3
Toolkit for the detailed simulation of particle detectors based on ionization 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 public:
12 TGeoTet(const char* name,
13 const std::array<std::array<double, 3>, 4>& vertices);
15 virtual ~TGeoTet() {}
16
17 void ComputeBBox() override;
18 int DistancetoPrimitive(int, int) override { return 99999; }
19 const TBuffer3D& GetBuffer3D(int reqSections, bool localFrame) const override;
20 void GetMeshNumbers(int& nvert, int& nsegs, int& npols) const override {
21 nvert = 4;
22 nsegs = 12;
23 npols = 4;
24 }
25 int GetNmeshVertices() const override { return 4; }
26 void InspectShape() const override {}
27 TBuffer3D* MakeBuffer3D() const override;
28 void Print(Option_t* option = "") const override;
29 void SavePrimitive(std::ostream&, Option_t*) override {}
30 void SetPoints(double* points) const override;
31 void SetPoints(float* points) const override;
32 void SetSegsAndPols(TBuffer3D& buff) const override;
33 void Sizeof3D() const override {}
34
35 // ClassDef(TGeoTet, 1)
36
37 private:
38 std::array<std::array<double, 3>, 4> fVertices;
39
40 TGeoTet(const TGeoTet&) = delete;
41 TGeoTet& operator=(const TGeoTet&) = delete;
42};
43
44#endif
virtual ~TGeoTet()
Destructor.
Definition TGeoTet.hh:15
TGeoTet()
Definition TGeoTet.hh:10
void SavePrimitive(std::ostream &, Option_t *) override
Definition TGeoTet.hh:29
const TBuffer3D & GetBuffer3D(int reqSections, bool localFrame) const override
TGeoTet(const char *name, const std::array< std::array< double, 3 >, 4 > &vertices)
Constructor.
void SetSegsAndPols(TBuffer3D &buff) const override
void Sizeof3D() const override
Definition TGeoTet.hh:33
void InspectShape() const override
Definition TGeoTet.hh:26
std::array< std::array< double, 3 >, 4 > fVertices
Definition TGeoTet.hh:38
void GetMeshNumbers(int &nvert, int &nsegs, int &npols) const override
Definition TGeoTet.hh:20
TBuffer3D * MakeBuffer3D() const override
TGeoTet & operator=(const TGeoTet &)=delete
TGeoTet(const TGeoTet &)=delete
void Print(Option_t *option="") const override
void SetPoints(double *points) const override
int GetNmeshVertices() const override
Definition TGeoTet.hh:25
void ComputeBBox() override
int DistancetoPrimitive(int, int) override
Definition TGeoTet.hh:18
void SetPoints(float *points) const override