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

PWGHF: D+h correlations - efficiency correction #6512

Merged
merged 4 commits into from
Jun 13, 2024

Conversation

apalasciano
Copy link
Collaborator

D+ - h correlation task:

  • efficiency evaluation
  • efficiency correction to correl distribution
  • QA histogram
  • removing obsolete code

Comment on lines 131 to 132
registry.add("hDeltaEtaPtIntSignalRegion", stringDHadron + stringSignal + stringDeltaEta + "entries", {HistType::kTH1F, {{axisDeltaEta}}}),
registry.add("hDeltaPhiPtIntSignalRegion", stringDHadron + stringSignal + stringDeltaPhi + "entries", {HistType::kTH1F, {{axisDeltaPhi}}}),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This won't compile. Please make sure your branch compiles before making a PR.

Suggested change
registry.add("hDeltaEtaPtIntSignalRegion", stringDHadron + stringSignal + stringDeltaEta + "entries", {HistType::kTH1F, {{axisDeltaEta}}}),
registry.add("hDeltaPhiPtIntSignalRegion", stringDHadron + stringSignal + stringDeltaPhi + "entries", {HistType::kTH1F, {{axisDeltaPhi}}}),
registry.add("hDeltaEtaPtIntSignalRegion", stringDHadron + stringSignal + stringDeltaEta + "entries", {HistType::kTH1F, {{axisDeltaEta}}});
registry.add("hDeltaPhiPtIntSignalRegion", stringDHadron + stringSignal + stringDeltaPhi + "entries", {HistType::kTH1F, {{axisDeltaPhi}}});

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, it does compile. It just does something slightly different. :-)

@vkucera vkucera marked this pull request as draft June 13, 2024 15:26
Comment on lines 115 to 117
HistogramRegistry registry{"registry", {}, OutputObjHandlingPolicy::AnalysisObject};

Filter dplusFilter = ((o2::aod::hf_track_index::hfflag & static_cast<uint8_t>(1 << aod::hf_cand_3prong::DecayType::DplusToPiKPi)) != static_cast<uint8_t>(0)) && aod::hf_sel_candidate_dplus::isSelDplusToPiKPi >= selectionFlagDplus;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please keep the registry last.

@apalasciano apalasciano marked this pull request as ready for review June 13, 2024 15:54
@@ -141,6 +141,8 @@ struct HfCorrelatorDplusHadrons {

Configurable<int> selectionFlagDplus{"selectionFlagDplus", 7, "Selection Flag for Dplus"}; // 7 corresponds to topo+PID cuts
Configurable<int> applyEfficiency{"applyEfficiency", 1, "Flag for applying D-meson efficiency weights"};
Configurable<std::vector<double>> binsPtEfficiencyD{"binsPtEfficiencyD", std::vector<double>{o2::analysis::hf_cuts_dplus_to_pi_k_pi::vecBinsPt}, "pT bin limits for efficiency"};
Configurable<std::vector<double>> efficiencyD{"efficiencyD", {1., 1., 1., 1., 1., 1.}, "efficiency values for D+ meson"};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Configurable<std::vector<double>> efficiencyD{"efficiencyD", {1., 1., 1., 1., 1., 1.}, "efficiency values for D+ meson"};
Configurable<std::vector<float>> efficiencyD{"efficiencyD", {1., 1., 1., 1., 1., 1.}, "efficiency values for D+ meson"};

Comment on lines 78 to 79
Configurable<std::vector<double>> efficiencyD{"efficiencyD", {1., 1., 1., 1., 1., 1.}, "efficiency values for D+ meson"};
Configurable<std::vector<double>> efficiencyHad{"efficiencyHad", {1., 1., 1., 1., 1., 1.}, "efficiency values for associated particles"};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Configurable<std::vector<double>> efficiencyD{"efficiencyD", {1., 1., 1., 1., 1., 1.}, "efficiency values for D+ meson"};
Configurable<std::vector<double>> efficiencyHad{"efficiencyHad", {1., 1., 1., 1., 1., 1.}, "efficiency values for associated particles"};
Configurable<std::vector<float>> efficiencyD{"efficiencyD", {1., 1., 1., 1., 1., 1.}, "efficiency values for D+ meson"};
Configurable<std::vector<float>> efficiencyHad{"efficiencyHad", {1., 1., 1., 1., 1., 1.}, "efficiency values for associated particles"};

@fcolamar
Copy link
Collaborator

Hi Antonio, I'm generally ok with this PR. As discussed in private we can refine the associated pt ranges,.but this can be done at a later stage.
If there are no further comments by @vkucera or the others, I would approve this PR, since we would like to have a train run on the updated code and get some results to compare with Samuele's Ds-h before Monday's HF approvals of the latter study.
Cheers,
Fabio

@fcolamar fcolamar enabled auto-merge (squash) June 13, 2024 19:59
@fcolamar fcolamar dismissed vkucera’s stale review June 13, 2024 20:05

Suggested changes implemented by the author

@fcolamar fcolamar merged commit 9cf516e into AliceO2Group:master Jun 13, 2024
10 of 11 checks passed
christianreckziegel pushed a commit to christianreckziegel/O2Physics that referenced this pull request Jun 13, 2024
* PWGHF: D+h Corr - efficeincy correction

* Fix

* removal not needed brackets

* Fixes
@apalasciano apalasciano deleted the DplusCorr branch June 14, 2024 13:37
GiorgioAlbertoLucia pushed a commit to GiorgioAlbertoLucia/O2Physics that referenced this pull request Jul 9, 2024
* PWGHF: D+h Corr - efficeincy correction

* Fix

* removal not needed brackets

* Fixes
echizzal pushed a commit to echizzal/O2Physics that referenced this pull request Jul 18, 2024
* PWGHF: D+h Corr - efficeincy correction

* Fix

* removal not needed brackets

* Fixes
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.

3 participants