Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-15 01:25:01

0001 #ifndef CommonTools_UtilAlgos_ObjectCountFilter_h
0002 #define CommonTools_UtilAlgos_ObjectCountFilter_h
0003 
0004 /** \class ObjectCountFilter
0005  *
0006  * Filters an event if a collection has at least N entries
0007  * 
0008  * \author Luca Lista, INFN
0009  *
0010  * \version $Revision: 1.2 $
0011  *
0012  * $Id: ObjectCountFilter.h,v 1.2 2009/04/08 11:35:00 veelken Exp $
0013  *
0014  */
0015 
0016 #include "CommonTools/UtilAlgos/interface/ParameterAdapter.h"
0017 #include "CommonTools/UtilAlgos/interface/CollectionFilterTrait.h"
0018 #include "CommonTools/UtilAlgos/interface/EventSelectorAdapter.h"
0019 #include "CommonTools/UtilAlgos/interface/ObjectCountEventSelector.h"
0020 
0021 template <typename C,
0022           typename S = AnySelector,
0023           typename N = MinNumberSelector,
0024           typename CS = typename helper::CollectionFilterTrait<C, S, N>::type>
0025 struct ObjectCountFilter {
0026   typedef EventSelectorAdapter<ObjectCountEventSelector<C, S, N, CS> > type;
0027 };
0028 
0029 #endif