Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
}
fftjetcms::EtaAndPtDependentPeakSelector::~EtaAndPtDependentPeakSelector
~EtaAndPtDependentPeakSelector()
Definition:
EtaAndPtDependentPeakSelector.cc:11
EtaAndPtDependentPeakSelector.h
log
static std::vector< std::string > checklist log
Definition:
LHERunInfoProduct.cc:208
create_public_lumi_plots.exp
tuple exp
Definition:
create_public_lumi_plots.py:1087
fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector
EtaAndPtDependentPeakSelector()
fftjetcms::EtaAndPtLookupPeakSelector::lookupTable_
LookupTable2d lookupTable_
Definition:
EtaAndPtDependentPeakSelector.h:49
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
SiStripMonitorClusterAlca_cfi.ymax
tuple ymax
Definition:
SiStripMonitorClusterAlca_cfi.py:37
fftjetcms::EtaAndPtDependentPeakSelector::ip_
fftjet::LinearInterpolator2d * ip_
Definition:
EtaAndPtDependentPeakSelector.h:33
fftjetcms::EtaAndPtDependentPeakSelector::operator()
bool operator()(const fftjet::Peak &peak) const
Definition:
EtaAndPtDependentPeakSelector.cc:16
SiStripMonitorClusterAlca_cfi.xmin
tuple xmin
Definition:
SiStripMonitorClusterAlca_cfi.py:34
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
fftjetcms::EtaAndPtLookupPeakSelector::operator()
bool operator()(const fftjet::Peak &peak) const
Definition:
EtaAndPtDependentPeakSelector.cc:31
SiPixelLorentzAngle_cfi.read
tuple read
Definition:
SiPixelLorentzAngle_cfi.py:7
SiStripMonitorClusterAlca_cfi.ymin
tuple ymin
Definition:
SiStripMonitorClusterAlca_cfi.py:36
SiStripMonitorClusterAlca_cfi.xmax
tuple xmax
Definition:
SiStripMonitorClusterAlca_cfi.py:35
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
Generated for CMSSW Reference Manual by
1.8.5