33 : ecalSeedToken_{consumes<ElectronSeedCollection>(iConfig.
getParameter<
InputTag>(
"EcalBasedSeeds"))} {
35 if (!tkSeedLabel_.
label().empty())
36 tkSeedToken_ = consumes<ElectronSeedCollection>(tkSeedLabel_);
38 produces<ElectronSeedCollection>();
44 auto output = std::make_unique<ElectronSeedCollection>();
59 vector<bool> TSeedMatched;
60 for (
unsigned int it = 0; it < TSeed.size(); it++) {
61 TSeedMatched.push_back(
false);
65 ElectronSeedCollection::const_iterator e_beg = ESeed.begin();
66 ElectronSeedCollection::const_iterator e_end = ESeed.end();
67 for (; e_beg != e_end; ++e_beg) {
69 bool AlreadyMatched =
false;
72 for (
unsigned int it = 0; it < TSeed.size(); it++) {
81 unsigned int hitShared = 0;
82 unsigned int hitSeed = 0;
83 for (; eh != eh_end; ++eh) {
90 for (; th != th_end; ++th) {
103 if (hitShared == hitSeed) {
104 AlreadyMatched =
true;
105 TSeedMatched[it] =
true;
108 if (hitShared == (hitSeed - 1)) {
113 output->push_back(NewSeed);
117 for (
unsigned int it = 0; it < TSeed.size(); it++) {
118 if (!TSeedMatched[it])
119 output->push_back(TSeed[it]);