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

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

Definition at line 244 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 249 of file EgammaHLTPixelMatchParamObjects.h.

249  :
250  xMin_(config.getParameter<typename ConfigType<XType>::type >("xMin")),
251  xMax_(config.getParameter<typename ConfigType<XType>::type >("xMax")),
252  yMin_(config.getParameter<typename ConfigType<YType>::type >("yMin")),
253  yMax_(config.getParameter<typename ConfigType<YType>::type >("yMax")),
254  func_(ParamBin<InputType>::template makeFunc<ParamType>(config))
255  {
256  }
type
Definition: HCALResponse.h:21
T getParameter(std::string const &) const
std::function< float(const ParamType &)> func_
def template
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 261 of file EgammaHLTPixelMatchParamObjects.h.

References egPM::ParamBin2D< InputType, ParamType >::func_, and egPM::ParamBin2D< InputType, ParamType >::pass().

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

Member Data Documentation

template<typename InputType , typename ParamType >
std::function<float(const ParamType&)> egPM::ParamBin2D< InputType, ParamType >::func_
private
template<typename InputType , typename ParamType >
XType egPM::ParamBin2D< InputType, ParamType >::xMax_
private
template<typename InputType , typename ParamType >
XType egPM::ParamBin2D< InputType, ParamType >::xMin_
private
template<typename InputType , typename ParamType >
YType egPM::ParamBin2D< InputType, ParamType >::yMax_
private
template<typename InputType , typename ParamType >
YType egPM::ParamBin2D< InputType, ParamType >::yMin_
private