32 enum EDeltaType { c_Disabled = 0, c_Entries = 1, c_Underflow = 2, c_Events = 3};
67 void update(
const TH1* hist);
78 TH1*
getDelta(
unsigned int n = 0,
bool onlyIfUpdated =
true)
const;
Class to keep track of delta histograms.
void update(const TH1 *hist)
Check if update of delta histogram is necessary.
EDeltaType m_type
type of delta algo
void set(EDeltaType t, int p, unsigned int a)
Parameter setter.
void reset(void)
Reset histogram and deltas, not the parameters.
std::unique_ptr< TH1 > m_lastHist
Pointer to last histogram state for check.
TH1 * getDelta(unsigned int n=0, bool onlyIfUpdated=true) const
Get Delta Histogram.
std::vector< std::unique_ptr< TH1 > > m_deltaHists
vector of histograms (max m_amountDeltas)
int m_lastValue
last value for comparison, depending on type
unsigned int m_amountDeltas
amount of past histograms, at least 1
int m_parameter
parameter depending on algo, e.g.
void setNotUpdated(void)
Set not-updated yet status.
EDeltaType
enum definition for delta algo Disabled: nothing Entries: use nr histogram entries Underflow: use ent...
bool m_updated
if any delta was updated in this event
Abstract base class for different kinds of events.