Garfield++
4.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
PlottingEngine.hh
Go to the documentation of this file.
1
#ifndef G_PLOTTING_ENGINE_H
2
#define G_PLOTTING_ENGINE_H
3
4
#include <TStyle.h>
5
6
namespace
Garfield
{
7
8
/// Plotting style.
9
10
class
PlottingEngine
{
11
public
:
12
/// Default constructor.
13
PlottingEngine
();
14
/// Destructor
15
~PlottingEngine
() =
default
;
16
17
/// Use serif font.
18
void
SetSerif
() { m_serif =
true
; }
19
/// Use sans-serif font.
20
void
SetSansSerif
() { m_serif =
false
; }
21
22
/// Set the colour palette.
23
void
SetPalette
(
int
ncol) { m_palette = ncol; }
24
25
/// Apply the default Garfield ROOT style.
26
void
SetDefaultStyle
();
27
28
private
:
29
std::string m_className =
"PlottingEngine"
;
30
31
bool
m_serif =
false
;
32
int
m_palette = 0;
33
34
TStyle m_garfieldStyle;
35
};
36
}
37
38
#endif
Garfield::PlottingEngine
Plotting style.
Definition:
PlottingEngine.hh:10
Garfield::PlottingEngine::SetDefaultStyle
void SetDefaultStyle()
Apply the default Garfield ROOT style.
Definition:
PlottingEngine.cc:18
Garfield::PlottingEngine::PlottingEngine
PlottingEngine()
Default constructor.
Definition:
PlottingEngine.cc:15
Garfield::PlottingEngine::SetSerif
void SetSerif()
Use serif font.
Definition:
PlottingEngine.hh:18
Garfield::PlottingEngine::SetPalette
void SetPalette(int ncol)
Set the colour palette.
Definition:
PlottingEngine.hh:23
Garfield::PlottingEngine::SetSansSerif
void SetSansSerif()
Use sans-serif font.
Definition:
PlottingEngine.hh:20
Garfield::PlottingEngine::~PlottingEngine
~PlottingEngine()=default
Destructor.
Garfield
Definition:
HeedChamber.hh:11
garfieldpp-4.0
Include
Garfield
PlottingEngine.hh
Generated by
1.9.6