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