Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding me0/gemmuon ID to the muon selectors and for miniAOD #18387

Merged
merged 3 commits into from Apr 25, 2017

Conversation

calabria
Copy link
Contributor

@calabria calabria commented Apr 18, 2017

Adding me0muon and gemmuon IDs to the muon selectors and saving me0muons with 3 < pt < 5 gev for the miniAOD. Once we have a stable selection, we will add it.

@kpedro88 @HuguesBrun @jshlee @drkovalskyi

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @calabria (Cesare Calabria) for master.

It involves the following packages:

DataFormats/MuonReco
PhysicsTools/PatAlgos

@perrotta, @cmsbuild, @slava77, @monttj, @davidlange6 can you please review it and eventually sign? Thanks.
@TaiSakuma, @gouskos, @abbiendi, @rappoccio, @mmarionncern, @battibass, @ahinzmann, @acaudron, @jhgoh, @jdolen, @JyothsnaKomaragiri, @ferencek, @trocino, @nhanvtran, @gkasieczka, @schoef, @amagitte, @HuguesBrun, @imarches, @calderona, @mverzett, @gpetruc, @mariadalfonso, @pvmulder, @bachtis this is something you requested to watch as well.
@Muzaffar, @davidlange6, @smuzaffar you are the release manager for this.

cms-bot commands are listed here #13028

@slava77
Copy link
Contributor

slava77 commented Apr 18, 2017

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 18, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/19216/console Started: 2017/04/18 16:02

@kpedro88
Copy link
Contributor

assign upgrade

@cmsbuild
Copy link
Contributor

New categories assigned: upgrade

@kpedro88 you have been requested to review this Pull request/Issue and eventually sign? Thanks

if ( minNumberOfMatches == 0 ) return true;

int nMatch = 0;
for ( std::vector<reco::MuonChamberMatch>::const_iterator chamberMatch = muon.matches().begin();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be a range-based for loop

const double trkY = chamberMatch->y;
const double errY = chamberMatch->yErr;

for ( std::vector<reco::MuonSegmentMatch>::const_iterator segment = chamberMatch->me0Matches.begin(); segment != chamberMatch->me0Matches.end(); ++segment )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be a range-based for loop

if ( minNumberOfMatches == 0 ) return true;

int nMatch = 0;
for ( std::vector<reco::MuonChamberMatch>::const_iterator chamberMatch = muon.matches().begin();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be a range-based for loop

const double trkY = chamberMatch->y;
const double errY = chamberMatch->yErr;

for ( std::vector<reco::MuonSegmentMatch>::const_iterator segment = chamberMatch->gemMatches.begin(); segment != chamberMatch->gemMatches.end(); ++segment )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be a range-based for loop

if ( nMatch >= minNumberOfMatches ) return true;
else return false;
} // ME0Mu
if ( type == GEMMu )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This case looks like a duplicate of the previous case with different parameters... code duplication could be reduced by making a common function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I am not sure if this is really needed, because gemMuons won't be used standalone. Anyway I added a new function because it is not said the two will be the same in the future. I don't think it is the case to spend time on this now, if this can not remain as it is, I will remove it.

@@ -89,6 +89,10 @@ def miniAOD_customizeCommon(process):
#
process.selectedPatJets.cut = cms.string("pt > 10")
process.selectedPatMuons.cut = cms.string("pt > 5 || isPFMuon || (pt > 3 && (isGlobalMuon || isStandAloneMuon || numberOfMatches > 0 || muonID('RPCMuLoose')))")

from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
if phase2_muon.isChosen():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use toModify(), not isChosen()

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18387/19216/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 1868 differences found in the comparisons
  • DQMHistoTests: Total files compared: 23
  • DQMHistoTests: Total histograms compared: 1819476
  • DQMHistoTests: Total failures: 35453
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 1783850
  • DQMHistoTests: Total skipped: 173
  • DQMHistoTests: Total Missing objects: 0
  • Checked 94 log files, 14 edm output root files, 23 DQM output files

@cmsbuild
Copy link
Contributor

Pull request #18387 was updated. @perrotta, @cmsbuild, @slava77, @monttj, @davidlange6 can you please check and sign again.

@cmsbuild
Copy link
Contributor

Pull request #18387 was updated. @perrotta, @cmsbuild, @slava77, @monttj, @davidlange6 can you please check and sign again.

@perrotta
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 21, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/19317/console Started: 2017/04/21 14:59

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18387/19317/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 3518 differences found in the comparisons
  • DQMHistoTests: Total files compared: 23
  • DQMHistoTests: Total histograms compared: 1826239
  • DQMHistoTests: Total failures: 30506
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 1795560
  • DQMHistoTests: Total skipped: 173
  • DQMHistoTests: Total Missing objects: 0
  • Checked 94 log files, 14 edm output root files, 23 DQM output files

@slava77
Copy link
Contributor

slava77 commented Apr 22, 2017

This is an incremental effect of adding the GEMMuonArbitrated in ttbar PU200:

all_sign903-patvssign903-pass-62079e4-pat_ttbar14tev2023d11puwf24234p0c_patmuons_slimmedmuons__dqm_obj_eta
about 25% increase in the GEM acceptance region.
I think that some cleanup will be needed to this eventually as likely a large fraction of the increment is fakes.

This is a combined effect of the PR:
all_sign903-patvsorig-pat_ttbar14tev2023d11puwf24234p0c_patmuons_slimmedmuons__dqm_obj_eta
ME0 adds significantly above eta of 2.4 or so as expected since it extends the acceptance.

muons are used in MET significance and it looks like the additions made do not significantly affect the significance in ZMM events (with PU200)
all_sign903-patvsorig-pat_zmm14tev2023d12puwf24650p0c_patmets_slimmedmets__dqm_obj_significance

Something to be followed up:
wf24650zmmpu200_slimmu_vs_reco

  • DQMOffline/PFTau/interface/Matchers.h needs a fix in what comes with slimmedLikeSelection

@slava77
Copy link
Contributor

slava77 commented Apr 22, 2017

+1

for #18387 b14ea18

  • updates related to phase-2 muons (GEMs will need to be added for Run-3 at some point in the future when corresponding workflows show up)
  • jenkins tests pass and comparisons with baseline show differences in slimmedMuons in phase-2 workflows having an increase in the number of entries
  • local tests with miniAOD step running on ZMM and ttbar PU200 phase-2 setup show roughly expected behavior (see notes earlier).
    • The slimmedMuons collection size on disk goes up by about 30% in the ttbar sample, which is about 3% increase.
    • increments seen from GEMs alone suggest that the reco selections are too loose

Some follow up PR should also update the slimmedMuons DQM to be aware of the updated selection.

@kpedro88
Copy link
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants