The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
Gaudi::Accumulators::WeightedSquare Struct Reference

A WeightedSquare functor, take a pair (value, weight) as input. More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Accumulators/StaticHistogram.h>

Public Member Functions

template<typename Arithmetic>
constexpr decltype(auto) operator() (const std::pair< Arithmetic, Arithmetic > &v) const noexcept
 

Detailed Description

A WeightedSquare functor, take a pair (value, weight) as input.

Definition at line 100 of file StaticHistogram.h.

Member Function Documentation

◆ operator()()

template<typename Arithmetic>
decltype(auto) Gaudi::Accumulators::WeightedSquare::operator() ( const std::pair< Arithmetic, Arithmetic > & v) const
inlineconstexprnoexcept

Definition at line 102 of file StaticHistogram.h.

102 {
103 return v.first * v.first * v.second;
104 }

The documentation for this struct was generated from the following file: