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

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

Definition at line 274 of file EgammaHLTPixelMatchParamObjects.h.

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

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

282  :
283  xMin_(config.getParameter<typename ConfigType<XType>::type >("xMin")),
284  xMax_(config.getParameter<typename ConfigType<XType>::type >("xMax")),
285  yMin_(config.getParameter<typename ConfigType<YType>::type >("yMin")),
286  yMax_(config.getParameter<typename ConfigType<YType>::type >("yMax")),
287  zMin_(config.getParameter<typename ConfigType<ZType>::type >("zMin")),
288  zMax_(config.getParameter<typename ConfigType<ZType>::type >("zMax")),
289  func_(ParamBin<InputType>::template makeFunc<ParamType>(config))
290  {
291  }
T getParameter(std::string const &) const
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:521
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 296 of file EgammaHLTPixelMatchParamObjects.h.

References egPM::AbsEtaNrClus::pass().

296  {
297  if(!pass(input)) return 0;
298  else return func_(ParamType(input));
299  }
static std::string const input
Definition: EdmProvDump.cc:48
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 280 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 277 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 277 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 278 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 278 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 279 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 279 of file EgammaHLTPixelMatchParamObjects.h.