herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::GSLHelper< V, T > Struct Template Reference

from, which can then be used by the GSL algorithms that need a pointer to a function and don't know about Units. More...

#include <GSLHelper.h>

Inheritance diagram for Herwig::GSLHelper< V, T >:

Public Types

typedef T ArgType
 Typedef for Agrument type.
 
typedef V ValType
 Typedef for Value type.
 

Public Member Functions

 GSLHelper ()
 Constructor.
 
virtual ~GSLHelper ()
 Destructor.
 
virtual V vUnit () const
 Value type.
 
virtual T aUnit () const
 Agrument type.
 

Private Member Functions

GSLHelperoperator= (const GSLHelper &)=delete
 The assignment operator is private and must never be called.
 

Detailed Description

template<typename V, typename T>
struct Herwig::GSLHelper< V, T >

from, which can then be used by the GSL algorithms that need a pointer to a function and don't know about Units.

This class defines the necessary typedefs and forces you to define the "()" operator. In addition it implements the vUnit and aUnit static methods which can be overwritten if the corresponding base unit is too far from the actual used unit. This removes the numerical problem that arises once the base unit is several orders of magnitude away from the used unit.

Definition at line 31 of file GSLHelper.h.

Member Typedef Documentation

◆ ArgType

template<typename V , typename T >
typedef T Herwig::GSLHelper< V, T >::ArgType

Typedef for Agrument type.

Definition at line 49 of file GSLHelper.h.

◆ ValType

template<typename V , typename T >
typedef V Herwig::GSLHelper< V, T >::ValType

Typedef for Value type.

Definition at line 54 of file GSLHelper.h.

Constructor & Destructor Documentation

◆ GSLHelper()

template<typename V , typename T >
Herwig::GSLHelper< V, T >::GSLHelper ( )
inline

Constructor.

Definition at line 39 of file GSLHelper.h.

◆ ~GSLHelper()

template<typename V , typename T >
virtual Herwig::GSLHelper< V, T >::~GSLHelper ( )
inlinevirtual

Destructor.

Definition at line 44 of file GSLHelper.h.

Member Function Documentation

◆ aUnit()

template<typename V , typename T >
virtual T Herwig::GSLHelper< V, T >::aUnit ( ) const
inlinevirtual

Agrument type.

Reimplemented in Herwig::slopeAndTotalXSec, Herwig::betaBisection, and Herwig::TotalXSecBisection.

Definition at line 64 of file GSLHelper.h.

References ThePEG::TypeTraits< typename T >::baseunit().

◆ operator=()

template<typename V , typename T >
GSLHelper & Herwig::GSLHelper< V, T >::operator= ( const GSLHelper< V, T > &  )
privatedelete

The assignment operator is private and must never be called.

In fact, it should not even be implemented.

◆ vUnit()

template<typename V , typename T >
virtual V Herwig::GSLHelper< V, T >::vUnit ( ) const
inlinevirtual

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