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
6namespace Garfield {
7
8/// Plotting style.
9
11 public:
12 /// Default constructor.
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
void SetDefaultStyle()
Apply the default Garfield ROOT style.
PlottingEngine()
Default constructor.
void SetSerif()
Use serif font.
void SetPalette(int ncol)
Set the colour palette.
void SetSansSerif()
Use sans-serif font.
~PlottingEngine()=default
Destructor.