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

Integration of the first version of muon DPG nanoAOD ntuples #38226

Merged
merged 3 commits into from
Jun 5, 2023

Conversation

battibass
Copy link

PR description:

This pull request is a follow-up of the plans about the migration of muon DPG ntuple code to nanoAOD, and its consequent integration in CMSSW.
The project was discussed in previous cross-POG meetings.

As there is no existing place in CMSSW where muon DPG offline analysis code is stored, we propose to add a new package. This was briefly discussed with @perrotta.
The package contains only muon DPG-related nanoAOD stuff, hence it was suggested to add @cms-sw/xpog-l2 as reviewers.

PR validation:

The PR integrates the code, but it does not include modules in workflows for now.
It was tested that code compiles and passes code-format and code-checks.

A test recipe was used to validate the ntuple production:

cmsenv

cd DPGAnalysis/MuonTools/test

voms-proxy-init -voms cms -valid 192:0

cmsRun muDpgNtuples_cfg.py

$CMSSW_RELEASE_BASE/src/PhysicsTools/NanoAOD/test/inspectNanoFile.py MuDPGNtuple_nanoAOD_ZMMPU.root --docmd=doc.md --sizemd=size.md

At the moment of the PR, the recipe runs fine in the latest IB, and produces an ntuple whose type, number and size of branches, match well what shown at cross-POG (total size of event branches, in Run3 ZMM MC including pile-up, is around 3.3 kB / ev)

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 3, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38226/30380

  • This PR adds an extra 44KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 3, 2022

A new Pull Request was created by @battibass (Carlo Battilana) for master.

It involves the following packages:

  • DPGAnalysis/MuonTools (****)

The following packages do not have a category, yet:

DPGAnalysis/MuonTools
Please create a PR for https://github.com/cms-sw/cms-bot/blob/master/categories_map.py to assign category

@cmsbuild can you please review it and eventually sign? Thanks.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@mariadalfonso
Copy link
Contributor

assign xpog

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 3, 2022

New categories assigned: xpog

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

@mariadalfonso
Copy link
Contributor

@battibass

how we do test this centrally ?

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38226/35053

  • This PR adds an extra 140KB to repository

  • Found files with invalid states:

    • DPGAnalysis/MuonTools/plugins/MuNtupleGEMMuonFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleDTTPGThetaFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleGEMRecHitFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleRPCDigiFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleRPCDigiFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleCSCALCTDigiFiller.cc:
    • DPGAnalysis/MuonTools/test/muDpgNtuples_cfg.py:
    • DPGAnalysis/MuonTools/plugins/MuNtupleCSCWireDigiFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleMuonFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleGEMRecHitFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleDTSegmentFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleDTDigiFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleCSCTnPFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleGEMSegmentFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleCSCALCTDigiFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleGEMDigiFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleDTDigiFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuRecoTableProducers.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleGEMSegmentFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleBmtfFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleRPCRecHitFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleRPCRecHitFiller.cc:
    • DPGAnalysis/MuonTools/src/MuRecObjBaseProducer.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleCSCTnPFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleDTTPGThetaFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleGEMMuonFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleCSCWireDigiFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleMuonFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleDTSegmentFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleBmtfFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleDTTPGPhiFiller.cc:
    • DPGAnalysis/MuonTools/plugins/MuNtupleDTTPGPhiFiller.h:
    • DPGAnalysis/MuonTools/plugins/MuNtupleGEMDigiFiller.h:

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2023

Pull request #38226 was updated. @cmsbuild, @simonepigazzini, @swertz, @vlimant can you please check and sign again.

@battibass
Copy link
Author

As discussed during the cross-POG meeting on Feb 8th, here follow a few updates related to the muon DPG NANO.

In a nutshell:

  1. a generic template table producer was added and used to write all DT/CSC/RPC/GEM digi tables;
  2. a generic template table producer was added and used to write all DT/RPC/GEM local-reco tables;
  3. a simpleFlatTableProducer was used to populate the "basic" table for reco muon objects;
  4. (when needed) dedicated producers were slimmed to produce only information that can't be generated by the above table producers;
  5. configuration in python modules, was also adapted to allow for central testing with cmsDriver.py.

Example commands are:

$ cmsDriver.py nano_mu_zmuskim --conditions auto:run3_data_relval -s RAW2DIGI,NANO:DPGAnalysis/MuonTools/muNtupleProducer_cff.muNtupleProducer --datatier NANOAOD --eventcontent NANOAOD --data --process muNANO --scenario pp --era Run3 -n 100 --filein file:/eos/cms/store/data/Run2022E/Muon/RAW-RECO/ZMu-10Dec2022-v2/330000/159d8e9d-7887-4543-a637-203f4c874c48.root 

and:

$ cmsDriver.py nano_mu_bkg --conditions auto:run3_data_relval -s RAW2DIGI,NANO:DPGAnalysis/MuonTools/muNtupleProducerBkg_cff.muNtupleProducerBkg --datatier NANOAOD --eventcontent NANOAOD --data --process muNANO --scenario pp --era Run3 -n 100 --filein file:/eos/cms/store/data/Run2022E/Muon/RAW-RECO/ZMu-10Dec2022-v2/330000/159d8e9d-7887-4543-a637-203f4c874c48.root

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 1, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38226/35747

  • This PR adds an extra 56KB to repository

  • Found files with invalid states:

    • DPGAnalysis/MuonTools/plugins/MuDTSegmentExtTableProducer.h:
    • DPGAnalysis/MuonTools/src/MuBaseFlatTableProducer.h:
    • DPGAnalysis/MuonTools/src/MuNtupleUtils.h:
    • DPGAnalysis/MuonTools/plugins/MuDTMuonExtTableProducer.h:
    • DPGAnalysis/MuonTools/plugins/MuCSCTnPFlatTableProducer.h:
    • DPGAnalysis/MuonTools/plugins/MuDTTPGPhiFlatTableProducer.h:
    • DPGAnalysis/MuonTools/plugins/MuGEMMuonExtTableProducer.h:
    • DPGAnalysis/MuonTools/src/MuDigiBaseProducer.h:
    • DPGAnalysis/MuonTools/plugins/MuDTTPGThetaFlatTableProducer.h:
    • DPGAnalysis/MuonTools/src/MuLocalRecoBaseProducer.h:

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 1, 2023

Pull request #38226 was updated. @cmsbuild, @simonepigazzini, @vlimant can you please check and sign again.

@battibass
Copy link
Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 1, 2023

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5b5595/32938/summary.html
COMMIT: 307ff10
CMSSW: CMSSW_13_2_X_2023-06-01-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/38226/32938/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 21 lines to the logs
  • Reco comparison results: 59 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3221457
  • DQMHistoTests: Total failures: 2234
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3219201
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@simonepigazzini
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2023

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

perrotta commented Jun 5, 2023

+1

@cmsbuild cmsbuild merged commit 7c42f22 into cms-sw:master Jun 5, 2023
battibass pushed a commit to battibass/cmssw that referenced this pull request Jun 8, 2023
battibass pushed a commit to battibass/cmssw that referenced this pull request Oct 14, 2023
@battibass battibass deleted the nanoAOD_muonDPGNtuples branch August 4, 2024 16:36
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.

7 participants