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);
102 iEvent.
put(oSeeds,preidgsfLabel);
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()));
118 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)
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.