-
Notifications
You must be signed in to change notification settings - Fork 484
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
base: master
Are you sure you want to change the base?
D2H: PV Contributors for efficiency purpose #7717
Conversation
There was a problem hiding this 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); |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
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); |
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