cmssw icon indicating copy to clipboard operation
cmssw copied to clipboard

Do we still need to support the muon reco duplicate mitigation in PhysicsTools/PatUtils?

Open perrotta opened this issue 3 years ago • 10 comments

While reviewing PR #33307 it was evident that we keep spending time and effort in maintaining some code which is quite likely not needed any more in CMSSW:

  • PhysicsTools/PatUtils/python/tools/muonRecoMitigation.py assumes the existence of a PFCandPtrProjector plugin, which is not found anywhere in CMSSW, not even in 9_1_X (which is the release where this config was introduced with #18165)
  • That muon reco duplicate mitigation is only required by corMETFromMuonAndEG, which is defined in PhysicsTools/​PatUtils/​python/​tools/​corMETFromMuonAndEG.py and only called by PhysicsTools/PatAlgos/python/slimming/extraSlimmedMETs_MuEGFixMoriond2017.py,;which according to the name is quite likely not in use any more
  • Moreover, muCorrection=False in there, and therefore this muonRecoMitigation wasn't actually ever accessed even from there.

The main point is the following: do we still need to support the muon reco duplicate mitigation in corMETFromMuonAndEG? Do we need to keep supporting corMETFromMuonAndEG at all? Couldn't they be safely removed from the release?

@zdemirag @kirschen @lathomas @ahinzmann @mariadalfonso

perrotta avatar Apr 12 '21 09:04 perrotta

A new Issue was created by @perrotta .

@Dr15Jones, @dpiparo, @silviodonato, @smuzaffar, @makortel, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

cmsbuild avatar Apr 12 '21 09:04 cmsbuild

assign xpog, reconstruction

perrotta avatar Apr 12 '21 09:04 perrotta

New categories assigned: reconstruction,xpog

@slava77,@fgolf,@mariadalfonso,@perrotta,@jpata,@gouskos you have been requested to review this Pull request/Issue and eventually sign? Thanks

cmsbuild avatar Apr 12 '21 09:04 cmsbuild

bringing this up with @michaelwassmer, the current MET reco contact.

jpata avatar Feb 09 '22 18:02 jpata

type jetmet

jpata avatar May 17 '22 08:05 jpata

To my best knowledge, this isn't used anymore. Also, the corresponding MET filters https://github.com/cms-sw/cmssw/blob/master/RecoMET/METFilters/python/badGlobalMuonTaggersAOD_cff.py and https://github.com/cms-sw/cmssw/blob/master/RecoMET/METFilters/python/badGlobalMuonTaggersMiniAOD_cff.py seem not to be recommended anymore, see https://twiki.cern.ch/twiki/bin/viewauth/CMS/MissingETOptionalFiltersRun2.

michaelwassmer avatar May 17 '22 10:05 michaelwassmer

Right, these can't be used because they are relying on old, removed code. Likely the best solution would be to remove these modules.

jpata avatar May 17 '22 10:05 jpata

IMO it was a mistake to let go of #33307 without enforcing the cleanup. Now the cost of tracking this issue on a cold iron is larger. @michaelwassmer : is this something that was followed up on with a PR ?

vlimant avatar Sep 30 '22 14:09 vlimant

@vlimant I'm not sure I understand what the issue is. Could you explain?

michaelwassmer avatar Oct 05 '22 09:10 michaelwassmer

I don't know much more than what the PR description says https://github.com/cms-sw/cmssw/issues/33406#issue-855779681 looks like there are some python configuration files configuring modules that do not exist anymore ?

vlimant avatar Oct 05 '22 09:10 vlimant

there is essentially some cleanup to be done from within https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/PatUtils/python/tools/corMETFromMuonAndEG.py to ever have the chance at calling PFCandPtrProjector which does not exists.

Is that something you could make a 13.0 PR for @michaelwassmer ? it might be a good occasion to review and streamline what this functions are doing. that looks very unnaturally complicated to me

vlimant avatar Dec 16 '22 11:12 vlimant

So should we just remove this stuff? As far as I understood the discussion above, these things aren't used anymore, right?

michaelwassmer avatar Dec 20 '22 14:12 michaelwassmer

yes

vlimant avatar Jan 03 '23 15:01 vlimant

Ok, I'll try to get this done today or tomorrow. Edit: Done, see https://github.com/cms-sw/cmssw/pull/40591 .

michaelwassmer avatar Jan 23 '23 07:01 michaelwassmer

+1

  • Fixed by https://github.com/cms-sw/cmssw/pull/40591, thank you @michaelwassmer

perrotta avatar Jan 26 '23 16:01 perrotta