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
9
namespace
Garfield
{
10
11
class
GeometrySimple;
12
13
class
ViewGeometry
{
14
15
public
:
16
// Constructor
17
ViewGeometry
();
18
// Destructor
19
~ViewGeometry
();
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
Garfield::GeometrySimple
Definition:
GeometrySimple.hh:13
Garfield::ViewGeometry
Definition:
ViewGeometry.hh:13
Garfield::ViewGeometry::Plot
void Plot()
Definition:
ViewGeometry.cc:52
Garfield::ViewGeometry::DisableDebugging
void DisableDebugging()
Definition:
ViewGeometry.hh:28
Garfield::ViewGeometry::SetCanvas
void SetCanvas(TCanvas *c)
Definition:
ViewGeometry.cc:41
Garfield::ViewGeometry::EnableDebugging
void EnableDebugging()
Definition:
ViewGeometry.hh:27
Garfield::ViewGeometry::SetGeometry
void SetGeometry(GeometrySimple *geo)
Definition:
ViewGeometry.cc:30
Garfield::ViewGeometry::~ViewGeometry
~ViewGeometry()
Definition:
ViewGeometry.cc:24
Garfield::ViewGeometry::ViewGeometry
ViewGeometry()
Definition:
ViewGeometry.cc:13
Garfield
Definition:
HeedChamber.hh:10
garfieldpp-v1r0
Include
ViewGeometry.hh
Generated by
1.9.6