47 auto redGeneralTracksCollection = std::make_unique<TrackCollection>();
48 auto redGeneralTracksExtraCollection = std::make_unique<TrackExtraCollection>();
50 reco::GsfElectronCollection::const_iterator eleIt;
52 for (eleIt=electronCollection->begin(); eleIt!=electronCollection->end(); eleIt++) {
59 redGeneralTracksCollection->push_back(*track);
60 if(generalTracksExtraHandle.
isValid()) redGeneralTracksExtraCollection->push_back(*(track->extra()));
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > generalTracksToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
AlCaElectronTracksReducer(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~AlCaElectronTracksReducer() override
void produce(edm::Event &, const edm::EventSetup &) override
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
bool isNull() const
Checks for null.
std::string alcaTrackCollection_
T const * product() const
edm::EDGetTokenT< reco::TrackExtraCollection > generalTracksExtraToken_
std::string alcaTrackExtraCollection_