|
JHUGen MELA
JHUGen v7.5.6, MELA v2.4.2
Matrix element calculations as used in JHUGen.
|
Go to the documentation of this file. 1 #ifndef MELAAccumulators_h
2 #define MELAAccumulators_h
24 operator T()
const {
return sum_; }
37 T sumerr = (sumnew -
sum_);
50 operator T()
const {
return sum_; }
57 template<
typename T,
class A>
inline T
sumWith(
const std::vector<T>& vals){
59 for (
const T& v : vals) ret += v;
63 template<
typename T>
inline T
sumPrecise(
const std::vector<T, std::allocator<T>>& vals){
64 T ret = sumWith<T, PreciseAccumulator<T>>(vals);
68 template<
typename T>
inline T
sumFast(
const std::vector<T, std::allocator<T>>& vals){
69 T ret = sumWith<T, FastAccumulator<T>>(vals);
73 template<
typename T>
inline T
sumDefault(
const std::vector<T, std::allocator<T>>& vals){
74 T ret = sumWith<T, DefaultAccumulator<T>>(vals);
pymela::gHIGGS_KAPPA value("gHIGGS_KAPPA_TILDE", pymela::gHIGGS_KAPPA_TILDE) .value("SIZE_HQQ"
KahanAccumulator operator+(const T &inc)
NaiveAccumulator & operator-=(const T &inc)
NaiveAccumulator & operator*=(const T &inc)
KahanAccumulator operator/(const T &inc)
NaiveAccumulator operator+(const T &inc)
NaiveAccumulator(const NaiveAccumulator< T > &other)
T sumPrecise(const std::vector< T, std::allocator< T >> &vals)
T sumFast(const std::vector< T, std::allocator< T >> &vals)
KahanAccumulator & operator*=(const T &inc)
NaiveAccumulator operator*(const T &inc)
KahanAccumulator operator-(const T &inc)
KahanAccumulator(const T &value)
NaiveAccumulator & operator/=(const T &inc)
KahanAccumulator(const KahanAccumulator< T > &other)
T sumWith(const std::vector< T > &vals)
NaiveAccumulator operator/(const T &inc)
NaiveAccumulator operator-(const T &inc)
KahanAccumulator & operator-=(const T &inc)
KahanAccumulator & operator+=(const T &inc)
KahanAccumulator operator*(const T &inc)
T sumDefault(const std::vector< T, std::allocator< T >> &vals)
NaiveAccumulator(const T &value)
KahanAccumulator & operator/=(const T &inc)
NaiveAccumulator & operator+=(const T &inc)