template<typename Comparator, typename Arbitrator>
class pat::GenericDuplicateRemover< Comparator, Arbitrator >
Definition at line 11 of file GenericDuplicateRemover.h.
template<typename Comparator , typename Arbitrator >
template<typename Collection >
Indices of duplicated items to remove Comparator is used to check for duplication, Arbiter to pick the best one e.g. comparator(x1, x2) should return true if they are duplicates arbitrator(x1, x2) should return true if x1 is better, that is we want to keep x1 and delete x2 Collection can be vector, View, or anything with the same interface
Definition at line 40 of file GenericDuplicateRemover.h.
References i, runTheMatrix::ret, and findQualityFiles::size.
Referenced by pat::DuplicatedPhotonRemover::duplicatesBySeed(), pat::DuplicatedPhotonRemover::duplicatesBySuperCluster(), pat::DuplicatedElectronRemover::duplicatesToRemove(), edmIntegrityCheck.IntegrityCheck::report(), edmIntegrityCheck.IntegrityCheck::structured(), and edmIntegrityCheck.IntegrityCheck::test().
44 std::vector<bool> bad(size,
false);
46 for (
size_t ie = 0; ie <
size; ++ie) {
47 if (bad[ie])
continue;
49 for (
size_t je = ie+1; je <
size; ++je) {
51 if (bad[je])
continue;
60 std::auto_ptr< std::vector<size_t> >
ret(
new std::vector<size_t>());
62 for (
size_t i = 0;
i <
size; ++
i) {
63 if (bad[
i])
ret->push_back(i);
tuple ret
prodAgent to be discontinued
tuple size
Write out results.