35 void PlotSignal(
const std::string& label,
const bool total =
true,
36 const bool electron =
false,
const bool ion =
false);
42 return h ==
'e' ? m_hSignalElectrons :
'i' ? m_hSignalIons : m_hSignal;
49 std::string m_className;
59 bool m_hasExternalCanvas;
63 TH1D* m_hSignalElectrons;
70 std::string FindHistogramName(
const std::string& base)
const;
Plot the signal computed by a sensor as a ROOT histogram.
void EnableDebugging(const bool on=true)
Enable/disable debugging output.
TH1D * GetHistogram(const char h='t')
void PlotSignal(const std::string &label, const bool total=true, const bool electron=false, const bool ion=false)
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.