CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/Validation/RecoJets/plugins/Match.h

Go to the documentation of this file.
00001 #ifndef Match_h
00002 #define Match_h
00003 
00004 #include "DataFormats/Math/interface/deltaR.h"
00005 #include "DataFormats/Candidate/interface/Candidate.h"
00006 
00007 class Match {
00008   
00009  public:
00010 
00011   Match(){};
00012   ~Match(){};
00013   double operator()(const reco::Candidate& ref, const reco::Candidate& rec)
00014   { return reco::deltaR(ref.eta(), ref.phi(), rec.eta(), rec.phi()); };
00015 };
00016 
00017 #endif