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

[Phase-2] Fix usage of L1 egamma seeds in Phase-2 HLT #42791

Conversation

SohamBhattacharya
Copy link
Contributor

@SohamBhattacharya SohamBhattacharya commented Sep 14, 2023

This PR fixes the usage of L1 egamma seeds in Phase-2 HLT.
See details of the fix in these slides.

Tagging Phase-2 Egamma HLT contacts/validators: @ravindkv @skeshri

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42791/36902

  • This PR adds an extra 40KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42791/36903

  • This PR adds an extra 44KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @SohamBhattacharya for master.

It involves the following packages:

  • HLTrigger/Configuration (hlt)
  • HLTrigger/HLTfilters (hlt)
  • RecoHGCal/TICL (upgrade, reconstruction)

@Martin-Grunewald, @missirol, @cmsbuild, @AdrianoDee, @srimanob, @jfernan2, @mmusich, @mandrenguyen can you please review it and eventually sign? Thanks.
@youyingli, @missirol, @silviodonato, @felicepantaleo, @forthommel, @rovere, @Martin-Grunewald, @apsallid, @sobhatta, @lecriste, @hatakeyamak, @ebrondol, @sameasy this is something you requested to watch as well.
@rappoccio, @antoniovilela, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@mmusich
Copy link
Contributor

mmusich commented Sep 14, 2023

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9a6972/34765/summary.html
COMMIT: a96c90c
CMSSW: CMSSW_13_3_X_2023-09-14-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42791/34765/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 5 lines from the logs
  • Reco comparison results: 12 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3348648
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3348623
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 214 log files, 167 edm output root files, 50 DQM output files
  • TriggerResults: found differences in 4 / 48 workflows

@SohamBhattacharya
Copy link
Contributor Author

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9a6972/34765/summary.html COMMIT: a96c90c CMSSW: CMSSW_13_3_X_2023-09-14-1100/el8_amd64_gcc11 User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42791/34765/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

* You potentially removed 5 lines from the logs

* Reco comparison results: 12 differences found in the comparisons

* DQMHistoTests: Total files compared: 50

* DQMHistoTests: Total histograms compared: 3348648

* DQMHistoTests: Total failures: 3

* DQMHistoTests: Total nulls: 0

* DQMHistoTests: Total successes: 3348623

* DQMHistoTests: Total skipped: 22

* DQMHistoTests: Total Missing objects: 0

* DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)

* Checked 214 log files, 167 edm output root files, 50 DQM output files

* [TriggerResults](https://cmssdt.cern.ch/SDT/jenkins-artifacts/baseLineComparisons/CMSSW_13_3_X_2023-09-14-1100+9a6972/58880/triggerResults): found differences in 4 / 48 workflows

Changes to TriggerResults in 24834.0 and 24834.911 look expected.

Copy link
Contributor

@mmusich mmusich left a comment

Choose a reason for hiding this comment

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

Changes to TriggerResults in 24834.0 and 24834.911 look expected.

I would be nice if also for the e/g objects a dedicated DQM / validation monitoring could be added (see standing issue #39362)

@@ -147,8 +151,8 @@ bool L1TTkEleFilter::hltFilter(edm::Event& iEvent,
passIsolation = true;
}

if (offlinePt >= min_Pt_ && itkEle->eta() <= max_Eta_ && itkEle->eta() >= min_Eta_ && passQuality &&
passIsolation) {
if (offlinePt >= min_Pt_ && std::fabs(itkEle->eta()) < max_AbsEta1_ && std::fabs(itkEle->eta()) >= min_AbsEta1_ &&
Copy link
Contributor

Choose a reason for hiding this comment

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

elsewhere in this file std::abs is used

if (std::abs(itkEle->eta()) < etaBinsForIsolation_.at(etabin) and
std::abs(itkEle->eta()) > etaBinsForIsolation_.at(etabin - 1) and

I think that's the preferred option.

@@ -147,7 +152,8 @@ bool L1TTkEmFilter::hltFilter(edm::Event& iEvent,
passIsolation = true;
}

if (offlinePt >= min_Pt_ && itkEm->eta() <= max_Eta_ && itkEm->eta() >= min_Eta_ && passQuality && passIsolation) {
if (offlinePt >= min_Pt_ && std::fabs(itkEm->eta()) < max_AbsEta1_ && std::fabs(itkEm->eta()) >= min_AbsEta1_ &&
Copy link
Contributor

Choose a reason for hiding this comment

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

elsewhere in this file std::abs is used

if (std::abs(itkEm->eta()) < etaBinsForIsolation_.at(etabin) and
std::abs(itkEm->eta()) > etaBinsForIsolation_.at(etabin - 1) and

I think that's the preferred option.

@@ -177,7 +184,8 @@ bool L1TTkEmFilter::hltFilter(edm::Event& iEvent,
passIsolation = true;
}

if (offlinePt >= min_Pt_ && itkEm->eta() <= max_Eta_ && itkEm->eta() >= min_Eta_ && passQuality && passIsolation) {
if (offlinePt >= min_Pt_ && std::fabs(itkEm->eta()) <= max_AbsEta2_ && std::fabs(itkEm->eta()) >= min_AbsEta2_ &&
Copy link
Contributor

Choose a reason for hiding this comment

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

see above .

if ((offlinePt < minPt_) || (std::abs(l1TrkEm.eta()) < minAbsEta_) || (std::abs(l1TrkEm.eta()) > maxAbsEta_) ||
(l1TrkEm.EGRef()->hwQual() != quality_)) {
continue;
if ((offlinePt < minPt_) || (std::abs(l1TrkEm.eta()) < minAbsEta_) || (std::abs(l1TrkEm.eta()) > maxAbsEta_)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this piece of code is a bit hard to read, I would suggest splitting conditions in dedicated booleans and then compose the final if accordingly (no strong push though).

@SohamBhattacharya
Copy link
Contributor Author

Changes to TriggerResults in 24834.0 and 24834.911 look expected.

I would be nice if also for the e/g objects a dedicated DQM / validation monitoring could be added (see standing issue #39362)

Indeed, that's at the top of our to-do list of post Annual Review tasks.

@cmsbuild
Copy link
Contributor

Pull request #42791 was updated. @Martin-Grunewald, @missirol, @cmsbuild, @AdrianoDee, @srimanob, @jfernan2, @mmusich, @mandrenguyen can you please check and sign again.

@mmusich
Copy link
Contributor

mmusich commented Sep 15, 2023

@cmsbuild, please test

@mmusich
Copy link
Contributor

mmusich commented Sep 15, 2023

type bug-fix

@swagata87
Copy link
Contributor

Thank you Soham for the fix

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9a6972/34778/summary.html
COMMIT: 4e1a47a
CMSSW: CMSSW_13_3_X_2023-09-15-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42791/34778/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: 16 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3348648
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3348620
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 214 log files, 167 edm output root files, 50 DQM output files
  • TriggerResults: found differences in 4 / 48 workflows

@mmusich
Copy link
Contributor

mmusich commented Sep 15, 2023

+hlt

@jfernan2
Copy link
Contributor

+1

@srimanob
Copy link
Contributor

+upgrade

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

@mmusich
Copy link
Contributor

mmusich commented Sep 18, 2023

@cms-sw/orp-l2 please take a look to this.

@antoniovilela
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit f8caf8e into cms-sw:master Sep 18, 2023
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