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

Updates for SCJ multiboard tests #121

Closed
wants to merge 13 commits into from

Conversation

thesps
Copy link

@thesps thesps commented Jul 19, 2023

Adding the MHT and SC8 collections to the jet file writer towards bit-exact matching for the SC jets.
This supersedes #106

I commented out the writer fillDescriptions for now, but that's only because I couldn't figure out yet how to allow the optional collections so that we can do things like:

l1ctLayer2SCJetsProducts = cms.untracked.VPSet([cms.PSet(jets = cms.InputTag("l1tSC4PFL1PuppiCorrectedEmulator"),
                                                         mht  = cms.InputTag("l1tSC4PFL1PuppiCorrectedEmulatorMHT")),
                                                cms.PSet(jets = cms.InputTag("l1tSC8PFL1PuppiCorrectedEmulator"),)
                                                         ])

for the current configuration, or this for the old one:

l1ctLayer2SCJetsProducts = cms.untracked.VPSet([cms.PSet(jets = cms.InputTag("l1tSC4PFL1PuppiCorrectedEmulator"))])

With the fillDescriptions as was, the missing mht collection would be replaced by the default.

@gpetruc
Copy link
Collaborator

gpetruc commented Jul 19, 2023

so, what you want is a list of PSets, each of which may contain a "jets" and/or a "mht" tag, right?
with no general default falues, so something like this could work

edm::ParameterSetDescription collectionValidator;
validator.addOptional<edm::InputTag>("jets");
validator.addOptional<edm::InputTag>("mht");
desc.addVPSet("collections", collectionValidator);

@thesps thesps changed the title Draft: updates for SCJ multiboard tests Updates for SCJ multiboard tests Jul 27, 2023
@thesps
Copy link
Author

thesps commented Jul 27, 2023

Thanks for the tip on fillDescriptions. I've implemented it like that and it enables the flexibility I was looking for. I've opened the PR here partially to run the CI on correlator-common, but would it be better if I PR to either cms-l1t-offline or cms-sw instead, then pull here after implementing any requested changes?

Copy link
Collaborator

@gpetruc gpetruc left a comment

Choose a reason for hiding this comment

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

Some code quality improvements.

For CMSSW integration, people may also complain about commented-out code, and remaining TODOs

@gpetruc
Copy link
Collaborator

gpetruc commented Aug 21, 2023

After the fixes, you could also make it to cms-l1t-offline and cms-sw

@thesps
Copy link
Author

thesps commented Oct 12, 2023

Does this now look okay for merging? If so I'll get started with the upstream PRs in case there's further reviews

Copy link
Collaborator

@gpetruc gpetruc left a comment

Choose a reason for hiding this comment

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

There's one potentally real issue (it seems the way the jets are padded to nJets is duplicating the last real jet rather than adding nulls), which was in fact already there in the older version of the code.

The two other comments are just cosmetics, but should be 1-click fixes. if github works right.

@gpetruc
Copy link
Collaborator

gpetruc commented Oct 13, 2023

Fine for me now, can you make the PR to CMSSW master?

@thesps
Copy link
Author

thesps commented Nov 13, 2024

Superseded by cms-sw#43233

@thesps thesps closed this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants