47 std::auto_ptr< TrackCollection > redGeneralTracksCollection (
new TrackCollection) ;
48 std::auto_ptr< TrackExtraCollection > redGeneralTracksExtraCollection (
new TrackExtraCollection) ;
50 reco::GsfElectronCollection::const_iterator eleIt;
52 for (eleIt=electronCollection->begin(); eleIt!=electronCollection->end(); eleIt++) {
55 TrackRef track = (eleIt-> closestTrack() ) ;
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_
AlCaElectronTracksReducer(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< Track > TrackCollection
collection of Tracks
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
bool isNull() const
Checks for null.
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
std::string alcaTrackCollection_
edm::EDGetTokenT< reco::TrackExtraCollection > generalTracksExtraToken_
~AlCaElectronTracksReducer()
std::string alcaTrackExtraCollection_