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 217 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 219 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 223 of file EgammaHLTPixelMatchParamObjects.h.

223  :
224  xMin_(config.getParameter<typename ConfigType<XType>::type >("xMin")),
225  xMax_(config.getParameter<typename ConfigType<XType>::type >("xMax")),
226  func_(ParamBin<InputType>::template makeFunc<ParamType>(config))
227  {
228  }
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 232 of file EgammaHLTPixelMatchParamObjects.h.

References egPM::AbsEtaNrClus::pass().

232  {
233  if(!pass(input)) return 0;
234  else return func_(ParamType(input));
235  }
std::function< float(const ParamType &)> func_
static std::string const input
Definition: EdmProvDump.cc:44
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 229 of file EgammaHLTPixelMatchParamObjects.h.

229  {
230  return ParamType(input).pass(xMin_,xMax_);
231  }
static std::string const input
Definition: EdmProvDump.cc:44

Member Data Documentation

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

Definition at line 221 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 220 of file EgammaHLTPixelMatchParamObjects.h.

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

Definition at line 220 of file EgammaHLTPixelMatchParamObjects.h.