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

D2H: PV Contributors for efficiency purpose #7717

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

deependra170598
Copy link
Contributor

Hi @fgrosa !
In this PR, I added two new histograms for PV Contributors to calculate the MC weight factors to find efficiency.

Let me know if any changes need to be made. Thanks

Copy link
Collaborator

@fgrosa fgrosa left a comment

Choose a reason for hiding this comment

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

Hi @deependra170598, thanks! I have a few comments (see below)

@@ -179,8 +186,11 @@ struct HfTaskDstarToD0Pi {
auto collision = candDstar.collision_as<CollisionsWCent>();
auto centrality = collision.centFT0M(); // 0-100%

registry.fill(HIST("Efficiency/hPVContributorsEventsWCand"), collision.numContrib(), centrality);
Copy link
Collaborator

@fgrosa fgrosa Sep 18, 2024

Choose a reason for hiding this comment

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

This should be filled per collision, not per candidate (i.e. it has to be moved outside the candidate loop)
Also, remember to rename it as suggested below

auto signDstar = candDstar.signSoftPi();
if (signDstar > 0) {
registry.fill(HIST("Efficiency/hPVContributorsEventsWCandSignal"), collision.numContrib(), centrality, (invDstar - invD0));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same for this (you can check in the candidate loop if you have at least one and after the candidate loop you fill the histo)

@@ -190,6 +200,7 @@ struct HfTaskDstarToD0Pi {
registry.fill(HIST("QA/hPtProng0D0"), candDstar.ptProng0());
registry.fill(HIST("QA/hPtProng1D0"), candDstar.ptProng1());
} else if (signDstar < 0) {
registry.fill(HIST("Efficiency/hPVContributorsEventsWCandSignal"), collision.numContrib(), centrality, (invAntiDstar - invD0Bar));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same for this


// Checking PV contributors from Data as well MC rec
// registry.add("Efficiency/hPVContributorsAllEvents", "PV Contributors; PV Contributor; entries",{HistType::kTH1I,{{100,0,300}}});
registry.add("Efficiency/hPVContributorsEventsWCand", "PV Contributors; PV Contributor; FT0M Centrality", {HistType::kTH2F, {{100, 0, 300}, {axisCentrality}}}, true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

You already have the one with candidates in the other histogram

Suggested change
registry.add("Efficiency/hPVContributorsEventsWCand", "PV Contributors; PV Contributor; FT0M Centrality", {HistType::kTH2F, {{100, 0, 300}, {axisCentrality}}}, true);
registry.add("Efficiency/hPVContributorsEventsAll", "PV Contributors; PV Contributor; FT0M Centrality", {HistType::kTH2F, {{100, 0, 300}, {axisCentrality}}}, true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants