Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

more correct pt definition in writing out ntuples #388

Merged
merged 6 commits into from
Apr 21, 2024
Merged

Conversation

YonsiG
Copy link
Contributor

@YonsiG YonsiG commented Apr 15, 2024

The original writing out ntuples is not a good estimation of the object pt, and we would prefer to use the pLS pt for pT3 and pT5 objects. Use pt from innerRadius to calculate the T5 pt in the output definition, instead of calculating from inner T3 and outer T3 "beta"s. This slide shows that, in the reco tracks that are matched to true track, the new pt have a smaller difference to the sim_pt compared to master.
On the other hand, there is still room to improve. We see that in the pT5, average over pLS pt and T5 inner radius pt has better resolution than only using pLS pt. We want to also test this on pT3. Then we realize that the radius of T3s aer not defined in the algorithm until we build a T5, which is not optimal and cannot be taken out as the T3 pt. This would come in a later PR to move the T3 radius calculation earlier, so that the output pt of pT3 can change accordingly.

@YonsiG
Copy link
Contributor Author

YonsiG commented Apr 15, 2024

@YonsiG
Copy link
Contributor Author

YonsiG commented Apr 16, 2024

Issue #215 has been addressed. Beta variables in pt calculation is completely updated to the radius.
Issue #254 doesn't show infinity numbers of T5 high pt after this PR, issue closed.

@SegmentLinking SegmentLinking deleted a comment from github-actions bot Apr 16, 2024
@SegmentLinking SegmentLinking deleted a comment from github-actions bot Apr 16, 2024
@YonsiG
Copy link
Contributor Author

YonsiG commented Apr 16, 2024

/run standalone
/run cmssw

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.

@SegmentLinking SegmentLinking deleted a comment from github-actions bot Apr 16, 2024
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.

Copy link
Contributor

@VourMa VourMa left a comment

Choose a reason for hiding this comment

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

Thank you for this PR, @YonsiG. The changes seem good. I have left some proposals for further clean-up relevant to your changes.

code/core/write_sdl_ntuple.cc Outdated Show resolved Hide resolved
code/core/write_sdl_ntuple.cc Outdated Show resolved Hide resolved
code/core/write_sdl_ntuple.cc Show resolved Hide resolved
code/core/write_sdl_ntuple.cc Outdated Show resolved Hide resolved
code/core/write_sdl_ntuple.cc Show resolved Hide resolved
@YonsiG
Copy link
Contributor Author

YonsiG commented Apr 19, 2024

/run standalone

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.

Copy link
Contributor

@VourMa VourMa left a comment

Choose a reason for hiding this comment

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

Thank you for the update, @YonsiG! Approving and merging.

@VourMa VourMa merged commit f8740c1 into master Apr 21, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants