CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DeltaPhiMinPairSelector.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_DeltaPhiMinPairSelector_h
2 #define CommonTools_Utils_DeltaPhiMinPairSelector_h
3 /* \class DeltaPhiMinPairSelector
4  *
5  * \author Luca Lista, INFN
6  *
7  * $Id: DeltaPhiMinPairSelector.h,v 1.1 2007/06/19 15:39:08 llista Exp $
8  */
10 
12  DeltaPhiMinPairSelector( double deltaPhiMin ) :
13  deltaPhiMin_( deltaPhiMin ) { }
14  template<typename T1, typename T2>
15  bool operator()( const T1 & t1, const T2 & t2 ) const {
16  return deltaPhi( t1.phi(), t2.phi() ) > deltaPhiMin_;
17  }
18 
19 private:
20  double deltaPhiMin_;
21 };
22 
23 
24 #endif
bool operator()(const T1 &t1, const T2 &t2) const
DeltaPhiMinPairSelector(double deltaPhiMin)