Skip to content

Update Hist Fake Structure#224

Merged
kandrosov merged 3 commits intocms-flaf:mainfrom
aebid:FixFakeStructureHists
Feb 6, 2026
Merged

Update Hist Fake Structure#224
kandrosov merged 3 commits intocms-flaf:mainfrom
aebid:FixFakeStructureHists

Conversation

@aebid
Copy link
Contributor

@aebid aebid commented Feb 6, 2026

For the past month (Konstantin's fault) the Fake Structure histograms have been broken. In PR 205 the hist_list[0] was changed to 3 values instead of 2, but the FakeStructure version never added this third RDF variable
https://github.com/cms-flaf/FLAF/pull/205/changes#diff-cb839516eb4b14295ac1b51b6d5475b3a0e580fc15d6565a88a36f1a22c20985

This PR puts a catch on this RDF (it was only needed for debug, so it is quite useless), as well as adds a 'fake' option to the UnitBin function so the multi-dimensional plots also can create fake structure.

This bug was unseen as it only exists for files that have 0 entries in a selection. I found this using QCD. In the future, maybe the robot should also include a QCD test for these types of bugs?

@aebid
Copy link
Contributor Author

aebid commented Feb 6, 2026

Actually, we do not even need FakeStructure anymore so this PR now removes it entirely

@kandrosov
Copy link
Contributor

@cms-flaf-bot please test

@cms-flaf-bot
Copy link
Collaborator

pipeline#13978141 started

@cms-flaf-bot
Copy link
Collaborator

pipeline#13978141 passed

@kandrosov kandrosov merged commit 65a7fda into cms-flaf:main Feb 6, 2026
5 checks passed
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.

3 participants