CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AndPairSelector.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_AndPairSelector_h
2 #define CommonTools_Utils_AndPairSelector_h
3 /* \class AndPairSelector
4  *
5  * \author Luca Lista, INFN
6  *
7  * $Id: AndPairSelector.h,v 1.1 2009/02/24 14:40:26 llista Exp $
8  */
9 
10 template<typename S1, typename S2>
12  AndPairSelector(const S1 & s1, const S2 & s2) : s1_(s1), s2_(s2) { }
13  template<typename T1, typename T2>
14  bool operator()(const T1 & t1, const T2 & t2) const {
15  return s1_(t1) && s2_(t2);
16  }
17 private:
18  S1 s1_;
19  S2 s2_;
20 };
21 
22 #endif
AndPairSelector(const S1 &s1, const S2 &s2)
bool operator()(const T1 &t1, const T2 &t2) const
tuple s2
Definition: indexGen.py:106