CMS 3D CMS Logo

funct::RatioStruct< A, B > Struct Template Reference

#include <PhysicsTools/Utilities/interface/Ratio.h>

List of all members.

Public Member Functions

 operator double () const
double operator() (double x, double y) const
double operator() (double x) const
double operator() () 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 7 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 8 of file Ratio.h.

00008 : _1(a), _2(b) { }


Member Function Documentation

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

Definition at line 12 of file Ratio.h.

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

00012                             {
00013       return _1() / _2();
00014     }

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

Definition at line 18 of file Ratio.h.

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

00018                                                 {
00019       return _1(x, y) / _2(x, y);
00020     }

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

Definition at line 15 of file Ratio.h.

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

00015                                       {
00016       return _1(x) / _2(x);
00017     }

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

Definition at line 9 of file Ratio.h.

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

00009                               {
00010       return _1() / _2();
00011     }


Member Data Documentation

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

Definition at line 21 of file Ratio.h.

Referenced by funct::RatioStruct< A, B >::operator double(), and funct::RatioStruct< A, B >::operator()().

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

Definition at line 22 of file Ratio.h.

Referenced by funct::RatioStruct< A, B >::operator double(), and funct::RatioStruct< A, B >::operator()().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:47:03 2009 for CMSSW by  doxygen 1.5.4