Parent Directory
|
Revision Log
|
Revision Graph
Revision 1.1 - (view) (download)
| 1 : | llista | 1.1 | #ifndef RecoAlgos_PtMinSelector_h |
| 2 : | #define RecoAlgos_PtMinSelector_h | ||
| 3 : | /* \class PtMinSelector | ||
| 4 : | * | ||
| 5 : | * \author Luca Lista, INFN | ||
| 6 : | * | ||
| 7 : | * $Id: PtMinSelector.h,v 1.1 2006/07/24 10:09:08 llista Exp $ | ||
| 8 : | */ | ||
| 9 : | #include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
| 10 : | |||
| 11 : | template<typename T> | ||
| 12 : | struct PtMinSelector { | ||
| 13 : | PtMinSelector( double ptMin ) : | ||
| 14 : | ptMin_( ptMin ) { } | ||
| 15 : | PtMinSelector( const edm::ParameterSet & cfg ) : | ||
| 16 : | ptMin_( cfg.template getParameter<double>( "ptMin" ) ) { } | ||
| 17 : | bool operator()( const T & t ) { return t.pt() > ptMin_; } | ||
| 18 : | private: | ||
| 19 : | double ptMin_; | ||
| 20 : | }; | ||
| 21 : | |||
| 22 : | #endif |
| CERN LCG CVS service | ViewVC Help |
| Powered by ViewVC 1.0.9 |