CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
egPM::TF2Wrap< ParamType, bool > Struct Template Reference

#include <EgammaHLTPixelMatchParamObjects.h>

Public Member Functions

float operator() (const ParamType &obj)
 
 TF2Wrap (const std::string &funcExpr, const std::vector< double > &params)
 

Private Attributes

TF2 func_
 

Detailed Description

template<typename ParamType, bool = true>
struct egPM::TF2Wrap< ParamType, bool >

Definition at line 117 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

template<typename ParamType , bool = true>
egPM::TF2Wrap< ParamType, bool >::TF2Wrap ( const std::string &  funcExpr,
const std::vector< double > &  params 
)
inline

Definition at line 121 of file EgammaHLTPixelMatchParamObjects.h.

References egPM::TF2Wrap< ParamType, bool >::func_.

121  :
122  func_("func",funcExpr.c_str()){
123  for(size_t paraNr=0;paraNr<params.size();paraNr++){
124  func_.SetParameter(paraNr,params[paraNr]);
125  }
126  }

Member Function Documentation

template<typename ParamType , bool = true>
float egPM::TF2Wrap< ParamType, bool >::operator() ( const ParamType &  obj)
inline

Definition at line 127 of file EgammaHLTPixelMatchParamObjects.h.

References egPM::TF2Wrap< ParamType, bool >::func_.

127  {
128  return func_.Eval(obj.x,obj.y);
129  };

Member Data Documentation

template<typename ParamType , bool = true>
TF2 egPM::TF2Wrap< ParamType, bool >::func_
private