Hi Slava,

PFProducer needs to be migrated to getByToken in general.
I don't know who can be considered responsible for this PF producers, 
not EGM ....
I have already informed about Luca and Patrizia of this needed 
migration. Probably Anton can take care of this?

cheers,
Daniele


On 10/28/13 10:39 PM, slava77 wrote:
>
> In RecoParticleFlow/PFProducer/plugins/PFProducer.cc:
>
> > +    edm::Handle<edm::View<reco::PFCandidate> > pfEgammaCandidates;
> > +
> > +    found=iEvent.getByLabel(inputTagPFEGammaCandidates_,pfEgammaCandidates);
> > +
> > +    if(!found ) {
> > +      std::ostringstream err;
> > +      err<<" cannot get PFEGammaCandidates: "
> > +	 << inputTagPFEGammaCandidates_ <<std::endl;
> > +      edm::LogError("PFProducer")<<err.str();
> > +      throw cms::Exception( "MissingProduct", err.str());
> > +    }
> > +
> > +    // Get the value maps
> > +
> > +    edm::Handle<edm::ValueMap<reco::GsfElectronRef> > valueMapGedElectrons;
> > +    found = iEvent.getByLabel(inputTagValueMapGedElectrons_,valueMapGedElectrons);
>
> Need to migrate this to getByToken
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/cms-sw/cmssw/pull/1174/files#r7264567>.
>