Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
ViewGeometry.hh
Go to the documentation of this file.
1#ifndef G_VIEW_GEOMETRY
2#define G_VIEW_GEOMETRY
3
4#include <string>
5
6#include <TCanvas.h>
7#include <TGeoManager.h>
8
9namespace Garfield {
10
11class GeometrySimple;
12
14
15 public:
16 // Constructor
18 // Destructor
20
21 void SetCanvas(TCanvas* c);
22
23 void SetGeometry(GeometrySimple* geo);
24
25 void Plot();
26
27 void EnableDebugging() { m_debug = true; }
28 void DisableDebugging() { m_debug = false; }
29
30 private:
31 std::string m_className;
32
33 // Options
34 bool m_debug;
35
36 std::string m_label;
37
38 // Canvas
39 TCanvas* m_canvas;
40 bool m_hasExternalCanvas;
41
42 GeometrySimple* m_geometry;
43
44 std::vector<TGeoVolume*> m_volumes;
45 std::vector<TGeoMedium*> m_media;
46
47 TGeoManager* m_geoManager;
48
49 void Reset();
50
51};
52}
53#endif
void SetCanvas(TCanvas *c)
Definition: ViewGeometry.cc:41
void SetGeometry(GeometrySimple *geo)
Definition: ViewGeometry.cc:30