![]() |
Belle II Software development
|
Class to keep track of 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 histogram was updated. | |
| TH1 * | getHist (void) |
| Get histogram 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 histograms.
The class owns the histogram and keeps track if the histogram has changed between analysis events by checking the number of entries.
Definition at line 23 of file HistObject.h.
|
inline |
Constructor.
Definition at line 32 of file HistObject.h.
| ~HistObject | ( | void | ) |
|
inline |
Get histogram pointer.
Definition at line 56 of file HistObject.h.
|
inline |
Check if histogram was updated.
Definition at line 51 of file HistObject.h.
| 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 27 of file HistObject.h.
| std::unique_ptr<TH1> m_hist |
Pointer to histogram.
Definition at line 25 of file HistObject.h.
| bool m_updated = false |
flag if update since last event
Definition at line 26 of file HistObject.h.