8 #include <dqm/analysis/HistDelta.h>
9 #include <dqm/core/DQMHistAnalysis.h>
34 if (currentHist ==
nullptr)
return;
39 m_lastHist->SetName(TString(currentHist->GetName()) +
"_last");
44 bool need_update =
false;
68 TH1* delta = (TH1*)currentHist->Clone();
102 if (onlyIfUpdated && !
m_updated)
return nullptr;
static int getEventProcessed(void)
Get the number of processed events.
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.
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.