CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RefSelector.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_RefSelector_h
2 #define CommonTools_Utils_RefSelector_h
3 
4 template<typename S>
5 struct RefSelector {
6  RefSelector( const S & sel ) : sel_( sel ) { }
7  template<typename Ref>
8  bool operator()( const Ref & ref ) const {
9  return sel_( * ref );
10  }
11 private:
13 };
14 
15 #endif
RefSelector(const S &sel)
Definition: RefSelector.h:6
bool operator()(const Ref &ref) const
Definition: RefSelector.h:8
double S(const TLorentzVector &, const TLorentzVector &)
Definition: Particle.cc:99