RecoJets
FFTJetAlgorithms
interface
EtaAndPtDependentPeakSelector.h
Go to the documentation of this file.
1
#ifndef RecoJets_FFTJetAlgorithm_EtaAndPtDependentPeakSelector_h
2
#define RecoJets_FFTJetAlgorithm_EtaAndPtDependentPeakSelector_h
3
4
#include "fftjet/Peak.hh"
5
#include "fftjet/SimpleFunctors.hh"
6
#include "fftjet/LinearInterpolator2d.hh"
7
8
#include "
RecoJets/FFTJetAlgorithms/interface/LookupTable2d.h
"
9
10
namespace
fftjetcms
{
11
//
12
// Interpolation is linear in eta, log(scale), and log(magnitude).
13
// It is assumed that the first variable in the table is eta and
14
// the second is log(scale). It is assumed that the table value
15
// is log(magnitude).
16
//
17
class
EtaAndPtDependentPeakSelector
:
public
fftjet::Functor1<bool, fftjet::Peak> {
18
public
:
19
explicit
EtaAndPtDependentPeakSelector
(std::istream&
in
);
20
~EtaAndPtDependentPeakSelector
()
override
;
21
22
bool
operator()
(
const
fftjet::Peak& peak)
const override
;
23
inline
bool
isValid
()
const
{
return
ip_
; }
24
25
private
:
26
EtaAndPtDependentPeakSelector
() =
delete
;
27
EtaAndPtDependentPeakSelector
(
const
EtaAndPtDependentPeakSelector
&) =
delete
;
28
EtaAndPtDependentPeakSelector
&
operator=
(
const
EtaAndPtDependentPeakSelector
&) =
delete
;
29
30
fftjet::LinearInterpolator2d*
ip_
;
31
};
32
33
// Similar class which does not perform linear interpolation but
34
// simply looks up in a histogram-like table
35
class
EtaAndPtLookupPeakSelector
:
public
fftjet::Functor1<bool, fftjet::Peak> {
36
public
:
37
EtaAndPtLookupPeakSelector
(
38
unsigned
nx,
double
xmin
,
double
xmax
,
unsigned
ny,
double
ymin
,
double
ymax
,
const
std::vector<double>&
data
);
39
40
bool
operator()
(
const
fftjet::Peak& peak)
const override
;
41
42
private
:
43
LookupTable2d
lookupTable_
;
44
};
45
}
// namespace fftjetcms
46
47
#endif // RecoJets_FFTJetAlgorithm_EtaAndPtDependentPeakSelector_h
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::EtaAndPtDependentPeakSelector::operator()
bool operator()(const fftjet::Peak &peak) const override
Definition:
EtaAndPtDependentPeakSelector.cc:11
fftjetcms::EtaAndPtDependentPeakSelector::ip_
fftjet::LinearInterpolator2d * ip_
Definition:
EtaAndPtDependentPeakSelector.h:30
LookupTable2d.h
L1TOccupancyClient_cfi.ymax
ymax
Definition:
L1TOccupancyClient_cfi.py:43
fftjetcms::EtaAndPtDependentPeakSelector::isValid
bool isValid() const
Definition:
EtaAndPtDependentPeakSelector.h:23
fftjetcms::EtaAndPtDependentPeakSelector::~EtaAndPtDependentPeakSelector
~EtaAndPtDependentPeakSelector() override
Definition:
EtaAndPtDependentPeakSelector.cc:9
fftjetcms::EtaAndPtDependentPeakSelector::operator=
EtaAndPtDependentPeakSelector & operator=(const EtaAndPtDependentPeakSelector &)=delete
fftjetcms::EtaAndPtLookupPeakSelector::lookupTable_
LookupTable2d lookupTable_
Definition:
EtaAndPtDependentPeakSelector.h:43
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
L1TOccupancyClient_cfi.ymin
ymin
Definition:
L1TOccupancyClient_cfi.py:43
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition:
TrackerOfflineValidation_Dqm_cff.py:11
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::LookupTable2d
Definition:
LookupTable2d.h:7
fftjetcms::EtaAndPtLookupPeakSelector
Definition:
EtaAndPtDependentPeakSelector.h:35
fftjetcms::EtaAndPtDependentPeakSelector::EtaAndPtDependentPeakSelector
EtaAndPtDependentPeakSelector()=delete
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition:
TrackerOfflineValidation_Dqm_cff.py:10
fftjetcms::EtaAndPtDependentPeakSelector
Definition:
EtaAndPtDependentPeakSelector.h:17
Generated for CMSSW Reference Manual by
1.8.16