Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
Plot the signal computed by a sensor as a ROOT histogram. More...
#include <ViewSignal.hh>
Public Member Functions | |
ViewSignal () | |
Constructor. | |
~ViewSignal () | |
Destructor. | |
void | SetSensor (Sensor *s) |
Set the sensor from which to retrieve the signal. | |
void | SetCanvas (TCanvas *c) |
Set the pad on which to draw the histogram. | |
void | PlotSignal (const std::string &label, const bool total=true, const bool electron=false, const bool ion=false) |
TH1D * | GetHistogram (const char h='t') |
void | EnableDebugging (const bool on=true) |
Enable/disable debugging output. | |
Plot the signal computed by a sensor as a ROOT histogram.
Definition at line 16 of file ViewSignal.hh.
Garfield::ViewSignal::ViewSignal | ( | ) |
Constructor.
Definition at line 12 of file ViewSignal.cc.
Garfield::ViewSignal::~ViewSignal | ( | ) |
Destructor.
Definition at line 24 of file ViewSignal.cc.
|
inline |
|
inline |
Retrieve the histogram for the induced signal.
h | histogram to be returned ('t': total, 'e': electron-induced, 'h': ion-induced). |
Definition at line 41 of file ViewSignal.hh.
void Garfield::ViewSignal::PlotSignal | ( | const std::string & | label, |
const bool | total = true , |
||
const bool | electron = false , |
||
const bool | ion = false |
||
) |
Plot the signal.
label | Identifier (weighting field) of the signal to be plotted. |
total | Flag whether to plot the total induced signal. |
electron | Flag whether to plot the electron-induced signal. |
ion | Flag whether to plot the ion/hole-induced signal. |
Definition at line 53 of file ViewSignal.cc.
void Garfield::ViewSignal::SetCanvas | ( | TCanvas * | c | ) |
Set the pad on which to draw the histogram.
Definition at line 42 of file ViewSignal.cc.
void Garfield::ViewSignal::SetSensor | ( | Sensor * | s | ) |
Set the sensor from which to retrieve the signal.
Definition at line 33 of file ViewSignal.cc.