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

Change pT5 rz chi2 cut definition into helix approximation (rebase PR40) #128

Conversation

ariostas
Copy link
Member

This is a rebase of PR #40. Since it changes the performance I made it as its own PR so that we can compare the plots with the original PR.

@ariostas ariostas requested a review from YonsiG November 20, 2024 16:52
@ariostas ariostas changed the title Rebase PR40 Change pT5 rz chi2 cut definition into helix approximation (rebase PR40) Nov 22, 2024
@ariostas
Copy link
Member Author

/run all

Copy link

The PR was built and ran successfully in standalone mode. Here are some of the comparison plots.

Efficiency vs pT comparison Efficiency vs eta comparison
Fake rate vs pT comparison Fake rate vs eta comparison
Duplicate rate vs pT comparison Duplicate rate vs eta comparison

The full set of validation and comparison plots can be found here.

Here is a timing comparison:

   Evt    Hits       MD       LS      T3       T5       pLS       pT5      pT3      TC       Reset    Event     Short             Rate
   avg     40.9    384.6    191.2    127.0    135.1    501.4    117.8    243.5    102.0      3.2    1846.5    1304.2+/- 362.3     491.8   explicit[s=4] (target branch)
   avg     40.5    383.9    191.0    128.8    136.8    499.8    106.6    244.6    101.9      2.8    1836.7    1296.4+/- 358.2     488.5   explicit[s=4] (this PR)

Copy link

The PR was built and ran successfully with CMSSW. Here are some plots.

OOTB All Tracks
Efficiency and fake rate vs pT, eta, and phi

The full set of validation and comparison plots can be found here.

@@ -641,10 +642,9 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE::lst {
float diffz1 = alpaka::math::abs(acc, solz1 - zsi) * 100;
float diffz2 = alpaka::math::abs(acc, solz2 - zsi) * 100;
diffz = alpaka::math::min(acc, diffz1, diffz2);
residual = diffz;
Copy link

Choose a reason for hiding this comment

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

It is a bit weird that this line and the Line 628 are added into this PR, it seems pure pT3 rzchi2 work.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you, @YonsiG. Seems like I might have messed something up. I'll fix it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, if you look at #40, those changes were made for pT3 rzchi2. Either way, those changes shouldn't affect anything.

Copy link

Choose a reason for hiding this comment

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

Yes, those are for pT3 rzchi2. The order doesn't affect much as you said.

@YonsiG
Copy link

YonsiG commented Nov 26, 2024

I think to reproduce PR #40 , this PR looks good to me. The plot before this PR baseline is a bit different. Other than that, this PR should be good to merge.

@ariostas
Copy link
Member Author

I switched the changes to computePT5RZChiSquared even though originally they were applied to computePT3RZChiSquared. Regardless, they are more of a style change since the logic is the same. The plots could look a bit different because things were merged in a different order. I'll re-run the standalone test just to make sure that I didn't break anything.

/run standalone
/run checks

Copy link

The PR was built and ran successfully in standalone mode. Here are some of the comparison plots.

Efficiency vs pT comparison Efficiency vs eta comparison
Fake rate vs pT comparison Fake rate vs eta comparison
Duplicate rate vs pT comparison Duplicate rate vs eta comparison

The full set of validation and comparison plots can be found here.

Here is a timing comparison:

   Evt    Hits       MD       LS      T3       T5       pLS       pT5      pT3      TC       Reset    Event     Short             Rate
   avg     41.5    382.9    184.1    130.5    136.3    548.1    119.3    247.1    142.2      3.0    1935.2    1345.5+/- 376.2     514.5   explicit[s=4] (target branch)
   avg     43.0    390.6    186.8    129.2    135.7    506.9    109.1    254.5    137.1      2.8    1895.5    1345.7+/- 375.7     503.4   explicit[s=4] (this PR)

@YonsiG
Copy link

YonsiG commented Nov 26, 2024

Thank you Andres, these looks good and I will merge it

@YonsiG YonsiG merged commit 2e0a3c1 into CMSSW_14_1_0_pre3_LST_X_LSTCore_realfiles_batch1_devel_rebased Nov 26, 2024
2 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.

2 participants