#include <EtaAndPtDependentPeakSelector.h>
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_ |
Definition at line 38 of file EtaAndPtDependentPeakSelector.h.
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.
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_.
{ const double lookup = lookupTable_.closest(peak.eta(), log(peak.scale())); return peak.magnitude() > exp(lookup); }
Definition at line 49 of file EtaAndPtDependentPeakSelector.h.
Referenced by operator()().