Belle II Software development
|
Class to keep track of delta histograms. More...
#include <HistObject.h>
Public Member Functions | |
HistObject (void) | |
Constructor. | |
~HistObject (void) | |
Destructor. | |
bool | update (TH1 *hist) |
Check if update of histogram is necessary. | |
void | resetBeforeEvent (void) |
Reset histogram and update flag, not the entries. | |
bool | isUpdated (void) |
Check if hist was updated. | |
TH1 * | getHist (void) |
Get hist pointer. | |
Public Attributes | |
std::unique_ptr< TH1 > | m_hist |
Pointer to histogram. | |
bool | m_updated = false |
flag if update since last event | |
double | m_entries = -1 |
entries in previous/current for update check | |
Class to keep track of delta histograms.
Definition at line 21 of file HistObject.h.
|
inline |
Constructor.
Definition at line 30 of file HistObject.h.
~HistObject | ( | void | ) |
|
inline |
|
inline |
void resetBeforeEvent | ( | void | ) |
Reset histogram and update flag, not the entries.
Definition at line 27 of file HistObject.cc.
bool update | ( | TH1 * | hist | ) |
Check if update of histogram is necessary.
hist | pointer to histogram |
Definition at line 16 of file HistObject.cc.
double m_entries = -1 |
entries in previous/current for update check
Definition at line 25 of file HistObject.h.
std::unique_ptr<TH1> m_hist |
Pointer to histogram.
Definition at line 23 of file HistObject.h.
bool m_updated = false |
flag if update since last event
Definition at line 24 of file HistObject.h.