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

JP tagger recalculation #77

Merged
merged 5 commits into from
Oct 17, 2023
Merged

Conversation

colizz
Copy link
Contributor

@colizz colizz commented Oct 15, 2023

Adding the calculation of jet probability (JP) and jet B probability (JBP).
This is the exact implementation in cmssw, but now written in coffea code.

For each AK4 jet, we take the matched tracks from the PFCands collection.
The IPsig templates as "JPCalibration" file are required to derive the track probability. These track probabilities are then used to calculate jet probability.

Copy link
Collaborator

@Ming-Yan Ming-Yan left a comment

Choose a reason for hiding this comment

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

Hi @colizz thank you for the PR on the JP recalculation!
Sorry I take a bit longer trying to figure out the possibility to get rid of the array builder if possible.

I only have some minor comments regarding to the restructure of the files and directory.
Please let me know if you have any suggestions! (I could also made these changes and merge it)
Thank you !

Copy link
Collaborator

Choose a reason for hiding this comment

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

If I understand correctly, the JP calibration change with different campaign. Could you please create a directory with Summer22EERun3 under data/JPCalib/

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same comments w.r.t. other files

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would suggest to put the whole macro of JPCalibHandler to utils.correction (good to be global variables also checked by commissioninig team)


# print(f'Using JPCalib file {filename}')

templates = uproot.open(f"src/BTVNanoCommissioning/data/JPCalib/{filename}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

filename includes campaign info

src/BTVNanoCommissioning/workflows/BTA_producer.py Outdated Show resolved Hide resolved
@colizz
Copy link
Contributor Author

colizz commented Oct 17, 2023

Hi, I made some changes as recommended. I also managed to use the columnar operations (removing the array builder) in the JP calculation.

Copy link
Collaborator

@Ming-Yan Ming-Yan left a comment

Choose a reason for hiding this comment

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

Thanks for adapting the changes! I will merge to the main repo!

@Ming-Yan Ming-Yan merged commit e0a6f8e into cms-btv-pog:master Oct 17, 2023
2 of 12 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