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

Member Typedef Documentation

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

Definition at line 270 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 271 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 272 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

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

Definition at line 279 of file EgammaHLTPixelMatchParamObjects.h.

279  :
280  xMin_(config.getParameter<typename ConfigType<XType>::type >("xMin")),
281  xMax_(config.getParameter<typename ConfigType<XType>::type >("xMax")),
282  yMin_(config.getParameter<typename ConfigType<YType>::type >("yMin")),
283  yMax_(config.getParameter<typename ConfigType<YType>::type >("yMax")),
284  zMin_(config.getParameter<typename ConfigType<ZType>::type >("zMin")),
285  zMax_(config.getParameter<typename ConfigType<ZType>::type >("zMax")),
286  func_(ParamBin<InputType>::template makeFunc<ParamType>(config))
287  {
288  }
T getParameter(std::string const &) const
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:520
std::function< float(const ParamType &)> func_

Member Function Documentation

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

Implements egPM::ParamBin< InputType >.

Definition at line 293 of file EgammaHLTPixelMatchParamObjects.h.

References egPM::AbsEtaNrClus::pass().

293  {
294  if(!pass(input)) return 0;
295  else return func_(ParamType(input));
296  }
static std::string const input
Definition: EdmProvDump.cc:44
bool pass(const InputType &input) const override
std::function< float(const ParamType &)> func_
template<typename InputType , typename ParamType >
bool egPM::ParamBin3D< InputType, ParamType >::pass ( const InputType &  input) const
inlineoverridevirtual

Member Data Documentation

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

Definition at line 277 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 274 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 274 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 275 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 275 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 276 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 276 of file EgammaHLTPixelMatchParamObjects.h.