1 #ifndef MatchLessByDPt_h_
2 #define MatchLessByDPt_h_
14 const C1&
c1,
const C2&
c2) :
18 const std::pair<size_t,size_t>&
p2)
const {
21 const T1& p1_1 =
c1_[p1.first];
22 const T2& p1_2 =
c2_[p1.second];
23 const T1& p2_1 =
c1_[p2.first];
24 const T2& p2_2 =
c2_[p2.second];
25 if ( fabs(p1_1.pt()-p1_2.pt())/p1_2.pt() <
26 fabs(p2_1.pt()-p2_2.pt())/p2_2.pt() )
return true;
bool operator()(const std::pair< size_t, size_t > &p1, const std::pair< size_t, size_t > &p2) const
Container::value_type value_type
MatchLessByDPt(const edm::ParameterSet &cfg, const C1 &c1, const C2 &c2)