CMS 3D CMS Logo

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 112 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

◆ TF2Wrap()

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

Definition at line 117 of file EgammaHLTPixelMatchParamObjects.h.

117  : func_("func", funcExpr.c_str()) {
118  for (size_t paraNr = 0; paraNr < params.size(); paraNr++) {
119  func_.SetParameter(paraNr, params[paraNr]);
120  }
121  }

References egPM::TF2Wrap< ParamType, bool >::func_, and CalibrationSummaryClient_cfi::params.

Member Function Documentation

◆ operator()()

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

Definition at line 122 of file EgammaHLTPixelMatchParamObjects.h.

122 { return func_.Eval(obj.x, obj.y); };

References egPM::TF2Wrap< ParamType, bool >::func_, and getGTfromDQMFile::obj.

Member Data Documentation

◆ func_

template<typename ParamType , bool = true>
TF2 egPM::TF2Wrap< ParamType, bool >::func_
private
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
egPM::TF2Wrap::func_
TF2 func_
Definition: EgammaHLTPixelMatchParamObjects.h:114