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>
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 | |
GSLHelper & | operator= (const GSLHelper &)=delete |
The assignment operator is private and must never be called. | |
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.
typedef T Herwig::GSLHelper< V, T >::ArgType |
Typedef for Agrument type.
Definition at line 49 of file GSLHelper.h.
typedef V Herwig::GSLHelper< V, T >::ValType |
Typedef for Value type.
Definition at line 54 of file GSLHelper.h.
|
inline |
Constructor.
Definition at line 39 of file GSLHelper.h.
|
inlinevirtual |
Destructor.
Definition at line 44 of file GSLHelper.h.
|
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().
|
privatedelete |
The assignment operator is private and must never be called.
In fact, it should not even be implemented.
|
inlinevirtual |
Value type.
Reimplemented in Herwig::slopeAndTotalXSec, Herwig::betaBisection, and Herwig::TotalXSecBisection.
Definition at line 59 of file GSLHelper.h.
References ThePEG::TypeTraits< typename T >::baseunit().