1 #ifndef RecoAlgos_SortCollectionSelector_h
2 #define RecoAlgos_SortCollectionSelector_h
22 namespace edm {
class Event; }
33 typedef std::pair<reference, size_t>
pair;
45 for(
size_t idx = 0;
idx < c->size(); ++
idx)
46 v.push_back(std::make_pair(&(*c)[
idx], idx));
56 return cmp_(*t1.first, *t2.first);
const InputCollection::value_type * reference
std::vector< const typename OutputCollection::value_type * > type
container::const_iterator const_iterator
InputCollection collection
SortCollectionSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
void select(const edm::Handle< InputCollection > &c, const edm::Event &, const edm::EventSetup &)
U second(std::pair< T, U > const &p)
const_iterator begin() const
bool operator()(const pair &t1, const pair &t2) const
Container::value_type value_type
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
PairComparator(const Comparator &cmp)
const_iterator end() const
std::pair< reference, size_t > pair