CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Match.h
Go to the documentation of this file.
1 #ifndef Match_h
2 #define Match_h
3 
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
Definition: Match.h:7
double deltaR(double eta1, double phi1, double eta2, double phi2)
Definition: deltaR.h:19
double operator()(const reco::Candidate &ref, const reco::Candidate &rec)
Definition: Match.h:13
Match()
Definition: Match.h:11
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity
~Match()
Definition: Match.h:12