32 enum EDeltaType { c_Disabled = 0, c_Entries = 1, c_Underflow = 2, c_Events = 3};
74 TH1*
getDelta(
unsigned int n = 0,
bool onlyIfUpdated =
true);
Class to keep track of delta histograms.
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.
TH1 * getDelta(unsigned int n=0, bool onlyIfUpdated=true)
Get Delta Histogram.
std::vector< 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.
HistDelta(EDeltaType t=c_Disabled, int p=0, unsigned int a=0)
Construktor.
void setNotUpdated(void)
Set not-updated yet status.
EDeltaType
enum definition for delta algo Disabled: nothing Entries: use nr histogram entries Underflow: use ent...
void update(TH1 *hist)
Check if update of delta histogram is necessary.
TH1 * m_lastHist
Pointer to last histogram state for check.
bool m_updated
if any delta was updated in this event
Abstract base class for different kinds of events.