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

feat: Added histograms for ctag fixed WP SF #100

Merged
merged 12 commits into from
Dec 16, 2024

Conversation

adeiorio
Copy link
Contributor

@adeiorio adeiorio commented Sep 30, 2024

util: add WP hist
wf: add WP hists & selections

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 @adeiorio thank you very much for your PR and I have some question.
The changes looks all good to me.
As you see the lining is failed, can you please run black in your local repo and recommit again? we are using version 24.8.0

src/BTVNanoCommissioning/workflows/ctag_Wctt_valid_sf.py Outdated Show resolved Hide resolved
Comment on lines 108 to 118
if "WcM" in self.selMod or "semittM" in self.selMod:
triggers = ["IsoMu27", "IsoMu24"]
isMu = True
dxySigcut = 1.0
muNeEmSum = 0.7
muonpTratioCut = 0.4
isolepdz, isolepdxy, isolepsip3d = 0.01, 0.002, 2
### remove muNeEmSum for cutbased
if "cutbased_WcM" == self.selMod:
muNeEmSum = 1.0
muonpTratioCut = 0.6
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mondalspandan can we sync the selection?
@adeiorio we see a problem with higher pT threshold (was 0.75 before for shape, and we observed some issue. Do you observed good data/MC agreement?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In 2022 I didn't see any particular problem in the data MC agreement. I still have to check for 2023.

Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC the issue was with the muNeEmSum cut not being well calibrated. It kills off a lot of DY but can introduce an additional norm change. I am happy to remove this cut.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @adeiorio @mondalspandan thanks, so both energy fraction cut should in sync?
Then which one we should take?

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's keep muNeEmSum = 1.0 since it's the safest.

Copy link
Collaborator

Choose a reason for hiding this comment

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

How about muonpTratioCut ? @mondalspandan

Copy link
Collaborator

Choose a reason for hiding this comment

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

So we should leave muonpTratioCut = 0.4 and muNeEmSum = 1.0 @mondalspandan @adeiorio are you agree on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @Ming-Yan I produced a new round of data-MC for 2023 with this selection and results are here

Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks ok to me, I think we should merge this
@adeiorio @mondalspandan what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's of course ok with me :)

@Ming-Yan Ming-Yan changed the title Added histograms for ctag fixed WP SF feat: Added histograms for ctag fixed WP SF Oct 16, 2024
@github-actions github-actions bot added the CI label Dec 11, 2024
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 changing this and also the studies on harmonize the selections. Will merge it!

@Ming-Yan Ming-Yan merged commit a85f574 into cms-btv-pog:master Dec 16, 2024
9 checks passed
Ming-Yan pushed a commit that referenced this pull request Dec 17, 2024
* Added histograms for ctag fixed WP SF

* restoring plotutils

* Adding CI for fixed WP workflow

* uniform requirement for shape and fixed WP analyses

* new hist only for cutbased wf

* fixing pipeline

---------

Co-authored-by: Agostino De Iorio <agostino.de.iorio@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants