CMS 3D CMS Logo

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

#include <EgammaHLTPixelMatchParamObjects.h>

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

Public Member Functions

float operator() (const InputType &input) const override
 
 ParamBin1D (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)
 

Private Attributes

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

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

Definition at line 220 of file EgammaHLTPixelMatchParamObjects.h.

Member Typedef Documentation

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

Definition at line 222 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

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

Definition at line 226 of file EgammaHLTPixelMatchParamObjects.h.

226  :
227  xMin_(config.getParameter<typename ConfigType<XType>::type >("xMin")),
228  xMax_(config.getParameter<typename ConfigType<XType>::type >("xMax")),
229  func_(ParamBin<InputType>::template makeFunc<ParamType>(config))
230  {
231  }
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::ParamBin1D< InputType, ParamType >::operator() ( const InputType &  input) const
inlineoverridevirtual

Implements egPM::ParamBin< InputType >.

Definition at line 235 of file EgammaHLTPixelMatchParamObjects.h.

References egPM::AbsEtaNrClus::pass().

235  {
236  if(!pass(input)) return 0;
237  else return func_(ParamType(input));
238  }
std::function< float(const ParamType &)> func_
static std::string const input
Definition: EdmProvDump.cc:45
bool pass(const InputType &input) const override
template<typename InputType , typename ParamType >
bool egPM::ParamBin1D< InputType, ParamType >::pass ( const InputType &  input) const
inlineoverridevirtual

Implements egPM::ParamBin< InputType >.

Definition at line 232 of file EgammaHLTPixelMatchParamObjects.h.

232  {
233  return ParamType(input).pass(xMin_,xMax_);
234  }
static std::string const input
Definition: EdmProvDump.cc:45

Member Data Documentation

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

Definition at line 224 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 223 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 223 of file EgammaHLTPixelMatchParamObjects.h.