#include <CaloDigiCollectionSorter.h>
Classes | |
class | CaloDigiSortByMaxBin |
embedded class to be used as a sort predicate More... | |
Public Member Functions | |
CaloDigiCollectionSorter (int bin) | |
template<class T > | |
std::vector< T > | sortedVector (const edm::SortedCollection< T > &input) const |
Private Attributes | |
int | theMaxBin |
For test purposes, users might want to sort a collection of digis to find the highest energies. This class does that, and should work for all ECAL and HCAL digi types
Rick Wilkinson
Definition at line 17 of file CaloDigiCollectionSorter.h.
CaloDigiCollectionSorter::CaloDigiCollectionSorter | ( | int | bin | ) | [inline] |
Definition at line 19 of file CaloDigiCollectionSorter.h.
std::vector<T> CaloDigiCollectionSorter::sortedVector | ( | const edm::SortedCollection< T > & | input | ) | const [inline] |
takes a digi collection and returns a vector of digis, sorted by the peak bin
Definition at line 40 of file CaloDigiCollectionSorter.h.
References i, query::result, edm::SortedCollection< T, SORT >::size(), python::multivaluedict::sort(), and theMaxBin.
int CaloDigiCollectionSorter::theMaxBin [private] |
Definition at line 53 of file CaloDigiCollectionSorter.h.
Referenced by sortedVector().