-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
HLT XGBoost Photon MVA and Diphoton combination filter #44473
Conversation
cms-bot internal usage |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44473/39558
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44473/39559
|
A new Pull Request was created by @smorovic for master. It involves the following packages:
@mmusich, @mandrenguyen, @cmsbuild, @Martin-Grunewald, @jfernan2 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
RecoEgamma/PhotonIdentification/plugins/PhotonXGBoostProducer.cc
Outdated
Show resolved
Hide resolved
RecoEgamma/PhotonIdentification/plugins/PhotonXGBoostProducer.cc
Outdated
Show resolved
Hide resolved
RecoEgamma/PhotonIdentification/plugins/PhotonXGBoostProducer.cc
Outdated
Show resolved
Hide resolved
RecoEgamma/PhotonIdentification/plugins/PhotonXGBoostProducer.cc
Outdated
Show resolved
Hide resolved
RecoEgamma/PhotonIdentification/plugins/PhotonXGBoostProducer.cc
Outdated
Show resolved
Hide resolved
type hlt-integration |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44473/39583
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44473/39589
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+hlt
|
@smorovic is the plan to backport to 14.0.X as well? |
yes, it will be needed for (potentially) being added to HLT menu in the upcoming months. |
+1 |
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. @antoniovilela, @rappoccio, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
@smorovic did you notice that the newly added unit test keeps failing in the IBs with the aarch64 and pc64le architectures, both in master and also in the 14_0_X IBs after the backport? |
Probably that IB build didn't pick up (yet) the cmsdist update. |
The test in aarch log looks like the inference is returning values different from the expected ones.
It does not look like that at all. |
So, it looks like values on other architectures are not reproducible (in 4 out of 10 cases). |
Well, not in the long term. I imagine you are planning to use this for HLT online, but the moment your trigger will enter the offline menu in cmssw, it will be tested by TSG unit tests and relvas that are run on all architectures, and we cannot let trigger irreproducibilities cripple in. So a longer term solution is needed to support this on other archs. |
OK, I see. I also had a look at: so maybe figuring it out between ARM and AMD64 will be sufficient (and at the moment I don't know of a PPC machine that I could use). |
@smorovic, on second thought, I think it might be OK if we go ahead with your proposal:
provided we're reminded of the observation that ARM and PPC give different results than AMD64 in a github issue. If the trigger results are different, but at least reproducible (i.e. each time the inference is run we get the same results within the same architecture) it might be OK given as you said we don't run the HLT online on those archs. |
@mmusich |
I'd suggest to open a GitHub issue in any case (to have a better record that this kind of difference between x86 and ARM was observed, if nothing else). |
Indeed, this is what I trying to suggest with
|
PR description:
This PR uses XGBoost C API to implement calculation of the score of Photons for HLT.
Combination filter is provided with the aim of implementing diphoton paths.
Total of 9 HLT variables are used as input.
For binary model files, NTree Limit parameter must be provided (it is not saved in the model file).
Note: at this time model training files are not provided, until they are finalized.
At that point we will request: cms-data repository for model files, define default parameters (cuts) and add unit test which ensures XGBoost (v1.7.5 currently used in CMSSW) calculates scores correctly with given model files and parameters.
Initially this is opened as Draft PR. Backport to 14_0_X is planned.
PR validation:
Initially passes HLT integration tests (caveat: all events rejected at the combination filter due to low statistics, but no errors)
Sample HLT snippet used for this: