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: Add finding leading particle in correlatorLcHadrons #8183

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

Conversation

1481014945
Copy link
Contributor

@1481014945 1481014945 commented Oct 28, 2024

Dear, experts
Sorry for bothering you again.
I would like to add a function to find the leading particle in correlatorLcHadrons. This is similar to what we have in correlatorD0Hadrons, which you can see through this link.
#4962
#7722

Comment on lines 13 to 14
/// \brief Utilities for HFC analyses

Copy link
Collaborator

Choose a reason for hiding this comment

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

Add yourself as author.

Suggested change
/// \brief Utilities for HFC analyses
/// \brief Utilities for HFC analyses
/// \author ...

Comment on lines 18 to 19
#include <TString.h>
#include <cmath>
Copy link
Collaborator

@vkucera vkucera Oct 29, 2024

Choose a reason for hiding this comment

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

Suggested change
#include <TString.h>
#include <cmath>
#include <cmath>

Why do you need TString?
Include the header which defines o2::constants::math::PI.

Copy link
Collaborator

Choose a reason for hiding this comment

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

You also need to include TPDGCode.h for the named PDG codes.

PWGHF/HFC/Utils/utilsCorrelations.h Outdated Show resolved Hide resolved
PWGHF/HFC/Utils/utilsCorrelations.h Outdated Show resolved Hide resolved
{
auto leadingParticle = tracks.begin();
for (auto const& track : tracks) {
if (std::abs(track.dcaXY()) >= 1. || std::abs(track.dcaZ()) >= 1.) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

These should be configurable.

Comment on lines 12 to 13
/// \file utilsCorrelations.h
/// \brief Xu Wang <[email protected]>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fix

#ifndef PWGHF_HFC_UTILS_UTILSCORRELATIONS_H_
#define PWGHF_HFC_UTILS_UTILSCORRELATIONS_H_

#include <cmath>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm sorry, but I don't quite understand what you mean by "fix."

Copy link
Collaborator

Choose a reason for hiding this comment

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

You have not addressed my previous comments correctly. See #8183 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I overlooked this message.

PWGHF/HFC/Utils/utilsCorrelations.h Outdated Show resolved Hide resolved
PWGHF/HFC/Utils/utilsCorrelations.h Outdated Show resolved Hide resolved
@1481014945 1481014945 marked this pull request as ready for review October 30, 2024 02:45
@1481014945 1481014945 marked this pull request as draft October 30, 2024 03:03
@1481014945 1481014945 marked this pull request as ready for review October 30, 2024 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pwghf PWG-HF
Development

Successfully merging this pull request may close these issues.

2 participants