Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
UtilAlgos
interface
MatchByDEta.h
Go to the documentation of this file.
1
#ifndef MatchByDEta_h_
2
#define MatchByDEta_h_
3
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
9
namespace
reco
{
10
template
<
typename
T1,
typename
T2>
class
MatchByDEta
{
11
public
:
12
MatchByDEta
(
const
edm::ParameterSet
& cfg) :
13
maxDEta_
(cfg.getParameter<double>(
"maxDeltaEta"
)) {}
14
bool
operator()
(
const
T1& t1,
const
T2& t2)
const
{
15
return
fabs(t1.eta()-t2.eta()) <
maxDEta_
;
16
}
17
private
:
18
double
maxDEta_
;
19
};
20
}
21
22
23
#endif
reco::MatchByDEta::operator()
bool operator()(const T1 &t1, const T2 &t2) const
Definition:
MatchByDEta.h:14
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
reco::MatchByDEta::MatchByDEta
MatchByDEta(const edm::ParameterSet &cfg)
Definition:
MatchByDEta.h:12
ParameterSet.h
reco::MatchByDEta::maxDEta_
double maxDEta_
Definition:
MatchByDEta.h:18
reco::MatchByDEta
Definition:
MatchByDEta.h:10
edm::ParameterSet
Definition:
ParameterSet.h:35
Generated for CMSSW Reference Manual by
1.8.5