CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/DQMOffline/RecoB/interface/MatchJet.h

Go to the documentation of this file.
00001 #ifndef MatchJet_H
00002 #define MatchJet_H
00003 
00004 #include <vector>
00005 #include <string>
00006 
00007 #include "FWCore/Framework/interface/EventSetup.h"
00008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00009 #include "DataFormats/Common/interface/RefToBaseVector.h"
00010 #include "DataFormats/JetReco/interface/Jet.h"
00011 #include "DQMOffline/RecoB/interface/CorrectJet.h"
00012 
00019 class MatchJet {
00020 
00021  public:
00022   MatchJet() {}
00023   MatchJet(const edm::ParameterSet& pSet);
00024 
00025   void setThreshold(const double& energy) { threshold = energy; }
00026 
00028   void matchCollections(const edm::RefToBaseVector<reco::Jet> & refJets,
00029                         const edm::RefToBaseVector<reco::Jet> & recJets,
00030                         const edm::EventSetup & es);
00031 
00033   edm::RefToBase<reco::Jet>
00034   operator() (const edm::RefToBase<reco::Jet> & recJet) const;
00035 
00036  private:
00037   std::vector<int> refToRec, recToRef;
00038   edm::RefToBaseVector<reco::Jet> refJets;
00039   edm::RefToBaseVector<reco::Jet> recJets;
00040 
00041   CorrectJet refJetCorrector;
00042   CorrectJet recJetCorrector;
00043 
00044   double maxChi2;
00045   double sigmaDeltaR;
00046   double sigmaDeltaE;
00047   double threshold;
00048 };
00049 
00050 #endif