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

[L1T] all modules swicthed to lower case and l1t #39244

Merged
merged 5 commits into from Sep 14, 2022

Conversation

cecilecaillol
Copy link
Contributor

@cecilecaillol cecilecaillol commented Aug 29, 2022

PR description:

Addressing item 1 of #39194: change L1 modules to start with l1t
Also addressing item 2 of the same issue: Fix hltTriggerSummaryAOD
Also addressing item 5 of the same issue: Verify the PSet cutset in L1TrackSelectionProducerExtended

PR validation:

code-checks, code-format

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39244/31879

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • DQMOffline/L1Trigger (dqm, l1)
  • HLTrigger/Configuration (hlt)
  • L1Trigger/Configuration (l1)
  • L1Trigger/L1CaloTrigger (upgrade, l1)
  • L1Trigger/L1TTrackMatch (upgrade, l1)
  • L1Trigger/Phase2L1GMT (l1)
  • L1Trigger/Phase2L1ParticleFlow (upgrade, l1)
  • L1Trigger/Phase2L1Taus (l1)
  • L1Trigger/VertexFinder (l1)

@Martin-Grunewald, @missirol, @epalencia, @emanueleusai, @ahmad3213, @cecilecaillol, @cmsbuild, @AdrianoDee, @srimanob, @jfernan2, @pmandrik, @micsucmed, @rekovic, @rvenditti can you please review it and eventually sign? Thanks.
@silviodonato, @Martin-Grunewald, @missirol, @trtomei, @beaucero, @rociovilar 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

@cecilecaillol
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d846b7/27178/summary.html
COMMIT: 9a9f1f3
CMSSW: CMSSW_12_6_X_2022-08-29-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/39244/27178/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 23 differences found in the comparisons
  • DQMHistoTests: Total files compared: 51
  • DQMHistoTests: Total histograms compared: 3695708
  • DQMHistoTests: Total failures: 97
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3695588
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 50 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 212 log files, 49 edm output root files, 51 DQM output files
  • TriggerResults: no differences found

@Martin-Grunewald
Copy link
Contributor

A question on the python: I understood that module lables should start with lower-case l1t, while sequences, tasks and paths should start with upper-case L1T?

Copy link
Contributor

@missirol missirol left a comment

Choose a reason for hiding this comment

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

@cecilecaillol , thanks for this PR.

[1]

hltTriggerSummaryAOD = cms.EDProducer( "TriggerSummaryProducerAOD",
    throw = cms.bool( False ),
    processName = cms.string( "*" ),
    moduleLabelPatternsToMatch = cms.vstring( 'hlt*','l1t*' ),
    moduleLabelPatternsToSkip = cms.vstring(  )
)

Comment on lines 45 to 47
L1TowerCalibrationProducer *
L1CaloJetProducer *
L1CaloJetHTTProducer
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't these follow the l1t convention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed to start with l1t

@@ -17,7 +17,7 @@
3.0, 3.083, 3.167, 3.25, 3.333, 3.417, 3.5, 3.583, 3.667, 3.75, 3.833, 3.917,
4.0, 4.083, 4.167, 4.25, 4.333, 4.417, 4.5, 4.583, 4.667, 4.75, 4.833, 4.917, 5.0)

