Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Validation
RecoJets
plugins
Match.h
Go to the documentation of this file.
1
#ifndef Match_h
2
#define Match_h
3
4
#include "
DataFormats/Math/interface/deltaR.h
"
5
#include "
DataFormats/Candidate/interface/Candidate.h
"
6
7
class
Match
{
8
9
public
:
10
11
Match
(){};
12
~Match
(){};
13
double
operator()
(
const
reco::Candidate
& ref,
const
reco::Candidate
& rec)
14
{
return
reco::deltaR
(ref.
eta
(), ref.
phi
(), rec.
eta
(), rec.
phi
()); };
15
};
16
17
#endif
reco::Candidate
Definition:
Candidate.h:30
Match
Definition:
Match.h:7
reco::deltaR
double deltaR(double eta1, double phi1, double eta2, double phi2)
Definition:
deltaR.h:19
Match::operator()
double operator()(const reco::Candidate &ref, const reco::Candidate &rec)
Definition:
Match.h:13
Candidate.h
deltaR.h
Match::Match
Match()
Definition:
Match.h:11
reco::Candidate::phi
virtual double phi() const =0
momentum azimuthal angle
reco::Candidate::eta
virtual double eta() const =0
momentum pseudorapidity
Match::~Match
~Match()
Definition:
Match.h:12
Generated for CMSSW Reference Manual by
1.8.5