-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Conversation
…sterSoA}Producer::fillDescriptions
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("")); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44290/39312
|
A new Pull Request was created by @missirol for master. It involves the following packages:
@cmsbuild, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
urgent |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-805393/37868/summary.html Comparison SummarySummary:
|
+1 |
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) |
+1 |
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.