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

L1track jet emulator update #40563

Merged
merged 1 commit into from
May 4, 2023
Merged

Conversation

gkaratha
Copy link
Contributor

Dear experts

This PR includes the updated trackjet emulation code. The new code has a different structure and uses common functions between emulator and simulation. This way we are sure that exactly the same code is run in both cases and the only difference is in the inputs. The code was presented in the GTT meeting:

  1. https://indico.cern.ch/event/1203796/
  2. https://indico.cern.ch/event/1211843/

Best regards,
George

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40563/33795

  • This PR adds an extra 36KB to repository

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

} //namespace l1
Copy link
Contributor

Choose a reason for hiding this comment

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

The namespace is still l1t

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done !

<class name="l1t::TkJetWord" ClassVersion="3">
<version ClassVersion="3" checksum="3521396532"/>
<class name="l1t::TkJetWord" ClassVersion="4">
<version ClassVersion="4" checksum="2346039066"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you keep the ClassVersion 3 below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cecilecaillol How I can do that? This number is generated automatically (as far as I know). Is there a way to keep it bellow 3? If so I would be glad to do it.

Copy link
Contributor

@cecilecaillol cecilecaillol Feb 20, 2023

Choose a reason for hiding this comment

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

You should use ClassVersion 4 as automatically generated, but ClassVersion 3 details are still written below to keep track:

class name="l1t::TkJetWord" ClassVersion="4"
version ClassVersion="4" checksum="2346039066"/
version ClassVersion="3" checksum="3521396532"/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Cecile,

Ok If I understand correctly, use the class v4 but keep the v3 lines as well (like comment) right?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, see eg

<class name="l1t::L1Candidate" ClassVersion="12">
<version ClassVersion="12" checksum="939575486"/>
<version ClassVersion="11" checksum="2395983446"/>
<version ClassVersion="10" checksum="3629668391"/>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks a lot. I will do it today and update the PR!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dear Cecile,

I did it in my new update. Let me know if you have more questions

@@ -1,3 +1,5 @@


Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the empty lines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!


L1TrackJetsEmulation = cms.EDProducer('L1TrackJetEmulatorProducer',
L1TrackInputTag= cms.InputTag("L1GTTInputProducer", "Level1TTTracksConverted"),
#L1TrackInputTag= cms.InputTag("L1TrackSelectionProducer", "Level1TTTracksSelectedEmulation"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove commented line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

Comment on lines 4 to 5
L1TrackJetsEmulation = cms.EDProducer('L1TrackJetEmulatorProducer',
L1TrackInputTag= cms.InputTag("L1GTTInputProducer", "Level1TTTracksConverted"),
Copy link
Contributor

Choose a reason for hiding this comment

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

These lines are not following the naming conventions. l1tTrackJetsEmulation, l1tGTTInputProducer

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 convention changed when I was working in the code... I have changed them now


#displaced jets
L1TrackJetsExtended = cms.EDProducer('L1TrackJetProducer',
L1TrackInputTag= cms.InputTag("TTTracksFromExtendedTrackletEmulation", "Level1TTTracks"),
Copy link
Contributor

Choose a reason for hiding this comment

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

l1tTTTracksFromExtendedTrackletEmulation

#displaced jets
L1TrackJetsExtended = cms.EDProducer('L1TrackJetProducer',
L1TrackInputTag= cms.InputTag("TTTracksFromExtendedTrackletEmulation", "Level1TTTracks"),
VertexInputTag = cms.InputTag("VertexProducerEmu","l1verticesEmulation"),
Copy link
Contributor

Choose a reason for hiding this comment

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

l1tVertexProducerEmu

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 think this is l1tVertexFinderEmulator right?

)

L1TrackJetsExtendedEmulation = cms.EDProducer('L1TrackJetEmulatorProducer',
L1TrackInputTag= cms.InputTag("L1GTTInputProducerExtended", "Level1TTTracksExtendedConverted"),
Copy link
Contributor

Choose a reason for hiding this comment

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

l1tGTTInputProducerExtended


L1TrackJetsExtendedEmulation = cms.EDProducer('L1TrackJetEmulatorProducer',
L1TrackInputTag= cms.InputTag("L1GTTInputProducerExtended", "Level1TTTracksExtendedConverted"),
VertexInputTag=cms.InputTag("VertexProducerEmu", "l1verticesEmulation"),
Copy link
Contributor

Choose a reason for hiding this comment

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

l1tVertexProducerEmu

L1TrackJetsEmulation = cms.EDProducer('L1TrackJetEmulatorProducer',
L1TrackInputTag= cms.InputTag("L1GTTInputProducer", "Level1TTTracksConverted"),
#L1TrackInputTag= cms.InputTag("L1TrackSelectionProducer", "Level1TTTracksSelectedEmulation"),
VertexInputTag=cms.InputTag("VertexProducerEmu","l1verticesEmulation"),
Copy link
Contributor

Choose a reason for hiding this comment

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

l1tVertexProducerEmu

@perrotta
Copy link
Contributor

perrotta commented Feb 7, 2023

@gkaratha do you plan to apply the code-format update and implement the comments from the code review, or should we close this PR instead?

@gkaratha
Copy link
Contributor Author

gkaratha commented Feb 7, 2023

Hi @perrotta ,

Yes I will implement the comments (thanks @cecilecaillol ). Sorry for the delay (the Moriond period is tough).

Best,
George

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40563/34250

  • This PR adds an extra 20KB to repository

  • Found files with invalid states:

    • L1Trigger/L1TTrackMatch/python/L1TrackJetEmulationProducer_cfi.py:
    • L1Trigger/L1TTrackMatch/python/L1TrackJetProducer_cfi.py:

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

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40563/34252

  • This PR adds an extra 40KB to repository

  • Found files with invalid states:

    • L1Trigger/L1TTrackMatch/python/L1TrackJetEmulationProducer_cfi.py:
    • L1Trigger/L1TTrackMatch/python/L1TrackJetProducer_cfi.py:

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • DataFormats/L1Trigger (l1)
  • L1Trigger/DemonstratorTools (l1)
  • L1Trigger/L1TTrackMatch (upgrade, l1)

@rekovic, @epalencia, @cmsbuild, @AdrianoDee, @srimanob, @cecilecaillol can you please review it and eventually sign? Thanks.
@kreczko, @rovere, @eyigitba, @Martin-Grunewald, @missirol, @thomreis, @dinyar 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

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40563/34293

  • This PR adds an extra 20KB to repository

  • Found files with invalid states:

    • L1Trigger/L1TTrackMatch/python/L1TrackJetEmulationProducer_cfi.py:
    • L1Trigger/L1TTrackMatch/python/L1TrackJetProducer_cfi.py:

@cmsbuild
Copy link
Contributor

cmsbuild commented May 3, 2023

Pull request #40563 was updated. @smuzaffar, @Dr15Jones, @makortel, @epalencia, @cmsbuild, @AdrianoDee, @srimanob, @aloeliger, @cecilecaillol can you please check and sign again.

@perrotta
Copy link
Contributor

perrotta commented May 3, 2023

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 3, 2023

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-0dc9e2/32343/summary.html
COMMIT: 79afeb4
CMSSW: CMSSW_13_1_X_2023-05-02-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/40563/32343/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 59 lines from the logs
  • Reco comparison results: 7 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3460877
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3460852
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@makortel
Copy link
Contributor

makortel commented May 3, 2023

+core

@perrotta
Copy link
Contributor

perrotta commented May 4, 2023

@cms-sw/l1-l2 @cms-sw/upgrade-l2 do you have other comments? Or can we merge this longstanding PR, as it seems now converged to something working in cmssw?

@AdrianoDee
Copy link
Contributor

+upgrade

@epalencia
Copy link
Contributor

+l1

@cmsbuild
Copy link
Contributor

cmsbuild commented May 4, 2023

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

@perrotta
Copy link
Contributor

perrotta commented May 4, 2023

+1

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.

10 participants