test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  }
type
Definition: HCALResponse.h:21
T getParameter(std::string const &) const
std::function< float(const ParamType &)> func_
def template
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::ParamBin1D< InputType, ParamType >::func_, and egPM::ParamBin1D< InputType, ParamType >::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

Member Data Documentation

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