41 if (std::abs(value) < 1e-10) {
61 return StatusCode::FAILURE;
64 return StatusCode::SUCCESS;
89 return StatusCode::FAILURE;
92 return StatusCode::SUCCESS;
98 return StatusCode::SUCCESS;
104 return StatusCode::SUCCESS;
110 return StatusCode::SUCCESS;
116 return StatusCode::SUCCESS;
126 if (th2f ==
nullptr){
142 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
VariableType
Behaviour of Variable.
@ kPerEvent
Variable should buffer fill calls in an accumulator and fill the underlying histogram once at the end...
@ kPerCall
Variable should fill underlying histogram on each fill.
float m_weight
Cache of the event weight.
StatusCode endEvent()
Called by the framework.
Variable()=delete
Forbid default constructor.
StatusCode increment(float weight=1.0)
Convenience function.
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.
StatusCode setYBinLabel(int bin, const std::string &label)
Set label on given bin in cached histogram on y axis.
const std::string & getName() const
Getter for Variable's name.
size_t getCalls() const
Getter for how many times fill() has already been called on this Variable in this event.
const VariableType m_variableType
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.
float m_oneOverDenominator
Cache of the reciprocal of the denominator used to normalise when filling the histogram.
std::string label(const std::string &format, int i)