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 | Public Attributes | List of all members
TNumericUtil::triplet< T > Struct Template Reference

#include <TNumericUtil.hh>

Public Member Functions

 triplet (T i1, T i2, T i3)
 
 triplet (T i1)
 
 triplet ()
 
T & operator[] (std::size_t ipos)
 
const T & operator[] (std::size_t ipos) const
 
bool operator== (const triplet< T > &other) const
 
bool operator!= (const triplet< T > &other) const
 

Public Attributes

value [3]
 

Detailed Description

template<typename T>
struct TNumericUtil::triplet< T >

Definition at line 9 of file TNumericUtil.hh.

Constructor & Destructor Documentation

◆ triplet() [1/3]

template<typename T >
TNumericUtil::triplet< T >::triplet ( i1,
i2,
i3 
)
inline

Definition at line 11 of file TNumericUtil.hh.

11  {
12  value[0]=i1;
13  value[1]=i2;
14  value[2]=i3;
15  }

◆ triplet() [2/3]

template<typename T >
TNumericUtil::triplet< T >::triplet ( i1)
inline

Definition at line 16 of file TNumericUtil.hh.

16  {
17  value[0]=i1;
18  value[1]=i1;
19  value[2]=i1;
20  }

◆ triplet() [3/3]

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

Definition at line 21 of file TNumericUtil.hh.

21 {}

Member Function Documentation

◆ operator!=()

template<typename T >
bool TNumericUtil::triplet< T >::operator!= ( const triplet< T > &  other) const
inline

Definition at line 25 of file TNumericUtil.hh.

25 { return !(*this==other); }

◆ operator==()

template<typename T >
bool TNumericUtil::triplet< T >::operator== ( const triplet< T > &  other) const
inline

Definition at line 24 of file TNumericUtil.hh.

24 { bool res = true; for (std::size_t i=0; i<3; i++) res &= (*this)[i]==other[i]; return res; }

◆ operator[]() [1/2]

template<typename T >
T& TNumericUtil::triplet< T >::operator[] ( std::size_t  ipos)
inline

Definition at line 22 of file TNumericUtil.hh.

22 { return value[ipos]; } // Return by reference

◆ operator[]() [2/2]

template<typename T >
const T& TNumericUtil::triplet< T >::operator[] ( std::size_t  ipos) const
inline

Definition at line 23 of file TNumericUtil.hh.

23 { return value[ipos]; } // Return by const reference

Member Data Documentation

◆ value

template<typename T >
T TNumericUtil::triplet< T >::value[3]

Definition at line 10 of file TNumericUtil.hh.


The documentation for this struct was generated from the following file:
TNumericUtil::triplet::value
T value[3]
Definition: TNumericUtil.hh:10