70 _electrons1(iConfig.getParameter< edm::
InputTag > (
"col1")),
71 _electrons2(iConfig.getParameter< edm::
InputTag > (
"col2"))
74 produces<reco::GsfElectronCollection>();
97 std::vector< edm::Handle<reco::GsfElectronCollection> > cols;
104 cols.push_back(tks1);
105 cols.push_back(tks2);
111 std::vector< edm::Handle< reco::GsfElectronCollection > >::iterator it = cols.begin();
112 for(;it != cols.end(); ++it)
115 for ( reco::GsfElectronCollection::const_iterator itT = (*it)->begin() ; itT != (*it)->end(); ++itT)
124 finalCollection->push_back(*itT);
129 iEvent.
put(finalCollection);
#define DEFINE_FWK_MODULE(type)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
edm::InputTag _electrons1
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &, const edm::EventSetup &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag _electrons2
GSFElectronsMixer(const edm::ParameterSet &)