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> class MatchByDR {
12  public:
14  maxDR_(cfg.getParameter<double>("maxDeltaR")) {}
15  bool operator() (const T1& t1, const T2& t2) const {
16  return deltaR_(t1,t2)<maxDR_;
17  }
18  private:
20  double maxDR_;
21  };
22 }
23 
24 
25 #endif
DeltaR< T1, T2 > deltaR_
Definition: MatchByDR.h:19
Definition: deltaR.h:57
bool operator()(const T1 &t1, const T2 &t2) const
Definition: MatchByDR.h:15
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16
MatchByDR(const edm::ParameterSet &cfg)
Definition: MatchByDR.h:13
fixed size matrix
double maxDR_
Definition: MatchByDR.h:20