38 auto redGeneralTracksCollection = std::make_unique<TrackCollection>();
39 auto redGeneralTracksExtraCollection = std::make_unique<TrackExtraCollection>();
41 reco::GsfElectronCollection::const_iterator eleIt;
43 for (eleIt = electronCollection->begin(); eleIt != electronCollection->end(); eleIt++) {
50 redGeneralTracksCollection->push_back(*track);
51 if (generalTracksExtraHandle.isValid())
52 redGeneralTracksExtraCollection->push_back(*(track->extra()));
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
#define DEFINE_FWK_MODULE(type)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
bool isNull() const
Checks for null.
std::string alcaTrackCollection_
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackExtraCollection > generalTracksExtraToken_
std::string alcaTrackExtraCollection_