Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CommonTools_UtilAlgos_CollectionInCollectionFilter_h
0002 #define CommonTools_UtilAlgos_CollectionInCollectionFilter_h
0003 
0004 /** \class CollectionInCollectionFilter
0005  *
0006  * Filters an event if the total sum of the entries of a collection of collections has at least N entries
0007  * 
0008  * \author Marco Musich
0009  *
0010  * \version $Revision: 1.1 $
0011  *
0012  * $Id: CollectionInCollectionFilter.h,v 1.1 2024/09/23 11:00:00  Exp $
0013  *
0014  */
0015 
0016 #include "CommonTools/UtilAlgos/interface/ParameterAdapter.h"
0017 #include "CommonTools/UtilAlgos/interface/CollectionInCollectionFilterTrait.h"
0018 #include "CommonTools/UtilAlgos/interface/EventSelectorAdapter.h"
0019 #include "CommonTools/UtilAlgos/interface/CollectionCountEventSelector.h"
0020 
0021 template <typename C,
0022           typename S = AnySelector,
0023           typename N = MinNumberSelector,
0024           typename CS = typename helper::CollectionInCollectionFilterTrait<C, S, N>::type>
0025 struct CollectionInCollectionFilter {
0026   typedef EventSelectorAdapter<CollectionCountEventSelector<C, S, N, CS> > type;
0027 };
0028 
0029 #endif