#include <ObjectCountEventSelector.h>
Public Member Functions | |
ObjectCountEventSelector (const edm::ParameterSet &cfg) | |
constructor | |
bool | operator() (edm::Event &evt, const edm::EventSetup &) |
Private Attributes | |
S | select_ |
object filter | |
N | sizeSelect_ |
minimum number of entries in a collection | |
edm::InputTag | src_ |
source collection label |
Selects an event if a collection has at least N entries
Definition at line 27 of file ObjectCountEventSelector.h.
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 ) ) { }
bool ObjectCountEventSelector< C, S, N, CS >::operator() | ( | edm::Event & | evt, |
const edm::EventSetup & | |||
) | [inline, virtual] |
Implements EventSelectorBase.
Definition at line 37 of file ObjectCountEventSelector.h.
References align_tpl::filter, edm::Event::getByLabel(), ObjectCountEventSelector< C, S, N, CS >::select_, ObjectCountEventSelector< C, S, N, CS >::sizeSelect_, LaserTracksInput_cfi::source, and ObjectCountEventSelector< C, S, N, CS >::src_.
{ edm::Handle<C> source; evt.getByLabel( src_, source ); return CS::filter( * source, select_, sizeSelect_ ); }
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()().
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()().
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()().