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

Produce sMajor, sMinor in EgammaHLTClusterShapeProducer #43885

Merged
merged 4 commits into from
Feb 12, 2024

Conversation

swagata87
Copy link
Contributor

@swagata87 swagata87 commented Feb 7, 2024

PR description:

Produce sMajor, sMinor via EgammaHLTClusterShapeProducer in ECAL. These variables are useful for displaced e/gamma HLT path. In phase2, we would like to add some displaced e/gamma paths where we would like to cut on these variables. This PR is to enable such studies easily for Phase2 HLT.

PR validation:

runTheMatrix.py -l 24834.0 worked fine.

Additionally, checked that we are getting reasonable values for sMajor, sMinor. This check was done from Phase2 EGamma HLT setup, using this root file:

/store/mc/Phase2Spring23DIGIRECOMiniAOD/DYToLL_M-10To50_TuneCP5_14TeV-pythia8/GEN-SIM-DIGI-RAW-MINIAOD/noPU_131X_mcRun4_realistic_v5-v1/30000/66eea162-e0cd-4752-a295-5bbca4bd8363.root (1000 events)

These are the histograms for sMajor and sMinor, for barrel, at HLT

PS: Took this opportunity to do some cleanup. Removed sigmaEtaEta type variables as they are obsolete.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 7, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 7, 2024

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43885/38741

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 7, 2024

A new Pull Request was created by @swagata87 (Swagata Mukherjee) for master.

It involves the following packages:

  • RecoEgamma/EgammaHLTProducers (hlt)

@cmsbuild, @mmusich, @Martin-Grunewald can you please review it and eventually sign? Thanks.
@ram1123, @varuns23, @HuguesBrun, @afiqaize, @sobhatta, @jainshilpi, @silviodonato, @cericeci, @Fedespring, @sameasy, @Prasant1993, @valsdav, @Sam-Harper, @missirol, @a-kapoor, @lgray 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

@swagata87
Copy link
Contributor Author

type egamma

@cmsbuild cmsbuild added the egamma label Feb 7, 2024

reco::CaloClusterPtr SCseed = recoecalcandref->superCluster()->seed();
const EcalRecHitCollection* rechits =
(std::abs(recoecalcandref->eta()) < 1.479) ? rechitsEB_.product() : rechitsEE_.product();
Copy link
Contributor

@Martin-Grunewald Martin-Grunewald Feb 7, 2024

Choose a reason for hiding this comment

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

Further up in this file there is a line:

if (EtaSC > 1.479)

should that be std::abs(EtaSC) as this variable is also a recoecalcandref->eta()?
Ie double EtaSC = std::abs(recoecalcandref->eta());

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this could be a bug;
but the else { loop where this potential bug lives, is not used anywhere in egamma HLT.
So even if it is a bug it can be ignored.
I can't confirm if it's a bug as I don't know what this is actually doing:

 if (EtaSC > 1.479)
        sigmaee = sigmaee - 0.02 * (EtaSC - 2.3);
    }

Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be OK to remove the else branch and put the then branch to be executed always?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes I think it's better to remove it as a cleanup.
I'm talking to EGM POG just to make sure they agree.
I will get back to this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(After a chat with Riccardo S.) removed the else loop, as sigmaEtaEta etc is obsolete and not used anymore in favor of the better variable like sigmaIEtaIEta etc.

@cms-sw/egamma-pog-l2
@DebabrataBhowmik
@ravindkv

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please backport to 14_0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need a backport? The main aim of this PR is to be able to perform phase2 HLT studies easily, using the 2 variables sMajor and sMinor. It's not that much needed for Run3 actually.

Copy link
Contributor

Choose a reason for hiding this comment

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

According to the PPD schedule, 14_0 is to be used for the Phase-2 MC campaign:
https://docs.google.com/spreadsheets/d/1XqkT_HYs04ZbLKs7k4SyPZ9DcNfN7ZmHQxv2I_iI-Hw/edit#gid=402259138

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah okay, thanks Martin. I will make a backport to 14_0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Backport PR is made here: #43908

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 7, 2024

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43885/38744

  • This PR adds an extra 20KB to repository

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 7, 2024

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43885/38746

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 7, 2024

Pull request #43885 was updated. @Martin-Grunewald, @mmusich, @cmsbuild can you please check and sign again.

@Martin-Grunewald
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 7, 2024

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8f3bfa/37274/summary.html
COMMIT: 59bcf97
CMSSW: CMSSW_14_1_X_2024-02-07-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/43885/37274/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 1 lines from the logs
  • Reco comparison results: 39 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3248626
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3248604
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 200 log files, 161 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43885/38792

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

Pull request #43885 was updated. @Martin-Grunewald, @cmsbuild, @mmusich can you please check and sign again.

@swagata87
Copy link
Contributor Author

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43885/38793

  • This PR adds an extra 40KB to repository

@cmsbuild
Copy link
Contributor

Pull request #43885 was updated. @Martin-Grunewald, @mmusich can you please check and sign again.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8f3bfa/37342/summary.html
COMMIT: bf13d2f
CMSSW: CMSSW_14_1_X_2024-02-10-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/43885/37342/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 70 lines to the logs
  • Reco comparison results: 40 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3248626
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3248604
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 200 log files, 161 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@Martin-Grunewald
Copy link
Contributor

+1

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

@antoniovilela
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 6b1b191 into cms-sw:master Feb 12, 2024
11 checks passed
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