#include <SortCollectionSelector.h>
Classes | |
struct | PairComparator |
Public Types | |
typedef InputCollection | collection |
Public Member Functions | |
const_iterator | begin () const |
const_iterator | end () const |
void | select (const edm::Handle< InputCollection > &c, const edm::Event &, const edm::EventSetup &) |
SortCollectionSelector (const edm::ParameterSet &cfg) | |
Private Types | |
typedef container::const_iterator | const_iterator |
typedef StoreContainer | container |
typedef std::pair< reference, size_t > | pair |
typedef const InputCollection::value_type * | reference |
Private Attributes | |
RefAdder | addRef_ |
PairComparator | compare_ |
unsigned int | maxNumber_ |
StoreContainer | selected_ |
selects the first N elements based on a sorting algorithm
Definition at line 27 of file SortCollectionSelector.h.
typedef InputCollection SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::collection |
Definition at line 29 of file SortCollectionSelector.h.
typedef container::const_iterator SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::const_iterator [private] |
Definition at line 34 of file SortCollectionSelector.h.
typedef StoreContainer SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::container [private] |
Definition at line 33 of file SortCollectionSelector.h.
typedef std::pair<reference, size_t> SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::pair [private] |
Definition at line 32 of file SortCollectionSelector.h.
typedef const InputCollection::value_type* SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::reference [private] |
Definition at line 31 of file SortCollectionSelector.h.
SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::SortCollectionSelector | ( | const edm::ParameterSet & | cfg | ) | [inline] |
Definition at line 37 of file SortCollectionSelector.h.
: compare_(Comparator()), maxNumber_(cfg.template getParameter<unsigned int>("maxNumber")) { }
const_iterator SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::begin | ( | void | ) | const [inline] |
Definition at line 40 of file SortCollectionSelector.h.
References SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::selected_.
{ return selected_.begin(); }
const_iterator SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::end | ( | void | ) | const [inline] |
Definition at line 41 of file SortCollectionSelector.h.
References SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::selected_.
{ return selected_.end(); }
void SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::select | ( | const edm::Handle< InputCollection > & | c, |
const edm::Event & | , | ||
const edm::EventSetup & | |||
) | [inline] |
Definition at line 42 of file SortCollectionSelector.h.
References SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::addRef_, SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::compare_, i, SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::maxNumber_, edm::second(), SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::selected_, python::multivaluedict::sort(), and v.
RefAdder SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::addRef_ [private] |
Definition at line 62 of file SortCollectionSelector.h.
Referenced by SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::select().
PairComparator SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::compare_ [private] |
Definition at line 59 of file SortCollectionSelector.h.
Referenced by SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::select().
unsigned int SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::maxNumber_ [private] |
Definition at line 60 of file SortCollectionSelector.h.
Referenced by SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::select().
StoreContainer SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::selected_ [private] |
Definition at line 61 of file SortCollectionSelector.h.
Referenced by SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::begin(), SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::end(), and SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >::select().