11 std::vector<unsigned> ordered_hits(
hits.size());
12 for (
unsigned i = 0;
i <
hits.size(); ++
i)
15 std::sort(ordered_hits.begin(), ordered_hits.end(), [&](
unsigned i,
unsigned j) {
16 return hits[
i].energy() >
hits[j].energy();
19 for (
const auto&
idx : ordered_hits) {
unsigned detId() const
rechit detId
void update(const edm::EventSetup &) override
static std::string const input
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
void clean(const edm::Handle< reco::PFRecHitCollection > &input, std::vector< bool > &mask) override
edm::ESHandle< EcalPFSeedingThresholds > ths_
float energy() const
rechit energy
ECALPFSeedCleaner(const edm::ParameterSet &conf)