30 preidgsfLabel = iConfig.
getParameter<
string>(
"PreGsfLabel");
38 produces<reco::ElectronSeedCollection>(preidgsfLabel);
39 produces<reco::PreIdCollection>(preidLabel);
40 produces<ValueMap<reco::PreIdRef> >(preidLabel);
43 oldTracksToken = consumes<reco::TrackCollection>(oldTracksTag);
44 newTracksToken = consumes<reco::TrackCollection>(newTracksTag);
45 seedsToken = consumes<reco::ElectronSeedCollection>(seedsTag);
46 idsToken = consumes<reco::PreIdCollection >(idsTag);
47 idMapToken = consumes<ValueMap<reco::PreIdRef> >(idsTag) ;
91 for(
unsigned int s = 0;
s<iSeeds->size();++
s){
92 oSeeds->push_back(iSeeds->at(
s));
93 TrackRef newTrackRef(newTracks,oSeeds->back().ctfTrack().index());
94 oSeeds->back().setCtfTrack(newTrackRef);
97 for(
unsigned int i = 0;
i<iIds->size();++
i){
98 oIds->push_back(iIds->at(
i));
99 TrackRef newTrackRef(newTracks,oIds->back().trackRef().index());
100 oIds->back().setTrack(newTrackRef);
103 iEvent.
put(oSeeds,preidgsfLabel);
107 for(
unsigned int t = 0;
t<newTracks->size();++
t){
108 if(t < oldTracks->
size()){
110 values.push_back(
PreIdRef(preIdProd,(*(iIdMap.product()))[oldTrackRef].index()));
119 iEvent.
put(oIdMap,preidLabel);
T getParameter(std::string const &) const
std::vector< reco::PreId > PreIdCollection
virtual void produce(edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void insert(const H &h, I begin, I end)
virtual void beginJob() override
virtual void endJob() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ElectronSeedTrackRefFix(const edm::ParameterSet &)
void addDefault(ParameterSetDescription const &psetDescription)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< ElectronSeed > ElectronSeedCollection
collection of ElectronSeed objects
edm::Ref< reco::PreIdCollection > PreIdRef
~ElectronSeedTrackRefFix()
tuple size
Write out results.