|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGCOSTANALYSIS_VARIABLE_H
6 #define TRIGCOSTANALYSIS_VARIABLE_H 1
8 #include "GaudiKernel/StatusCode.h"
73 const std::string&
getName()
const;
152 #endif // TRIGCOSTANALYSIS_VARIABLE_H
float m_weight
Cache of the event weight.
@ kPerEvent
Variable should buffer fill calls in an accumulator and fill the underlying histogram once at the end...
size_t getCalls() const
Getter for how many times fill() has already been called on this Variable in this event.
StatusCode endEvent()
Called by the framework.
VariableType
Behaviour of Variable.
float m_oneOverDenominator
Cache of the reciprocal of the denominator used to normalise when filling the histogram.
Variable & operator=(const Variable &)=delete
Forbid copy.
const VariableType m_variableType
@ kLog
Logarithmic x-binning.
::StatusCode StatusCode
StatusCode definition for legacy code.
Variable(const Variable &)=delete
Forbid copy.
StatusCode increment(float weight=1.0)
Convenience function.
float getAccumulator() const
Getter for accumulated value of a kPerEvent Variable.
StatusCode setBinLabel(int bin, const std::string &label)
Set label on given bin in cached histogram.
@ kPerCall
Variable should fill underlying histogram on each fill.
StatusCode setYBinLabel(int bin, const std::string &label)
Set label on given bin in cached histogram on y axis.
Wrapper around a histogram which allows for some additional filling patterns and data manipulation.
@ kLinear
Linear x-binning.
Variable()=delete
Forbid default constructor.
const std::string & getName() const
Getter for Variable's name.
~Variable()=default
Default destructor.
LogType
Histogram x-axis type flag.
StatusCode fill(float value, float weight=1.0)
Fill histogram (per-Call Variable), or add value to internal accumulator (per-Event Variable) to be f...
void setDenominator(float value)
Sets, until the end of the event, a denominator which will be used to normalise every Fill.