46 other.m_canvas =
nullptr;
47 other.m_refHist =
nullptr;
48 other.m_refCopy =
nullptr;
58 m_canvas = std::move(other.m_canvas);
63 other.m_canvas =
nullptr;
64 other.m_refHist =
nullptr;
65 other.m_refCopy =
nullptr;
Class to keep track of reference histograms with the original.
std::string m_refhist_name
reference histogram name
std::string m_orghist_name
online histogram name
RefHistObject(void)
Constructor.
TCanvas * getCanvas(void)
Get canvas pointer.
void setRefCopy(TH1 *refCopy)
set scaled ref hist pointer
RefHistObject & operator=(RefHistObject &&other) noexcept
Move assignment operator.
std::unique_ptr< TCanvas > m_canvas
canvas where we draw the histogram
TH1 * getRefHist(void)
Get ref hist pointer.
std::unique_ptr< TH1 > m_refCopy
Pointer to scaled reference histogram.
void resetBeforeEvent(void)
Reset histogram and update flag, not the entries.
void setRefHist(TH1 *refHist)
set ref hist pointer
void setCanvas(TCanvas *canvas)
Set canvas pointer.
std::unique_ptr< TH1 > m_refHist
Pointer to reference histogram.
RefHistObject(RefHistObject &&other) noexcept
Move constructor.
TH1 * getReference(void)
Get reference pointer for copy.
void makeReferenceCopy(void)
Make a reference copy.
TH1 * getRefCopy(void)
Get scaled ref hist pointer.
Abstract base class for different kinds of events.