Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:18

0001 #ifndef RecoAlgos_EtMinSelector_h
0002 #define RecoAlgos_EtMinSelector_h
0003 /* \class EtMinSelector
0004  *
0005  * \author Luca Lista, INFN
0006  *
0007  * $Id: EtMinSelector.h,v 1.5 2007/06/18 18:33:53 llista Exp $
0008  */
0009 
0010 struct EtMinSelector {
0011   EtMinSelector(double etMin) : etMin_(etMin) {}
0012   template <typename T>
0013   bool operator()(const T& t) const {
0014     return t.et() >= etMin_;
0015   }
0016 
0017 private:
0018   double etMin_;
0019 };
0020 
0021 #endif