CMS 3D CMS Logo

Public Member Functions | Private Attributes

ObjectCountEventSelector< C, S, N, CS > Class Template Reference

#include <ObjectCountEventSelector.h>

Inheritance diagram for ObjectCountEventSelector< C, S, N, CS >:
EventSelectorBase

List of all members.

Public Member Functions

 ObjectCountEventSelector (const edm::ParameterSet &cfg)
 constructor
bool operator() (edm::Event &evt, const edm::EventSetup &)

Private Attributes

select_
 object filter
sizeSelect_
 minimum number of entries in a collection
edm::InputTag src_
 source collection label

Detailed Description

template<typename C, typename S = AnySelector, typename N = MinNumberSelector, typename CS = typename helper::CollectionFilterTrait<C, S, N>::type>
class ObjectCountEventSelector< C, S, N, CS >

Selects an event if a collection has at least N entries

Author:
Luca Lista, INFN
Version:
Revision:
1.2
Id:
ObjectCountEventSelector.h,v 1.2 2010/02/20 20:55:24 wmtan Exp

Definition at line 27 of file ObjectCountEventSelector.h.


Constructor & Destructor Documentation

template<typename C , typename S = AnySelector, typename N = MinNumberSelector, typename CS = typename helper::CollectionFilterTrait<C, S, N>::type>
ObjectCountEventSelector< C, S, N, CS >::ObjectCountEventSelector ( const edm::ParameterSet cfg) [inline, explicit]

constructor

Definition at line 31 of file ObjectCountEventSelector.h.

                                                                   :
    src_( cfg.template getParameter<edm::InputTag>( "src" ) ),
    select_( reco::modules::make<S>( cfg ) ),
    sizeSelect_( reco::modules::make<N>( cfg ) ) {
  }

Member Function Documentation

template<typename C , typename S = AnySelector, typename N = MinNumberSelector, typename CS = typename helper::CollectionFilterTrait<C, S, N>::type>
bool ObjectCountEventSelector< C, S, N, CS >::operator() ( edm::Event evt,
const edm::EventSetup  
) [inline, virtual]

Member Data Documentation

template<typename C , typename S = AnySelector, typename N = MinNumberSelector, typename CS = typename helper::CollectionFilterTrait<C, S, N>::type>
S ObjectCountEventSelector< C, S, N, CS >::select_ [private]

object filter

Definition at line 48 of file ObjectCountEventSelector.h.

Referenced by ObjectCountEventSelector< C, S, N, CS >::operator()().

template<typename C , typename S = AnySelector, typename N = MinNumberSelector, typename CS = typename helper::CollectionFilterTrait<C, S, N>::type>
N ObjectCountEventSelector< C, S, N, CS >::sizeSelect_ [private]

minimum number of entries in a collection

Definition at line 51 of file ObjectCountEventSelector.h.

Referenced by ObjectCountEventSelector< C, S, N, CS >::operator()().

template<typename C , typename S = AnySelector, typename N = MinNumberSelector, typename CS = typename helper::CollectionFilterTrait<C, S, N>::type>
edm::InputTag ObjectCountEventSelector< C, S, N, CS >::src_ [private]

source collection label

Definition at line 45 of file ObjectCountEventSelector.h.

Referenced by ObjectCountEventSelector< C, S, N, CS >::operator()().