Main Page
Namespaces
Classes
Package Documentation
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
(std::istream&
in
)
7
: ip_(fftjet::LinearInterpolator2d::
read
(in)) {}
8
9
EtaAndPtDependentPeakSelector::~EtaAndPtDependentPeakSelector
() {
delete
ip_
; }
10
11
bool
EtaAndPtDependentPeakSelector::operator()
(
const
fftjet::Peak& peak)
const
{
12
const
double
lookup = (*ip_)(peak.eta(),
log
(peak.scale()));
13
return
peak.magnitude() >
exp
(lookup);
14
}
15
16
EtaAndPtLookupPeakSelector::EtaAndPtLookupPeakSelector
(
17
unsigned
nx,
double
xmin
,
double
xmax
,
unsigned
ny,
double
ymin
,
double
ymax
,
const
std::vector<double>&
data
)
18
: lookupTable_(nx, xmin, xmax, ny, ymin, ymax, data) {}
19
20
bool
EtaAndPtLookupPeakSelector::operator()
(
const
fftjet::Peak& peak)
const
{
21
const
double
lookup =
lookupTable_
.
closest
(peak.eta(),
log
(peak.scale()));
22
return
peak.magnitude() >
exp
(lookup);
23
}
24
}
// namespace fftjetcms
EtaAndPtDependentPeakSelector.h
fftjetcms::EtaAndPtLookupPeakSelector::lookupTable_
LookupTable2d lookupTable_
Definition:
EtaAndPtDependentPeakSelector.h:43
L1TOccupancyClient_cfi.ymax
ymax
Definition:
L1TOccupancyClient_cfi.py:43
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:11
fftjetcms::EtaAndPtDependentPeakSelector::~EtaAndPtDependentPeakSelector
~EtaAndPtDependentPeakSelector() override
Definition:
EtaAndPtDependentPeakSelector.cc:9
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
fftjetcms::EtaAndPtDependentPeakSelector::ip_
fftjet::LinearInterpolator2d * ip_
Definition:
EtaAndPtDependentPeakSelector.h:30
fftjetcms::LookupTable2d::closest
double closest(double x, double y) const
Definition:
LookupTable2d.cc:25
fftjetcms::EtaAndPtLookupPeakSelector::EtaAndPtLookupPeakSelector
EtaAndPtLookupPeakSelector(unsigned nx, double xmin, double xmax, unsigned ny, double ymin, double ymax, const std::vector< double > &data)
Definition:
EtaAndPtDependentPeakSelector.cc:16
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition:
TrackerOfflineValidation_Dqm_cff.py:11
fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector
EtaAndPtDependentPeakSelector()=delete
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
readEcalDQMStatus.read
read
Definition:
readEcalDQMStatus.py:38
JetChargeProducer_cfi.exp
exp
Definition:
JetChargeProducer_cfi.py:6
dqm-mbProfile.log
log
Definition:
dqm-mbProfile.py:17
fftjetcms
Definition:
AbsPileupCalculator.h:15
fftjetcms::EtaAndPtLookupPeakSelector::operator()
bool operator()(const fftjet::Peak &peak) const override
Definition:
EtaAndPtDependentPeakSelector.cc:20
L1TOccupancyClient_cfi.ymin
ymin
Definition:
L1TOccupancyClient_cfi.py:43
Generated for CMSSW Reference Manual by
1.8.11