Fixed. Just updated the PR
N.
______________________________________

Nancy Marinelli

Research Associate Professor
University of Notre Dame, IN, US

CERN, Bdg 40/3-A01, 1211 Geneva,

SWITZERLAND

Phone +41-22-76-70809, fax +41-22-76-78940

From: deguio <notifications@github.com<mailto:notifications@github.com>>
Reply-To: cms-sw/cmssw <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Fri, 9 May 2014 01:25:48 -0700
To: cms-sw/cmssw <cmssw@noreply.github.com<mailto:cmssw@noreply.github.com>>
Cc: Nancy Marinelli <nancy.marinelli@cern.ch<mailto:nancy.marinelli@cern.ch>>
Subject: Re: [cmssw] DQMOffline/EGamma: Replace a getByLabel with getByToken (#3750)


In DQMOffline/EGamma/plugins/ZToMuMuGammaAnalyzer.cc:

> @@ -563,7 +563,8 @@ void ZToMuMuGammaAnalyzer::analyze( const edm::Event& e, const edm::EventSetup&
>    edm::Handle<edm::ValueMap<std::vector<reco::PFCandidateRef> > > phoToParticleBasedIsoMapHandle;
>    edm::ValueMap<std::vector<reco::PFCandidateRef> > phoToParticleBasedIsoMap;
>    if ( fName_ == "zmumugammaGedValidation") {
> -    e.getByLabel("particleBasedIsolation",valueMapPhoPFCandIso_,phoToParticleBasedIsoMapHandle);
> +   e.getByToken(photonIsoValmap_token_,phoToParticleBasedIsoMapHandle);
> +    //   e.getByLabel("particleBasedIsolation",valueMapPhoPFCandIso_,phoToParticleBasedIsoMapHandle);


here you were using the label "particleBasedIsolation"
which is not appearing anymore in the getByToken call. you can probably add it in valueMapPhoToParticleBasedIso input tag in the cfi.

—
Reply to this email directly or view it on GitHub<https://github.com/cms-sw/cmssw/pull/3750/files#r12467370>.