Main Page
Namespaces
Classes
Package Documentation
src
RecoJets
FFTJetAlgorithms
src
EtaAndPtDependentPeakSelector.cc
Go to the documentation of this file.
1
#include <cmath>
2
3
#include "
RecoJets/FFTJetAlgorithms/interface/EtaAndPtDependentPeakSelector.h
"
4
5
namespace
fftjetcms
{
6
EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector
(
7
std::istream&
in
) : ip_(fftjet::LinearInterpolator2d::read(in))
8
{
9
}
10
11
EtaAndPtDependentPeakSelector::~EtaAndPtDependentPeakSelector
()
12
{
13
delete
ip_
;
14
}
15
16
bool
EtaAndPtDependentPeakSelector::operator()
(
const
fftjet::Peak& peak)
17
const
18
{
19
const
double
lookup = (*ip_)(peak.eta(),
log
(peak.scale()));
20
return
peak.magnitude() >
exp
(lookup);
21
}
22
23
EtaAndPtLookupPeakSelector::EtaAndPtLookupPeakSelector
(
24
unsigned
nx,
double
xmin
,
double
xmax
,
25
unsigned
ny,
double
ymin
,
double
ymax
,
26
const
std::vector<double>&
data
)
27
: lookupTable_(nx, xmin, xmax, ny, ymin, ymax, data)
28
{
29
}
30
31
bool
EtaAndPtLookupPeakSelector::operator()
(
const
fftjet::Peak& peak)
32
const
33
{
34
const
double
lookup =
lookupTable_
.
closest
(peak.eta(),
35
log
(peak.scale()));
36
return
peak.magnitude() >
exp
(lookup);
37
}
38
}
EtaAndPtDependentPeakSelector.h
fftjetcms::EtaAndPtLookupPeakSelector::lookupTable_
LookupTable2d lookupTable_
Definition:
EtaAndPtDependentPeakSelector.h:49
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition:
TrackerOfflineValidation_Dqm_cff.py:10
fftjetcms::EtaAndPtDependentPeakSelector::operator()
bool operator()(const fftjet::Peak &peak) const override
Definition:
EtaAndPtDependentPeakSelector.cc:16
Phase2TrackerMonitorDigi_cff.ymin
ymin
Definition:
Phase2TrackerMonitorDigi_cff.py:21
fftjetcms::EtaAndPtDependentPeakSelector::~EtaAndPtDependentPeakSelector
~EtaAndPtDependentPeakSelector() override
Definition:
EtaAndPtDependentPeakSelector.cc:11
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
fftjetcms::EtaAndPtDependentPeakSelector::ip_
fftjet::LinearInterpolator2d * ip_
Definition:
EtaAndPtDependentPeakSelector.h:33
fftjetcms::LookupTable2d::closest
double closest(double x, double y) const
Definition:
LookupTable2d.cc:27
fftjetcms::EtaAndPtLookupPeakSelector::EtaAndPtLookupPeakSelector
EtaAndPtLookupPeakSelector(unsigned nx, double xmin, double xmax, unsigned ny, double ymin, double ymax, const std::vector< double > &data)
Definition:
EtaAndPtDependentPeakSelector.cc:23
Phase2TrackerMonitorDigi_cff.ymax
ymax
Definition:
Phase2TrackerMonitorDigi_cff.py:22
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition:
TrackerOfflineValidation_Dqm_cff.py:11
fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector
EtaAndPtDependentPeakSelector()=delete
cmsBatch.log
log
Definition:
cmsBatch.py:343
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
JetChargeProducer_cfi.exp
exp
Definition:
JetChargeProducer_cfi.py:6
fftjetcms
Definition:
AbsPileupCalculator.h:15
fftjetcms::EtaAndPtLookupPeakSelector::operator()
bool operator()(const fftjet::Peak &peak) const override
Definition:
EtaAndPtDependentPeakSelector.cc:31
Generated for CMSSW Reference Manual by
1.8.11