CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Attributes
egPM::ParamBin2D< InputType, ParamType > Class Template Reference

#include <EgammaHLTPixelMatchParamObjects.h>

Inheritance diagram for egPM::ParamBin2D< InputType, ParamType >:
egPM::ParamBin< InputType >

Public Member Functions

float operator() (const InputType &input) const override
 
 ParamBin2D (const edm::ParameterSet &config)
 
bool pass (const InputType &input) const override
 
- Public Member Functions inherited from egPM::ParamBin< InputType >
 ParamBin ()
 
virtual ~ParamBin ()
 

Private Types

using XType = decltype(ParamType::x)
 
using YType = decltype(ParamType::y)
 

Private Attributes

std::function< float(const ParamType &)> func_
 
XType xMax_
 
XType xMin_
 
YType yMax_
 
YType yMin_
 

Additional Inherited Members

- Static Protected Member Functions inherited from egPM::ParamBin< InputType >
template<typename ParamType >
static std::function< float(const ParamType &)> makeFunc (const edm::ParameterSet &config)
 
static std::pair< std::string, std::string > readFuncStr (const std::string &inStr)
 

Detailed Description

template<typename InputType, typename ParamType>
class egPM::ParamBin2D< InputType, ParamType >

Definition at line 244 of file EgammaHLTPixelMatchParamObjects.h.

Member Typedef Documentation

template<typename InputType , typename ParamType >
using egPM::ParamBin2D< InputType, ParamType >::XType = decltype(ParamType::x)
private

Definition at line 246 of file EgammaHLTPixelMatchParamObjects.h.

template<typename InputType , typename ParamType >
using egPM::ParamBin2D< InputType, ParamType >::YType = decltype(ParamType::y)
private

Definition at line 247 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

template<typename InputType , typename ParamType >
egPM::ParamBin2D< InputType, ParamType >::ParamBin2D ( const edm::ParameterSet config)
inline

Definition at line 252 of file EgammaHLTPixelMatchParamObjects.h.

252  :
253  xMin_(config.getParameter<typename ConfigType<XType>::type >("xMin")),
254  xMax_(config.getParameter<typename ConfigType<XType>::type >("xMax")),
255  yMin_(config.getParameter<typename ConfigType<YType>::type >("yMin")),
256  yMax_(config.getParameter<typename ConfigType<YType>::type >("yMax")),
257  func_(ParamBin<InputType>::template makeFunc<ParamType>(config))
258  {
259  }
T getParameter(std::string const &) const
std::function< float(const ParamType &)> func_
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:520

Member Function Documentation

template<typename InputType , typename ParamType >
float egPM::ParamBin2D< InputType, ParamType >::operator() ( const InputType &  input) const
inlineoverridevirtual

Implements egPM::ParamBin< InputType >.

Definition at line 264 of file EgammaHLTPixelMatchParamObjects.h.

References egPM::AbsEtaNrClus::pass().

264  {
265  if(!pass(input)) return 0;
266  else return func_(ParamType(input));
267  }
static std::string const input
Definition: EdmProvDump.cc:45
bool pass(const InputType &input) const override
std::function< float(const ParamType &)> func_
template<typename InputType , typename ParamType >
bool egPM::ParamBin2D< InputType, ParamType >::pass ( const InputType &  input) const
inlineoverridevirtual

Implements egPM::ParamBin< InputType >.

Definition at line 261 of file EgammaHLTPixelMatchParamObjects.h.

261  {
262  return ParamType(input).pass(xMin_,xMax_,yMin_,yMax_);
263  }
static std::string const input
Definition: EdmProvDump.cc:45

Member Data Documentation

template<typename InputType , typename ParamType >
std::function<float(const ParamType&)> egPM::ParamBin2D< InputType, ParamType >::func_
private

Definition at line 250 of file EgammaHLTPixelMatchParamObjects.h.

template<typename InputType , typename ParamType >
XType egPM::ParamBin2D< InputType, ParamType >::xMax_
private

Definition at line 248 of file EgammaHLTPixelMatchParamObjects.h.

template<typename InputType , typename ParamType >
XType egPM::ParamBin2D< InputType, ParamType >::xMin_
private

Definition at line 248 of file EgammaHLTPixelMatchParamObjects.h.

template<typename InputType , typename ParamType >
YType egPM::ParamBin2D< InputType, ParamType >::yMax_
private

Definition at line 249 of file EgammaHLTPixelMatchParamObjects.h.

template<typename InputType , typename ParamType >
YType egPM::ParamBin2D< InputType, ParamType >::yMin_
private

Definition at line 249 of file EgammaHLTPixelMatchParamObjects.h.