43 auto output = std::make_unique<ElectronSeedCollection>();
54 TSeed = *(TkBasedSeeds.
product());
58 vector<bool> TSeedMatched;
59 for (
unsigned int it = 0; it < TSeed.size(); it++) {
60 TSeedMatched.push_back(
false);
64 ElectronSeedCollection::const_iterator e_beg = ESeed.begin();
65 ElectronSeedCollection::const_iterator e_end = ESeed.end();
66 for (; e_beg != e_end; ++e_beg) {
68 bool AlreadyMatched =
false;
71 for (
unsigned int it = 0; it < TSeed.size(); it++) {
80 unsigned int hitShared = 0;
81 unsigned int hitSeed = 0;
82 for (; eh != eh_end; ++eh) {
89 for (; th != th_end; ++th) {
102 if (hitShared == hitSeed) {
103 AlreadyMatched =
true;
104 TSeedMatched[it] =
true;
107 if (hitShared == (hitSeed - 1)) {
112 output->push_back(NewSeed);
116 for (
unsigned int it = 0; it < TSeed.size(); it++) {
117 if (!TSeedMatched[it])
118 output->push_back(TSeed[it]);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setCtfTrack(const CtfTrackRef &)
Set additional info.
recHitContainer::const_iterator const_iterator
edm::EDGetTokenT< reco::ElectronSeedCollection > ecalSeedToken_
SEED COLLECTIONS.
std::vector< ElectronSeed > ElectronSeedCollection
collection of ElectronSeed objects
T const * product() const
edm::EDGetTokenT< reco::ElectronSeedCollection > tkSeedToken_
bool isUninitialized() const