JHUGen MELA  v2.4.1
Matrix element calculations as used in JHUGen. MELA is an important tool that was used for the Higgs boson discovery and for precise measurements of its structure and interactions. Please see the website https://spin.pha.jhu.edu/ and papers cited there for more details, and kindly cite those papers when using this code.
Public Member Functions | Protected Attributes | List of all members
TNumericUtil::NaiveAccumulator< T > Class Template Reference

#include <MELAAccumulators.h>

Public Member Functions

 NaiveAccumulator ()
 
 NaiveAccumulator (const T &value)
 
 NaiveAccumulator (const NaiveAccumulator< T > &other)
 
NaiveAccumulatoroperator+= (const T &inc)
 
NaiveAccumulatoroperator-= (const T &inc)
 
NaiveAccumulatoroperator*= (const T &inc)
 
NaiveAccumulatoroperator/= (const T &inc)
 
NaiveAccumulator operator+ (const T &inc)
 
NaiveAccumulator operator- (const T &inc)
 
NaiveAccumulator operator* (const T &inc)
 
NaiveAccumulator operator/ (const T &inc)
 
sum () const
 
 operator T () const
 

Protected Attributes

sum_
 

Detailed Description

template<typename T>
class TNumericUtil::NaiveAccumulator< T >

Definition at line 8 of file MELAAccumulators.h.

Constructor & Destructor Documentation

◆ NaiveAccumulator() [1/3]

template<typename T >
TNumericUtil::NaiveAccumulator< T >::NaiveAccumulator ( )
inline

Definition at line 12 of file MELAAccumulators.h.

12 : sum_(0){}

◆ NaiveAccumulator() [2/3]

template<typename T >
TNumericUtil::NaiveAccumulator< T >::NaiveAccumulator ( const T &  value)
inline

Definition at line 13 of file MELAAccumulators.h.

13 : sum_(value){}

◆ NaiveAccumulator() [3/3]

template<typename T >
TNumericUtil::NaiveAccumulator< T >::NaiveAccumulator ( const NaiveAccumulator< T > &  other)
inline

Definition at line 14 of file MELAAccumulators.h.

14 : sum_(other.sum_){}

Member Function Documentation

◆ operator T()

template<typename T >
TNumericUtil::NaiveAccumulator< T >::operator T ( ) const
inline

Definition at line 24 of file MELAAccumulators.h.

24 { return sum_; }

◆ operator*()

template<typename T >
NaiveAccumulator TNumericUtil::NaiveAccumulator< T >::operator* ( const T &  inc)
inline

Definition at line 21 of file MELAAccumulators.h.

21 { NaiveAccumulator<T> tmp(*this); tmp *= inc; return tmp; }

◆ operator*=()

template<typename T >
NaiveAccumulator& TNumericUtil::NaiveAccumulator< T >::operator*= ( const T &  inc)
inline

Definition at line 17 of file MELAAccumulators.h.

17 { sum_ *= inc; return *this; }

◆ operator+()

template<typename T >
NaiveAccumulator TNumericUtil::NaiveAccumulator< T >::operator+ ( const T &  inc)
inline

Definition at line 19 of file MELAAccumulators.h.

19 { NaiveAccumulator<T> tmp(*this); tmp += inc; return tmp; }

◆ operator+=()

template<typename T >
NaiveAccumulator& TNumericUtil::NaiveAccumulator< T >::operator+= ( const T &  inc)
inline

Definition at line 15 of file MELAAccumulators.h.

15 { sum_ += inc; return *this; }

◆ operator-()

template<typename T >
NaiveAccumulator TNumericUtil::NaiveAccumulator< T >::operator- ( const T &  inc)
inline

Definition at line 20 of file MELAAccumulators.h.

20 { NaiveAccumulator<T> tmp(*this); tmp -= inc; return tmp; }

◆ operator-=()

template<typename T >
NaiveAccumulator& TNumericUtil::NaiveAccumulator< T >::operator-= ( const T &  inc)
inline

Definition at line 16 of file MELAAccumulators.h.

16 { sum_ -= inc; return *this; }

◆ operator/()

template<typename T >
NaiveAccumulator TNumericUtil::NaiveAccumulator< T >::operator/ ( const T &  inc)
inline

Definition at line 22 of file MELAAccumulators.h.

22 { NaiveAccumulator<T> tmp(*this); tmp /= inc; return tmp; }

◆ operator/=()

template<typename T >
NaiveAccumulator& TNumericUtil::NaiveAccumulator< T >::operator/= ( const T &  inc)
inline

Definition at line 18 of file MELAAccumulators.h.

18 { sum_ /= inc; return *this; }

◆ sum()

template<typename T >
T TNumericUtil::NaiveAccumulator< T >::sum ( ) const
inline

Definition at line 23 of file MELAAccumulators.h.

23 { return sum_; }

Member Data Documentation

◆ sum_

template<typename T >
T TNumericUtil::NaiveAccumulator< T >::sum_
protected

Definition at line 10 of file MELAAccumulators.h.


The documentation for this class was generated from the following file:
value
pymela::gHIGGS_KAPPA value("gHIGGS_KAPPA_TILDE", pymela::gHIGGS_KAPPA_TILDE) .value("SIZE_HQQ"
hto_rootw::inc
integer inc
Definition: CALLING_cpHTO.f:246
TNumericUtil::NaiveAccumulator::sum_
T sum_
Definition: MELAAccumulators.h:10