CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
fftjetcms::EtaAndPtDependentPeakSelector Class Reference

#include <EtaAndPtDependentPeakSelector.h>

Inheritance diagram for fftjetcms::EtaAndPtDependentPeakSelector:

Public Member Functions

 EtaAndPtDependentPeakSelector (std::istream &in)
 
 EtaAndPtDependentPeakSelector ()=delete
 
 EtaAndPtDependentPeakSelector (const EtaAndPtDependentPeakSelector &)=delete
 
bool isValid () const
 
bool operator() (const fftjet::Peak &peak) const override
 
EtaAndPtDependentPeakSelectoroperator= (const EtaAndPtDependentPeakSelector &)=delete
 
 ~EtaAndPtDependentPeakSelector () override
 

Private Attributes

fftjet::LinearInterpolator2d * ip_
 

Detailed Description

Definition at line 17 of file EtaAndPtDependentPeakSelector.h.

Constructor & Destructor Documentation

fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector ( std::istream &  in)
explicit
fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector ( )
delete
fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector ( const EtaAndPtDependentPeakSelector )
delete
fftjetcms::EtaAndPtDependentPeakSelector::~EtaAndPtDependentPeakSelector ( )
override

Definition at line 9 of file EtaAndPtDependentPeakSelector.cc.

References ip_.

9 { delete ip_; }

Member Function Documentation

bool fftjetcms::EtaAndPtDependentPeakSelector::isValid ( void  ) const
inline
bool fftjetcms::EtaAndPtDependentPeakSelector::operator() ( const fftjet::Peak &  peak) const
override

Definition at line 11 of file EtaAndPtDependentPeakSelector.cc.

References funct::exp(), and log.

11  {
12  const double lookup = (*ip_)(peak.eta(), log(peak.scale()));
13  return peak.magnitude() > exp(lookup);
14  }
static std::vector< std::string > checklist log
Exp< T >::type exp(const T &t)
Definition: Exp.h:22
EtaAndPtDependentPeakSelector& fftjetcms::EtaAndPtDependentPeakSelector::operator= ( const EtaAndPtDependentPeakSelector )
delete

Member Data Documentation

fftjet::LinearInterpolator2d* fftjetcms::EtaAndPtDependentPeakSelector::ip_
private

Definition at line 29 of file EtaAndPtDependentPeakSelector.h.

Referenced by isValid(), and ~EtaAndPtDependentPeakSelector().