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

Adjust collections of Tracker clusters to be saved for Phase-2 ALCARECO #40323

Merged
merged 2 commits into from
Dec 17, 2022

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Dec 15, 2022

PR description:

This is a follow-up of PR #39858.
After the backport of that PR (#39898) was integrated, it was possible to test the production of RelVal samples (see e.g. on DAS: /RelValMinBias_14TeV/CMSSW_12_5_2-TkAlMinBias-125X_mcRun4_realistic_v3_2026D88PU-v1/ALCARECO).
When trying to run over it, it became clear that is not possible to refit tracks, due to the missing event products (the Phase-2 Outer Tracker clusters) that are necessary for CPE re-computation, leading to this error:

Begin processing the 1st record. Run 1, Event 301, LumiSection 4 on stream 6 at 13-Dec-2022 12:50:01.219 CET
----- Begin Fatal Exception 13-Dec-2022 12:50:57 CET-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 4 event: 306 stream: 2
   [1] Running path 'p2'
   [2] Calling method for module TrackRefitter/'FinalTrackRefitter'
Exception Message:
RefCore: A request to resolve a reference to a product of type 'edmNew::DetSetVector<Phase2TrackerCluster1D>' with ProductID '4:449'
can not be satisfied because the product cannot be found.
Probably the branch containing the product is not stored in the input file.
   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 -------------------------------------------------

This PR adds the minimal amount of changes in the CommonTools/RecoAlgos package in order to be able to retain the Phase-2 OT clusters after running the AlignmentTrackSelector module that relies on it:

// the following include is necessary to clone all track branches
// including recoTrackExtras and TrackingRecHitsOwned (in future also "owned clusters"?).
// if you remove it the code will compile, but the cloned
// tracks have only the recoTracks branch!
#include "CommonTools/RecoAlgos/interface/TrackSelector.h"

This is done in commit f5efa50.
Secondly the outputCommands of all the Tracker Alignment ALCARECO producers is modified in order to retain Phase2TrackerCluster1DedmNewDetSetVector in the output - in case the production is run for Phase-2 - while removing SiStripClusteredmNewDetSetVector (since there is no SiStrip detector in phase-2). I profit of that to re-adjust the commands for event contents to cope with no SCAL in Run3 that were leftover from #38415 and #38590.
This is done in commit 7ef7e84.

PR validation:

Run two typical workflows for Run-3 and Phase-2 with

runTheMatrix.py -l 11634.0,20834.0 -t 4 -j 8 --ibeos

And tested the event content of TkAlMinBias indeed changes as expected.

If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:

Not a backport, but to be backported down to 12.5.X in order to be used for the production happening in that cycle for L1T studies.

@mmusich
Copy link
Contributor Author

mmusich commented Dec 15, 2022

FYI: @consuegs @antoniovagnerini

@mmusich
Copy link
Contributor Author

mmusich commented Dec 15, 2022

type trk

@cmsbuild cmsbuild added the trk label Dec 15, 2022
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40323/33405

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @mmusich (Marco Musich) for master.

It involves the following packages:

  • Alignment/CommonAlignmentProducer (alca)
  • CommonTools/RecoAlgos (reconstruction)
  • DataFormats/TrackerRecHit2D (reconstruction)

@malbouis, @yuanchao, @ChrisMisan, @clacaputo, @cmsbuild, @saumyaphor4252, @tvami, @mandrenguyen, @francescobrivio can you please review it and eventually sign? Thanks.
@pakhotin, @rappoccio, @jdolen, @tlampen, @VourMa, @adewit, @ahinzmann, @abbiendi, @JanFSchulte, @rovere, @VinInn, @missirol, @gkasieczka, @tocheng, @hatakeyamak, @gpetruc, @mmusich, @mtosi, @jhgoh this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@mmusich
Copy link
Contributor Author

mmusich commented Dec 15, 2022

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: RelVals RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1f07ce/29630/summary.html
COMMIT: 7ef7e84
CMSSW: CMSSW_13_0_X_2022-12-14-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/40323/29630/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals

  • 138.4138.4_PromptCollisions2021/step2_PromptCollisions2021.log
  • 138.5138.5_ExpressCollisions2021/step2_ExpressCollisions2021.log
  • 140.53140.53_RunHI2011/step2_RunHI2011.log
Expand to see more relval errors ...

RelVals-INPUT

  • 4.64.6_MinimumBias2010A/step2_MinimumBias2010A.log
  • 138.4138.4_PromptCollisions2021/step2_PromptCollisions2021.log
  • 138.5138.5_ExpressCollisions2021/step2_ExpressCollisions2021.log
Expand to see more relval errors ...

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40323/33409

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

Pull request #40323 was updated. @malbouis, @yuanchao, @ChrisMisan, @clacaputo, @cmsbuild, @saumyaphor4252, @tvami, @mandrenguyen, @francescobrivio can you please check and sign again.

@mmusich
Copy link
Contributor Author

mmusich commented Dec 15, 2022

@cmsbuild, please test

  • let's try again

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1f07ce/29644/summary.html
COMMIT: a8ed040
CMSSW: CMSSW_13_0_X_2022-12-15-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/40323/29644/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
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 14 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3557521
  • DQMHistoTests: Total failures: 12
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3557487
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 211 log files, 162 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@mandrenguyen
Copy link
Contributor

+reconstruction
No change to reco

@mmusich
Copy link
Contributor Author

mmusich commented Dec 16, 2022

@cms-sw/alca-l2 do you have any objections?
I'd like to backport this for the phase-2 production happening in 12_5_X.

@tvami
Copy link
Contributor

tvami commented Dec 16, 2022

+alca

  • diffs in MsgLogger only

@cmsbuild
Copy link
Contributor

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

+1

@cmsbuild cmsbuild merged commit f9aaf6a into cms-sw:master Dec 17, 2022
@perrotta
Copy link
Contributor

perrotta commented Dec 19, 2022

@mmusich the situation with the IGs was a bit messy over the weekend. Now that it settled down, we remain with a crash in the Phase2 wf 20834.9 for the AlignmentTrackSelectorModule:ALCARECOMuAlOverlapsGeneralTracks module. It started with CMSSW_13_0_X_2022-12-17-1100, and I suspect it could come from the changes that were implemented with this PR: could you please have a look?

@mmusich
Copy link
Contributor Author

mmusich commented Dec 19, 2022

@perrotta

I suspect it could come from the changes that were implemented with this PR

yes, it definitely comes from this PR.
A very simple fix (which is actually a workaround) is to comment this line:

phase2OTClusterRecords_.push_back(Phase2OTClusterHitRecord(static_cast<VectorHit &>(newHit), hits, index));

This will solve the failure in the workflow, but then the AlCa step for the vectorHits workflows still won't do the right thing (at least it is is not worse than it was before this PR). I am working on a more refined fix, but I cannot guarantee it will come before the EOY break. Let me know if this is acceptable from your point of view. From TRK point of view since VH are not the default this would still meet the goal of this PR.

@mmusich mmusich deleted the AlignmentTrackSelectorPhase2 branch December 19, 2022 16:07
@mmusich
Copy link
Contributor Author

mmusich commented Dec 19, 2022

I am working on a more refined fix, but I cannot guarantee it will come before the EOY break. Let me know if this is acceptable from your point of view. From TRK point of view since VH are not the default this would still meet the goal of this PR.

nevermind, see #40363

@perrotta
Copy link
Contributor

nevermind, see #40363

Thank you @mmusich !

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.

5 participants