25 LogInfo(
"ElectronSeedMerger")<<
"Electron SeedMerger started ";
31 produces<ElectronSeedCollection>();
67 vector<bool> TSeedMatched;
68 for (
unsigned int it=0;it<TSeed.size();it++){
69 TSeedMatched.push_back(
false);
74 ElectronSeedCollection::const_iterator e_beg= ESeed.begin();
75 ElectronSeedCollection::const_iterator e_end= ESeed.end();
76 for (;e_beg!=e_end;++e_beg){
79 bool AlreadyMatched =
false;
82 for (
unsigned int it=0;it<TSeed.size();it++){
83 if (AlreadyMatched)
continue;
90 unsigned int hitShared=0;
91 unsigned int hitSeed=0;
92 for (;eh!=eh_end;++eh){
94 if (!eh->isValid())
continue;
99 for (;th!=th_end;++th){
100 if (!th->isValid())
continue;
107 if (Shared) hitShared++;
109 if (hitShared==hitSeed){
111 TSeedMatched[it]=
true;
114 if ( hitShared == (hitSeed-1)){
119 output->push_back(NewSeed);
123 for (
unsigned int it=0;it<TSeed.size();it++){
124 if (!TSeedMatched[it]) output->push_back(TSeed[it]);
T getParameter(std::string const &) const
edm::InputTag tkBasedSeeds_
virtual void produce(edm::Event &, const edm::EventSetup &)
ElectronSeedMerger(const edm::ParameterSet &)
edm::InputTag ecalBasedSeeds_
SEED COLLECTIONS.
void setCtfTrack(const CtfTrackRef &)
Set additional info.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
recHitContainer::const_iterator const_iterator
std::vector< ElectronSeed > ElectronSeedCollection
collection of ElectronSeed objects
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const