CMS 3D CMS Logo

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

#include <EgammaHLTPixelMatchParamObjects.h>

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

Public Member Functions

float operator() (const InputType &input) const override
 
 ParamBin3D (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)
 
using ZType = decltype(ParamType::z)
 

Private Attributes

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

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::ParamBin3D< InputType, ParamType >

Definition at line 276 of file EgammaHLTPixelMatchParamObjects.h.

Member Typedef Documentation

◆ XType

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

Definition at line 277 of file EgammaHLTPixelMatchParamObjects.h.

◆ YType

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

Definition at line 278 of file EgammaHLTPixelMatchParamObjects.h.

◆ ZType

template<typename InputType , typename ParamType >
using egPM::ParamBin3D< InputType, ParamType >::ZType = decltype(ParamType::z)
private

Definition at line 279 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

◆ ParamBin3D()

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

Definition at line 287 of file EgammaHLTPixelMatchParamObjects.h.

288  : xMin_(config.getParameter<typename ConfigType<XType>::type>("xMin")),
289  xMax_(config.getParameter<typename ConfigType<XType>::type>("xMax")),
290  yMin_(config.getParameter<typename ConfigType<YType>::type>("yMin")),
291  yMax_(config.getParameter<typename ConfigType<YType>::type>("yMax")),
292  zMin_(config.getParameter<typename ConfigType<ZType>::type>("zMin")),
293  zMax_(config.getParameter<typename ConfigType<ZType>::type>("zMax")),
294  func_(ParamBin<InputType>::template makeFunc<ParamType>(config)) {}
Definition: config.py:1
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:521
std::function< float(const ParamType &)> func_

Member Function Documentation

◆ operator()()

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

Implements egPM::ParamBin< InputType >.

Definition at line 299 of file EgammaHLTPixelMatchParamObjects.h.

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

299  {
300  if (!pass(input))
301  return 0;
302  else
303  return func_(ParamType(input));
304  }
static std::string const input
Definition: EdmProvDump.cc:47
bool pass(const InputType &input) const override
std::function< float(const ParamType &)> func_

◆ pass()

template<typename InputType , typename ParamType >
bool egPM::ParamBin3D< InputType, ParamType >::pass ( const InputType &  input) const
inlineoverridevirtual

Member Data Documentation

◆ func_

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

◆ xMax_

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

◆ xMin_

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

◆ yMax_

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

◆ yMin_

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

◆ zMax_

template<typename InputType , typename ParamType >
ZType egPM::ParamBin3D< InputType, ParamType >::zMax_
private

◆ zMin_

template<typename InputType , typename ParamType >
ZType egPM::ParamBin3D< InputType, ParamType >::zMin_
private