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

Drop type specs for Alignment and EGamma #36635

Merged
merged 4 commits into from
Jan 9, 2022

Conversation

NiharSaha
Copy link
Contributor

PR description:

Drop type specs in DQMOffline/Alignment, DQMOffline/EGamma python configuration files.

Central DQM migration campaign for drop type spces following
https://cms-sw.github.io/cms_coding_rules.html#6--packaging-rules-1
and update the safer syntax for existing parameters like: (1) drop type specifications where the original parameter exists. (2) using "clone" instead of "deepcopy" (3) move all parameters inside the clone

PR validation:

runTheMatrix.py -l limited -i all --ibeos

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 5, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36635/27640

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 5, 2022

A new Pull Request was created by @NiharSaha (Nihar Ranjan Saha) for master.

It involves the following packages:

  • DQMOffline/Alignment (dqm)
  • DQMOffline/EGamma (dqm)

@emanueleusai, @ahmad3213, @cmsbuild, @jfernan2, @pmandrik, @pbo0, @rvenditti can you please review it and eventually sign? Thanks.
@rovere, @lecriste, @rociovilar this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@@ -12,6 +12,8 @@

barrelRecHitProducer = cms.InputTag('reducedEcalRecHitsEB'),
endcapRecHitProducer = cms.InputTag('reducedEcalRecHitsEE'),
barrelRecHitCollection = cms.InputTag (''),
Copy link
Contributor

Choose a reason for hiding this comment

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

@NiharSaha why these additions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

barrelRecHitCollection and endcapRecHitCollection both are in cosmicPhotonAnalyzer_cfi.py, but were not defined photonAnalyzer_cfi.py from where they were imported. Please correct me if I am wrong!

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe they can be dropped in both files since the parameter indeed does not exist in the class:

fName_ = pset.getParameter<string>("analyzerName");
prescaleFactor_ = pset.getUntrackedParameter<int>("prescaleFactor", 1);
photon_token_ = consumes<vector<reco::Photon> >(pset.getParameter<edm::InputTag>("phoProducer"));
barrelRecHit_token_ = consumes<edm::SortedCollection<EcalRecHit, edm::StrictWeakOrdering<EcalRecHit> > >(
pset.getParameter<edm::InputTag>("barrelRecHitProducer"));
PhotonIDLoose_token_ = consumes<edm::ValueMap<bool> >(pset.getParameter<edm::InputTag>("photonIDLoose"));
PhotonIDTight_token_ = consumes<edm::ValueMap<bool> >(pset.getParameter<edm::InputTag>("photonIDTight"));
endcapRecHit_token_ = consumes<edm::SortedCollection<EcalRecHit, edm::StrictWeakOrdering<EcalRecHit> > >(
pset.getParameter<edm::InputTag>("endcapRecHitProducer"));
triggerEvent_token_ = consumes<trigger::TriggerEvent>(pset.getParameter<edm::InputTag>("triggerEvent"));
offline_pvToken_ = consumes<reco::VertexCollection>(
pset.getUntrackedParameter<edm::InputTag>("offlinePV", edm::InputTag("offlinePrimaryVertices")));
minPhoEtCut_ = pset.getParameter<double>("minPhoEtCut");
photonMaxEta_ = pset.getParameter<double>("maxPhoEta");
invMassEtCut_ = pset.getParameter<double>("invMassEtCut");
cutStep_ = pset.getParameter<double>("cutStep");
numberOfSteps_ = pset.getParameter<int>("numberOfSteps");
useBinning_ = pset.getParameter<bool>("useBinning");
useTriggerFiltering_ = pset.getParameter<bool>("useTriggerFiltering");
minimalSetOfHistos_ = pset.getParameter<bool>("minimalSetOfHistos");
excludeBkgHistos_ = pset.getParameter<bool>("excludeBkgHistos");
standAlone_ = pset.getParameter<bool>("standAlone");
isolationStrength_ = pset.getParameter<int>("isolationStrength");
isHeavyIon_ = pset.getUntrackedParameter<bool>("isHeavyIon", false);

The *RecHitProducer are used instead

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 6, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36635/27655

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 6, 2022

Pull request #36635 was updated. @emanueleusai, @ahmad3213, @cmsbuild, @jfernan2, @pmandrik, @pbo0, @rvenditti can you please check and sign again.

@jfernan2
Copy link
Contributor

jfernan2 commented Jan 7, 2022

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 7, 2022

-1

Failed Tests: RelVals
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e2a21b/21559/summary.html
COMMIT: 65e2664
CMSSW: CMSSW_12_3_X_2022-01-06-2300/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36635/21559/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals

----- Begin Fatal Exception 07-Jan-2022 09:50:56 UTC-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'dqmoffline_6_step'
   [2] Calling method for module SuperClusterMerger/'mergedSuperClustersHGC'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for type: std::vector<reco::SuperCluster>
Looking for module label: particleFlowSuperClusterHGCal
Looking for productInstanceName:  

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "SkipEvent = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 07-Jan-2022 09:52:46 UTC-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'dqmoffline_6_step'
   [2] Calling method for module SuperClusterMerger/'mergedSuperClustersHGC'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for type: std::vector<reco::SuperCluster>
Looking for module label: particleFlowSuperClusterHGCal
Looking for productInstanceName:  

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "SkipEvent = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 07-Jan-2022 09:52:58 UTC-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'dqmoffline_6_step'
   [2] Calling method for module SuperClusterMerger/'mergedSuperClustersHGC'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for type: std::vector<reco::SuperCluster>
Looking for module label: particleFlowSuperClusterHGCal
Looking for productInstanceName:  

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "SkipEvent = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------
Expand to see more relval errors ...

mergedSuperClustersHGC = mergedSuperClusters.clone(
src = (
("particleFlowSuperClusterECAL:particleFlowSuperClusterECALBarrel"),
("particleFlowSuperClusterHGCal: ")
Copy link
Contributor

Choose a reason for hiding this comment

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

("particleFlowSuperClusterHGCal")

To avoid the crash

@jfernan2
Copy link
Contributor

jfernan2 commented Jan 9, 2022

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 9, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36635/27684

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 9, 2022

Pull request #36635 was updated. @emanueleusai, @ahmad3213, @jfernan2, @rvenditti, @pbo0, @pmandrik can you please check and sign again.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 9, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e2a21b/21576/summary.html
COMMIT: 82a4a57
CMSSW: CMSSW_12_3_X_2022-01-08-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36635/21576/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 11 differences found in the comparisons
  • DQMHistoTests: Total files compared: 43
  • DQMHistoTests: Total histograms compared: 3461659
  • DQMHistoTests: Total failures: 16
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3461620
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 42 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 181 log files, 42 edm output root files, 43 DQM output files
  • TriggerResults: no differences found

@jfernan2
Copy link
Contributor

jfernan2 commented Jan 9, 2022

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 9, 2022

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, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

perrotta commented Jan 9, 2022

+1

@cmsbuild cmsbuild merged commit 20f76c4 into cms-sw:master Jan 9, 2022
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.

4 participants