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++) {
57 TrackRef track = (eleIt-> closestCtfTrackRef());
63 redGeneralTracksCollection->push_back(*track);
64 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
#define DEFINE_FWK_MODULE(type)
~AlCaElectronTracksReducer() override
void produce(edm::Event &, const edm::EventSetup &) override
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
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_