CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
funct::RatioStruct< A, B > Struct Template Reference

#include <Ratio.h>

Public Member Functions

 operator double () const
 
double operator() () const
 
double operator() (double x) const
 
double operator() (double x, double y) const
 
 RatioStruct (const A &a, const B &b)
 

Public Attributes

A _1
 
B _2
 

Detailed Description

template<typename A, typename B>
struct funct::RatioStruct< A, B >

Definition at line 6 of file Ratio.h.

Constructor & Destructor Documentation

template<typename A , typename B >
funct::RatioStruct< A, B >::RatioStruct ( const A a,
const B b 
)
inline

Definition at line 7 of file Ratio.h.

7 : _1(a), _2(b) {}
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

Member Function Documentation

template<typename A , typename B >
funct::RatioStruct< A, B >::operator double ( ) const
inline

Definition at line 9 of file Ratio.h.

References funct::RatioStruct< A, B >::_1, and funct::RatioStruct< A, B >::_2.

9 { return _1() / _2(); }
template<typename A , typename B >
double funct::RatioStruct< A, B >::operator() ( ) const
inline

Definition at line 8 of file Ratio.h.

References funct::RatioStruct< A, B >::_1, and funct::RatioStruct< A, B >::_2.

8 { return _1() / _2(); }
template<typename A , typename B >
double funct::RatioStruct< A, B >::operator() ( double  x) const
inline

Definition at line 10 of file Ratio.h.

References funct::RatioStruct< A, B >::_1, and funct::RatioStruct< A, B >::_2.

10 { return _1(x) / _2(x); }
template<typename A , typename B >
double funct::RatioStruct< A, B >::operator() ( double  x,
double  y 
) const
inline

Definition at line 11 of file Ratio.h.

References funct::RatioStruct< A, B >::_1, and funct::RatioStruct< A, B >::_2.

11 { return _1(x, y) / _2(x, y); }

Member Data Documentation

template<typename A , typename B >
A funct::RatioStruct< A, B >::_1
template<typename A , typename B >
B funct::RatioStruct< A, B >::_2