Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CommonTools
UtilAlgos
interface
MatchLessByDEta.h
Go to the documentation of this file.
1
#ifndef MatchLessByDEta_h_
2
#define MatchLessByDEta_h_
3
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
9
namespace
reco
{
10
template
<
typename
C1,
typename
C2>
11
struct
MatchLessByDEta
{
12
public
:
13
MatchLessByDEta
(
const
edm::ParameterSet
&
cfg
,
const
C1&
c1
,
const
C2& c2) :
c1_
(c1),
c2_
(c2) {}
14
bool
operator()
(
const
std::pair<size_t, size_t>&
p1
,
const
std::pair<size_t, size_t>&
p2
)
const
{
15
typedef
typename
C1::value_type
T1;
16
typedef
typename
C2::value_type
T2;
17
const
T1& p1_1 =
c1_
[p1.first];
18
const
T2& p1_2 =
c2_
[p1.second];
19
const
T1& p2_1 =
c1_
[p2.first];
20
const
T2& p2_2 =
c2_
[p2.second];
21
if
(fabs(p1_1.eta() - p1_2.eta()) < fabs(p2_1.eta() - p2_2.eta()))
22
return
true
;
23
return
false
;
24
}
25
26
private
:
27
const
C1&
c1_
;
28
const
C2&
c2_
;
29
};
30
}
// namespace reco
31
32
#endif
looper.cfg
tuple cfg
Definition:
looper.py:296
reco::MatchLessByDEta::operator()
bool operator()(const std::pair< size_t, size_t > &p1, const std::pair< size_t, size_t > &p2) const
Definition:
MatchLessByDEta.h:14
fireworks::p2
const TString p2
Definition:
fwPaths.cc:13
alignmentValidation.c1
tuple c1
do drawing
Definition:
alignmentValidation.py:1025
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:111
ParameterSet.h
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
fireworks::p1
const TString p1
Definition:
fwPaths.cc:12
reco::MatchLessByDEta
Definition:
MatchLessByDEta.h:11
reco::MatchLessByDEta::c2_
const C2 & c2_
Definition:
MatchLessByDEta.h:28
edm::ParameterSet
Definition:
ParameterSet.h:47
reco::MatchLessByDEta::c1_
const C1 & c1_
Definition:
MatchLessByDEta.h:27
reco::MatchLessByDEta::MatchLessByDEta
MatchLessByDEta(const edm::ParameterSet &cfg, const C1 &c1, const C2 &c2)
Definition:
MatchLessByDEta.h:13
Generated for CMSSW Reference Manual by
1.8.5