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

Add default values in {CaloRecHitSoA,PFRecHitSoA,LegacyPFRecHit,PFClusterSoA}Producer::fillDescriptions #44290

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

missirol
Copy link
Contributor

@missirol missirol commented Mar 3, 2024

PR description:

This PR adds default values for parameters currently missing them in {CaloRecHitSoA,PFRecHitSoA,LegacyPFRecHit,PFClusterSoA}Producer::fillDescriptions.

This is necessary in order to use these plugins in ConfDB for HLT-menu development (these plugins are part of the latest Alpaka developments for HLT, see customizeHLTforAlpakaParticleFlowClustering).

FYI: @cms-sw/hlt-l2

PR validation:

Visual inspection of the auto-generated cfi files after including these changes.

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:

CMSSW_14_0_X

Necessary for the integration of Alpaka modules in the 2024 HLT menus.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2024

cms-bot internal usage

producers.add<edm::ESInputTag>("params", edm::ESInputTag(""))->setComment("Quality cut parameters");
std::vector<edm::ParameterSet> producersDefault(1);
producersDefault[0].addParameter<edm::InputTag>("src", edm::InputTag(""));
producersDefault[0].addParameter<edm::ESInputTag>("params", edm::ESInputTag(""));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Example of one of the auto-generated cfi files for this plugin in CMSSW_14_0_0_pre3.

import FWCore.ParameterSet.Config as cms

pfRecHitSoAProducerHCAL = cms.EDProducer('PFRecHitSoAProducerHCAL@alpaka',
  producers = cms.VPSet(
    cms.PSet(
      src = cms.InputTag('')
    )
  ),
  topology = cms.ESInputTag('', ''),
  synchronise = cms.untracked.bool(False),
  mightGet = cms.optional.untracked.vstring,
  alpaka = cms.untracked.PSet(
    backend = cms.untracked.string('')
  )
)

I could not get params to be added under producers, despite the fact that its default value is specified in fillDescriptions, so I am missing something.

It might be that this is not an issue for ConfDB parsing, if nested PSets like this one can be edited in ConfDB regardless of these defaults parameters. I'm not 100% sure this is the case, though.

If I change the type of params from edm::ESInputTag to something else (I tried std::string), then it does appear as intended inside the producers VPSet of the auto-generated cfi file.

Copy link
Contributor

Choose a reason for hiding this comment

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

As mentioned in mattermost, this should be sufficient for the ConfDB side.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2024

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44290/39312

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2024

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

It involves the following packages:

  • RecoParticleFlow/PFClusterProducer (reconstruction)
  • RecoParticleFlow/PFRecHitProducer (reconstruction)

@cmsbuild, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks.
@rovere, @lgray, @mmarionncern, @hatakeyamak, @felicepantaleo, @seemasharmafnal, @sameasy this is something you requested to watch as well.
@rappoccio, @sextonkennedy, @antoniovilela you are the release manager for this.

cms-bot commands are listed here

@Martin-Grunewald
Copy link
Contributor

please test

@Martin-Grunewald
Copy link
Contributor

urgent

@cmsbuild cmsbuild added the urgent label Mar 4, 2024
@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 4, 2024

+1

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

Comparison Summary

Summary:

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 4, 2024

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

@antoniovilela
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 066d7e3 into cms-sw:master Mar 4, 2024
21 checks passed
@missirol missirol deleted the devel_fillDescCaloRecHit branch March 5, 2024 14:14
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