CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/Validation/RecoJets/plugins/Balance.h

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