54 auto output = std::make_unique<ElectronSeedCollection>();
65 TSeed = *(TkBasedSeeds.
product());
70 vector<bool> TSeedMatched;
71 for (
unsigned int it=0;it<TSeed.size();it++){
72 TSeedMatched.push_back(
false);
77 ElectronSeedCollection::const_iterator e_beg= ESeed.begin();
78 ElectronSeedCollection::const_iterator e_end= ESeed.end();
79 for (;e_beg!=e_end;++e_beg){
82 bool AlreadyMatched =
false;
85 for (
unsigned int it=0;it<TSeed.size();it++){
86 if (AlreadyMatched)
continue;
93 unsigned int hitShared=0;
94 unsigned int hitSeed=0;
95 for (;eh!=eh_end;++eh){
97 if (!eh->isValid())
continue;
102 for (;th!=th_end;++th){
103 if (!th->isValid())
continue;
110 if (Shared) hitShared++;
112 if (hitShared==hitSeed){
114 TSeedMatched[it]=
true;
117 if ( hitShared == (hitSeed-1)){
122 output->push_back(NewSeed);
126 for (
unsigned int it=0;it<TSeed.size();it++){
127 if (!TSeedMatched[it])
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