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 Attributes
fftjetcms::EtaAndPtLookupPeakSelector Class Reference

#include <EtaAndPtDependentPeakSelector.h>

Inheritance diagram for fftjetcms::EtaAndPtLookupPeakSelector:

Public Member Functions

 EtaAndPtLookupPeakSelector (unsigned nx, double xmin, double xmax, unsigned ny, double ymin, double ymax, const std::vector< double > &data)
 
bool operator() (const fftjet::Peak &peak) const
 

Private Attributes

LookupTable2d lookupTable_
 

Detailed Description

Definition at line 38 of file EtaAndPtDependentPeakSelector.h.

Constructor & Destructor Documentation

fftjetcms::EtaAndPtLookupPeakSelector::EtaAndPtLookupPeakSelector ( unsigned  nx,
double  xmin,
double  xmax,
unsigned  ny,
double  ymin,
double  ymax,
const std::vector< double > &  data 
)

Definition at line 23 of file EtaAndPtDependentPeakSelector.cc.

27  : lookupTable_(nx, xmin, xmax, ny, ymin, ymax, data)
28  {
29  }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82

Member Function Documentation

bool fftjetcms::EtaAndPtLookupPeakSelector::operator() ( const fftjet::Peak &  peak) const

Definition at line 31 of file EtaAndPtDependentPeakSelector.cc.

References fftjetcms::LookupTable2d::closest(), create_public_lumi_plots::exp, create_public_lumi_plots::log, and lookupTable_.

33  {
34  const double lookup = lookupTable_.closest(peak.eta(),
35  log(peak.scale()));
36  return peak.magnitude() > exp(lookup);
37  }
double closest(double x, double y) const

Member Data Documentation

LookupTable2d fftjetcms::EtaAndPtLookupPeakSelector::lookupTable_
private

Definition at line 49 of file EtaAndPtDependentPeakSelector.h.

Referenced by operator()().