Phase1L1TJetProducer = cms.EDProducer('Phase1L1TJetProducer',
l1tPhase1JetProducer = cms.EDProducer('Phase1L1TJetProducer',
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't the name of the cfi be updated accordingly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The name of the cfi still matches the name of the producer so I would prefer not to change

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought the cfi should match the module name, not the name of the plugin (for 1 plugin, there could be more than 1 cfi); see also rule 6.13. Anyways, I won't insist on this.

Copy link
Contributor

Choose a reason for hiding this comment

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

A file named Phase1L1TJetProducer_cfi.py exists already
cfipython/L1Trigger/L1CaloTrigger/Phase1L1TJetProducer_cfi.py
and it will have the same search path as this one: please rename this one l1tPhase1JetProducer_cfi.py. as suggested by @missirol , and correct the import into

  • L1Trigger/L1CaloTrigger/python/Phase1L1TJets_9x9_cff.py
  • L1Trigger/L1CaloTrigger/python/Phase1L1TJets_9x9trimmed_cff.py
  • L1Trigger/L1CaloTrigger/python/Phase1L1TJets_cff.py

(if it is really this one that you want to import, and not the one generated by the fillDescriptions method)

Comment on lines 6 to 10
L1TrackInputTag = cms.InputTag("L1TrackSelectionProducer", l1tTrackSelectionProducer.outputCollectionName.value() + "Emulation"),
L1TrackAssociatedInputTag = cms.InputTag("L1TrackSelectionProducer", l1tTrackSelectionProducer.outputCollectionName.value() + "AssociatedEmulation"),
# To bypass GTT input module use cms.InputTag("TTTracksFromTrackletEmulation", "Level1TTTracks")
# and set useGTTinput to false
L1VertexInputTag = cms.InputTag("VertexProducer", VertexProducer.l1VertexCollectionName.value()),
L1VertexInputTag = cms.InputTag("VertexProducer", l1tVertexProducer.l1VertexCollectionName.value()),
Copy link
Contributor

Choose a reason for hiding this comment

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

These InputTags seem to refer to the old naming (e.g. L1TrackSelectionProducer). Why is that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to l1tVertexProducer

@@ -1,6 +1,6 @@
import FWCore.ParameterSet.Config as cms

L1MetPfProducer = cms.EDProducer("L1MetPfProducer",
l1tMETPFProducer = cms.EDProducer("L1MetPfProducer",
L1PFObjects = cms.InputTag("l1ctLayer1","Puppi"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does l1ctLayer1 not follow the naming convention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to l1tLayer*

Comment on lines 5 to 7
scPFL1PF = l1tSeedConePFJetProducer.clone(L1PFObjects = 'l1ctLayer1:PF')
scPFL1Puppi = l1tSeedConePFJetProducer.clone()
scPFL1PuppiEmulator = l1tSeedConePFJetEmulatorProducer.clone(L1PFObject = cms.InputTag('l1ctLayer2Deregionizer:Puppi'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do the scPFL1* objects not follow the new naming convention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to l1tSC*


_correctedJets = cms.EDProducer("L1TCorrectedPFJetProducer",
correctedJets = cms.EDProducer("L1TCorrectedPFJetProducer",
Copy link
Contributor

Choose a reason for hiding this comment

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

The leading underscore should remain in place if correctedJets is not really used in the final configuration (it avoids that correctedJets is imported from this file). Actually, here correctedJets is only used a few lines below to make scPFL1PuppiCorrectedEmulator, so why not just build and customise the latter (without any correctedJets)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I switched back to _correctedJets

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39244/31886

@cmsbuild
Copy link
Contributor

Pull request #39244 was updated. @Martin-Grunewald, @missirol, @epalencia, @emanueleusai, @ahmad3213, @cecilecaillol, @cmsbuild, @AdrianoDee, @srimanob, @jfernan2, @pmandrik, @micsucmed, @rekovic, @rvenditti can you please check and sign again.

@emanueleusai
Copy link
Member

+1

  • re-sign

@AdrianoDee
Copy link
Contributor

+upgrade

@cecilecaillol
Copy link
Contributor Author

+l1

@mandrenguyen
Copy link
Contributor

+reconstruction

@Martin-Grunewald
Copy link
Contributor

+1
resign

@perrotta
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 be automatically merged.

@srimanob
Copy link
Contributor

Hi,

While making #39450, I see that we have few places that still use ("L1VertexFinderEmulator","l1verticesEmulation") instead of ("l1tVertexFinderEmulator", "l1verticesEmulation"). Is this by intension? Thanks.

https://github.com/cms-sw/cmssw/blob/master/L1Trigger/Phase2L1Taus/plugins/HPSPFTauProducer.cc#L233
https://github.com/cms-sw/cmssw/blob/master/L1Trigger/Configuration/python/SimL1Emulator_cff.py#L170
https://github.com/cms-sw/cmssw/blob/master/L1Trigger/L1TTrackMatch/plugins/L1TrackSelectionProducer.cc#L605

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.

None yet

9 participants