29 preidgsfLabel = iConfig.
getParameter<
string>(
"PreGsfLabel");
37 produces<reco::ElectronSeedCollection>(preidgsfLabel);
38 produces<reco::PreIdCollection>(preidLabel);
39 produces<ValueMap<reco::PreIdRef> >(preidLabel);
42 oldTracksToken = consumes<reco::TrackCollection>(oldTracksTag);
43 newTracksToken = consumes<reco::TrackCollection>(newTracksTag);
44 seedsToken = consumes<reco::ElectronSeedCollection>(
seedsTag);
45 idsToken = consumes<reco::PreIdCollection >(idsTag);
46 idMapToken = consumes<ValueMap<reco::PreIdRef> >(idsTag) ;
90 for(
unsigned int s = 0;
s<iSeeds->size();++
s){
91 oSeeds->push_back(iSeeds->at(
s));
92 TrackRef newTrackRef(newTracks,oSeeds->back().ctfTrack().index());
93 oSeeds->back().setCtfTrack(newTrackRef);
96 for(
unsigned int i = 0;
i<iIds->size();++
i){
97 oIds->push_back(iIds->at(
i));
98 TrackRef newTrackRef(newTracks,oIds->back().trackRef().index());
99 oIds->back().setTrack(newTrackRef);
106 for(
unsigned int t = 0;
t<newTracks->size();++
t){
107 if(t < oldTracks->
size()){
109 values.push_back(
PreIdRef(preIdProd,(*(iIdMap.
product()))[oldTrackRef].index()));
115 mapFiller.
insert(newTracks,values.begin(),values.end());
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< reco::PreId > PreIdCollection
void produce(edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ElectronSeedTrackRefFix(const edm::ParameterSet &)
void addDefault(ParameterSetDescription const &psetDescription)
~ElectronSeedTrackRefFix() override
std::vector< ElectronSeed > ElectronSeedCollection
collection of ElectronSeed objects
edm::Ref< reco::PreIdCollection > PreIdRef
T const * product() const