test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:79
bool operator()(const T1 &t1, const T2 &t2) const
Definition: MatchByDR.h:15
MatchByDR(const edm::ParameterSet &cfg)
Definition: MatchByDR.h:13
double maxDR_
Definition: MatchByDR.h:20