CMS 3D CMS Logo

MatchByDR.h
Go to the documentation of this file.
1 #ifndef MatchByDR_h_
2 #define MatchByDR_h_
3 
9 
10 namespace reco {
11  template <typename T1, typename T2>
12  class MatchByDR {
13  public:
14  MatchByDR(const edm::ParameterSet& cfg) : maxDR_(cfg.getParameter<double>("maxDeltaR")) {}
15  bool operator()(const T1& t1, const T2& t2) const { return deltaR_(t1, t2) < maxDR_; }
16 
17  private:
19  double maxDR_;
20  };
21 } // namespace reco
22 
23 #endif
Definition: deltaR.h:58
MatchByDR(const edm::ParameterSet &cfg)
Definition: MatchByDR.h:14
fixed size matrix
double maxDR_
Definition: MatchByDR.h:19
DeltaR< T1, T2 > deltaR_
Definition: MatchByDR.h:18
bool operator()(const T1 &t1, const T2 &t2) const
Definition: MatchByDR.h:15