CMS 3D CMS Logo

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 override
 

Private Attributes

LookupTable2d lookupTable_
 

Detailed Description

Definition at line 34 of file EtaAndPtDependentPeakSelector.h.

Constructor & Destructor Documentation

◆ EtaAndPtLookupPeakSelector()

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

Definition at line 16 of file EtaAndPtDependentPeakSelector.cc.

18  : lookupTable_(nx, xmin, xmax, ny, ymin, ymax, data) {}

Member Function Documentation

◆ operator()()

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

Definition at line 20 of file EtaAndPtDependentPeakSelector.cc.

20  {
21  const double lookup = lookupTable_.closest(peak.eta(), log(peak.scale()));
22  return peak.magnitude() > exp(lookup);
23  }

References fftjetcms::LookupTable2d::closest(), JetChargeProducer_cfi::exp, dqm-mbProfile::log, and lookupTable_.

Member Data Documentation

◆ lookupTable_

LookupTable2d fftjetcms::EtaAndPtLookupPeakSelector::lookupTable_
private

Definition at line 42 of file EtaAndPtDependentPeakSelector.h.

Referenced by operator()().

fftjetcms::LookupTable2d::closest
double closest(double x, double y) const
Definition: LookupTable2d.cc:25
L1TOccupancyClient_cfi.ymax
ymax
Definition: L1TOccupancyClient_cfi.py:43
fftjetcms::EtaAndPtLookupPeakSelector::lookupTable_
LookupTable2d lookupTable_
Definition: EtaAndPtDependentPeakSelector.h:42
L1TOccupancyClient_cfi.ymin
ymin
Definition: L1TOccupancyClient_cfi.py:43
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition: TrackerOfflineValidation_Dqm_cff.py:11
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition: TrackerOfflineValidation_Dqm_cff.py:10
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6