test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MatchJet.h
Go to the documentation of this file.
1 #ifndef MatchJet_H
2 #define MatchJet_H
3 
4 #include <vector>
5 #include <string>
6 
12 
19 class MatchJet {
20 
21  public:
22  MatchJet() {}
23  MatchJet(const edm::ParameterSet& pSet);
24 
25  void setThreshold(const double& energy) { threshold = energy; }
26 
30  const edm::EventSetup & es);
31 
34  operator() (const edm::RefToBase<reco::Jet> & recJet) const;
35 
36  private:
37  std::vector<int> refToRec, recToRef;
40 
43 
44  double maxChi2;
45  double sigmaDeltaR;
46  double sigmaDeltaE;
47  double threshold;
48 };
49 
50 #endif
void matchCollections(const edm::RefToBaseVector< reco::Jet > &refJets, const edm::RefToBaseVector< reco::Jet > &recJets, const edm::EventSetup &es)
match the collections
Definition: MatchJet.cc:53
void setThreshold(const double &energy)
Definition: MatchJet.h:25
edm::RefToBaseVector< reco::Jet > refJets
Definition: MatchJet.h:38
std::vector< int > recToRef
Definition: MatchJet.h:37
edm::RefToBaseVector< reco::Jet > recJets
Definition: MatchJet.h:39
double sigmaDeltaE
Definition: MatchJet.h:46
double sigmaDeltaR
Definition: MatchJet.h:45
std::vector< int > refToRec
Definition: MatchJet.h:37
double maxChi2
Definition: MatchJet.h:44
edm::RefToBase< reco::Jet > operator()(const edm::RefToBase< reco::Jet > &recJet) const
Returns the matched &quot;reference&quot; jet.
Definition: MatchJet.cc:113
CorrectJet refJetCorrector
Definition: MatchJet.h:41
CorrectJet recJetCorrector
Definition: MatchJet.h:42
double threshold
Definition: MatchJet.h:47
MatchJet()
Definition: MatchJet.h:22