The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Accumulators::WeightedProduct Struct Reference

A Product 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 Product functor, take a pair (value, weight) as input.

Definition at line 90 of file StaticHistogram.h.

Member Function Documentation

◆ operator()()

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

Definition at line 92 of file StaticHistogram.h.

92 {
93 return v.first * v.second;
94 }

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