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

[Draft] Add fillDescriptions to SiPixel digitizers #40673

Closed
wants to merge 4 commits into from

Conversation

tvami
Copy link
Contributor

@tvami tvami commented Feb 2, 2023

PR description:

Opening a draft to discuss #40540 (comment)

PR validation:

in progress

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:

Not a backport and no backport is needed

resolves #40540

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 2, 2023

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40673/34018

  • This PR adds an extra 48KB 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 3, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40673/34048

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

A new Pull Request was created by @tvami (Tamas Vami) for master.

It involves the following packages:

  • SimGeneral/MixingModule (simulation)
  • SimTracker/Common (simulation)
  • SimTracker/SiPhase2Digitizer (upgrade, simulation)

@cmsbuild, @AdrianoDee, @srimanob, @civanch, @mdhildreth can you please review it and eventually sign? Thanks.
@echabert, @fabiocos, @VourMa, @makortel, @GiacomoSguazzoni, @robervalwalsh, @gbenelli, @rovere, @JanFSchulte, @missirol, @prolay, @threus, @mmusich, @VinInn, @mtosi, @dgulhan, @slomeo this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@tvami
Copy link
Contributor Author

tvami commented Feb 3, 2023

@cmsbuild , please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

-1

Failed Tests: Build HeaderConsistency ClangBuild
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4a8569/30391/summary.html
COMMIT: 52f65e4
CMSSW: CMSSW_13_0_X_2023-02-03-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/40673/30391/install.sh to create a dev area with all the needed externals and cmssw changes.

Build

I found compilation error when building:

>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_0_X_2023-02-03-1100/src/SimTracker/SiPixelDigitizer/plugins/SiPixelDigitizer.cc
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_0_X_2023-02-03-1100/src/SimTracker/SiPixelDigitizer/plugins/SealModule.cc
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_0_X_2023-02-03-1100/src/SimTracker/SiPixelDigitizer/plugins/PreMixingSiPixelWorker.cc
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_0_X_2023-02-03-1100/src/SimTracker/SiPixelDigitizer/plugins/SiPixelDigitizerAlgorithm.cc
In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_0_X_2023-02-03-1100/src/SimTracker/SiPixelDigitizer/plugins/SiPixelDigitizerAlgorithm.cc:87:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_0_X_2023-02-03-1100/src/SimTracker/Common/interface/SiPixelChargeReweightingAlgorithm.h:856:8: error: duplicate 'inline'
  856 | inline inline void SiPixelChargeReweightingAlgorithm::fillPSetDescription(edm::ParameterSetDescription& desc) {
      |        ^~~~~~
      |        ------
gmake: *** [tmp/el8_amd64_gcc11/src/SimTracker/SiPixelDigitizer/plugins/SimTrackerSiPixelDigitizerPlugins/SiPixelDigitizerAlgorithm.cc.o] Error 1
>> Building edm plugin tmp/el8_amd64_gcc11/src/SimTracker/SiPixelDigitizer/plugins/SimTrackerSiPixelDigitizerPlugins/libSimTrackerSiPixelDigitizerPlugins.so


Clang Build

I found compilation warning while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

See details on the summary page.

@tvami
Copy link
Contributor Author

tvami commented Feb 3, 2023

so this is funny
#40673 (comment)
because it was the code checks that made this
52f65e4

Copy link
Contributor

@makortel makortel left a comment

Choose a reason for hiding this comment

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

A few remarks that may be known already.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40673/34049

  • This PR adds an extra 48KB 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 3, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40673/34050

  • This PR adds an extra 48KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

Pull request #40673 was updated. @cmsbuild, @AdrianoDee, @srimanob, @civanch, @mdhildreth can you please check and sign again.

@tvami
Copy link
Contributor Author

tvami commented Feb 3, 2023

@cmsbuild , please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40673/34051

  • This PR adds an extra 48KB to repository

@tvami
Copy link
Contributor Author

tvami commented Feb 3, 2023

@cmsbuild, please abort

  • there are errors already, no point in running the rest

@tvami
Copy link
Contributor Author

tvami commented Feb 3, 2023

@makortel I see the following error

----- Begin Fatal Exception 03-Feb-2023 22:16:52 CET-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'TemplateIDnumerator' not found.
----- End Fatal Exception -------------------------------------------------

https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4a8569/30393/runTheMatrix-results/10042.0_ZMM_13+2017/step2_ZMM_13+2017.log

TemplateIDnumerator is indeed one of the things I mean to put into the fillPSetDescription, but apparently it didnt propagate correctly to the MixingModule

@makortel
Copy link
Contributor

makortel commented Feb 3, 2023

TemplateIDnumerator is indeed one of the things I mean to put into the fillPSetDescription, but apparently it didnt propagate correctly to the MixingModule

Right. The current code in this PR

void MixingModule::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
desc.setAllowAnything();
descriptions.addDefault(desc);
}

tells the configuration validation system that MixingModule accepts all parameters, and nothing should be injected in the PSet before passing it to the MixingModule constructor (which is exactly the behavior when a module does not define fillDescriptions() function).

In order for the helper plugin fillPSetDescription() functions to be effective, all the

  • edm::DigiAccumulatorMixModPluginFactory
  • MixingModule::fillDescriptions()
  • fillPSetDescription() of all helper plugins declared with DEFINE_DIGI_ACCUMULATOR()

need to be changed as described in https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideConfigurationValidationAndHelp#A_Plugin_Module_Using_Another_He
(the only(?) shortcut being that the helper plugin fillPSetDescription() can be implemented with setAllowAnything())

(and I'd still expect the cms.SecSource to cause some kind of trouble for this exercise)

@tvami
Copy link
Contributor Author

tvami commented Feb 4, 2023

OK, I'll slowly go through these, there is quite a lot of DEFINE_DIGI_ACCUMULATOR plugins, and they are certainly beyond Tracker DPG code.

@tvami
Copy link
Contributor Author

tvami commented Jun 8, 2023

I'm sorry, I dont think I'll ever converge on this PR, I'm changing institutes and this will be (even more) out of scope of my responsibilities, so I'm closing this draft PR for now

@tvami tvami closed this Jun 8, 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.

[SIMULATION][CLANG] Compiler warning in SimTracker/SiPixelDigitizer
4 participants