|
ATLAS Offline Software
|
Go to the documentation of this file.
15 m_cacheHistoPtr(cacheHistoPtr),
20 m_oneOverDenominator(1.) {
41 if (std::abs(
value) < 1
e-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;
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.
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
VariableType
Behaviour of Variable.
float m_oneOverDenominator
Cache of the reciprocal of the denominator used to normalise when filling the histogram.
const VariableType m_variableType
def TProfile(*args, **kwargs)
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
Variable()=delete
Forbid default constructor.
const std::string & getName() const
Getter for Variable's name.
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.