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
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
fftjetcms
Definition:
AbsPileupCalculator.h:15
fftjetcms::LookupTable2d::closest
double closest(double x, double y) const
Definition:
LookupTable2d.cc:25
fftjetcms::EtaAndPtDependentPeakSelector::operator()
bool operator()(const fftjet::Peak &peak) const override
Definition:
EtaAndPtDependentPeakSelector.cc:11
fftjetcms::EtaAndPtDependentPeakSelector::ip_
fftjet::LinearInterpolator2d * ip_
Definition:
EtaAndPtDependentPeakSelector.h:29
L1TOccupancyClient_cfi.ymax
ymax
Definition:
L1TOccupancyClient_cfi.py:43
fftjetcms::EtaAndPtDependentPeakSelector::~EtaAndPtDependentPeakSelector
~EtaAndPtDependentPeakSelector() override
Definition:
EtaAndPtDependentPeakSelector.cc:9
fftjetcms::EtaAndPtLookupPeakSelector::lookupTable_
LookupTable2d lookupTable_
Definition:
EtaAndPtDependentPeakSelector.h:42
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
readEcalDQMStatus.read
read
Definition:
readEcalDQMStatus.py:38
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
fftjetcms::EtaAndPtLookupPeakSelector::operator()
bool operator()(const fftjet::Peak &peak) const override
Definition:
EtaAndPtDependentPeakSelector.cc:20
fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector
EtaAndPtDependentPeakSelector()=delete
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition:
TrackerOfflineValidation_Dqm_cff.py:10
JetChargeProducer_cfi.exp
exp
Definition:
JetChargeProducer_cfi.py:6
EtaAndPtDependentPeakSelector.h
Generated for CMSSW Reference Manual by
1.8.16