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

Change EGM code to be able to read HCAL PF thresholds from DB #43164

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

RSalvatico
Copy link
Contributor

@RSalvatico RSalvatico commented Nov 1, 2023

PR description:

This is a PR with changes in the EGM code to allow HCAL PF cuts to be taken from DB on demand (i.e., for specific workflows) in alternative to being taken from config files (as discussed here).

Lots of adaptation work was done already on the PF side and in several aspects this should be similar.
#43025

PR validation

Several Run3 and Run2 workflows (e.g. runTheMatrix.py -l 10024.0, runTheMatrix.py -l 10824.0...)

Expected changes

None, modulo that the thresholds provided via GT are the same as previously provided via config file (which should be the case).

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 1, 2023

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43164/37483

  • This PR adds an extra 64KB to repository

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

@missirol
Copy link
Contributor

missirol commented Nov 2, 2023

@RSalvatico

Since "EGM code" could possibly include also code used by EGM at HLT, could you please let us know if the following plugins used at HLT should also be updated to use HcalPFCuts ? (If so, will this be done in a future PR ?)

EgammaHLTHcalVarProducerFromRecHit
FixedGridRhoProducerFastjetFromRecHit

FYI: @cms-sw/hlt-l2

@swagata87
Copy link
Contributor

FixedGridRhoProducerFastjetFromRecHit

I'm taking care of this.

@swagata87
Copy link
Contributor

@missirol #43176 here is the recHit rho code migration

@smuzaffar
Copy link
Contributor

Milestone for this pull request has been moved to CMSSW_14_0_X.Please open a backport if it should also go in to CMSSW_13_3_X.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 7, 2023

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43164/37551

  • This PR adds an extra 32KB to repository

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

@RSalvatico
Copy link
Contributor Author

@RSalvatico

Since "EGM code" could possibly include also code used by EGM at HLT, could you please let us know if the following plugins used at HLT should also be updated to use HcalPFCuts ? (If so, will this be done in a future PR ?)

EgammaHLTHcalVarProducerFromRecHit
FixedGridRhoProducerFastjetFromRecHit

FYI: @cms-sw/hlt-l2

@missirol I am trying to take care of the other one, EgammaHLTHcalVarProducerFromRecHit, in this PR.

@cmsbuild
Copy link
Contributor

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

@mmusich
Copy link
Contributor

mmusich commented Nov 27, 2023

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-580732/36078/summary.html
COMMIT: aee26b2
CMSSW: CMSSW_14_0_X_2023-11-26-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/43164/36078/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@mandrenguyen
Copy link
Contributor

+1

@mmusich
Copy link
Contributor

mmusich commented Nov 28, 2023

+hlt

  • for RSalvatico@aee26b2
  • PR according to description and follow-up review;
  • no unexpected changes in PR tests (changes 12434.7 are spurious);

@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)

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.

just some suggestions for future improvement (not for this PR!)

@rappoccio
Copy link
Contributor

+1


class EgammaHLTHcalVarProducerFromRecHit : public edm::global::EDProducer<> {
public:
explicit EgammaHLTHcalVarProducerFromRecHit(const edm::ParameterSet &);

public:
void beginRun(edm::Run const &, edm::EventSetup const &);
Copy link
Contributor

Choose a reason for hiding this comment

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

we overlooked that this module is a edm::global::EDProducer hence beginRun cannot be override-n (it's not in the base class). Hence this is never called.

Copy link
Contributor

Choose a reason for hiding this comment

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

The best fix would be to move the code in beginRun() to produce() and remove the hcalCuts member variable.

Copy link
Contributor

Choose a reason for hiding this comment

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

#43819 should fix.

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.