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

PWGJE: Implementing background subtraction for jets into the framework and adding self contained HF format #4368

Merged
merged 2 commits into from
Jan 21, 2024

Conversation

nzardosh
Copy link
Collaborator

adding HF stuff

bug fixes

debugging checks

@nzardosh nzardosh disabled auto-merge January 18, 2024 18:49
@nzardosh nzardosh enabled auto-merge (squash) January 18, 2024 18:50
ddobrigk
ddobrigk previously approved these changes Jan 18, 2024
@ddobrigk
Copy link
Collaborator

Hi @nzardosh, approved - however, now that I look at the compilation status: it might be worthwhile to check the compilation error as sometimes clang is correct in catching the misuse of template while gcc doesn't complain... (if I remember correctly, something like this happened to me in the past...)

@nzardosh
Copy link
Collaborator Author

Hi @nzardosh, approved - however, now that I look at the compilation status: it might be worthwhile to check the compilation error as sometimes clang is correct in catching the misuse of template while gcc doesn't complain... (if I remember correctly, something like this happened to me in the past...)

Thanks, I've tried to fix them. Shame they don't show up locally

@nzardosh nzardosh disabled auto-merge January 20, 2024 19:05
@nzardosh nzardosh enabled auto-merge (squash) January 20, 2024 19:05
@nzardosh nzardosh requested a review from ddobrigk January 20, 2024 19:06
Comment on lines +93 to +97
template <typename TPt, typename TPhi, typename TM>
auto pz(TPt pt, TPhi eta, TM m)
{
return std::sqrt(pt * pt + m * m) * std::sinh(y(pt, eta, m));
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

To be simplified. Mass is not needed.

Comment on lines +106 to +109
DECLARE_SOA_DYNAMIC_COLUMN(Pz, pz, //! D0 px
[](float pt, float eta) -> float { return functions::pz(pt, eta, o2::constants::physics::MassD0); });
DECLARE_SOA_DYNAMIC_COLUMN(P, p, //! D0 momentum
[](float pt, float eta, float phi) -> float { return RecoDecay::p(functions::px(pt, phi), functions::py(pt, phi), functions::pz(pt, eta, o2::constants::physics::MassD0)); });
Copy link
Collaborator

Choose a reason for hiding this comment

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

To be simplified. Mass is not needed.

@nzardosh nzardosh merged commit ceebe1c into AliceO2Group:master Jan 21, 2024
10 checks passed
hahassan7 pushed a commit to hahassan7/O2Physics that referenced this pull request Feb 1, 2024
…k and adding self contained HF format (AliceO2Group#4368)

* PWGJE: Implementing background subtraction for jets into the framework

adding HF stuff

bug fixes

debugging checks

* fixing macosarm problems

---------

Co-authored-by: Nima Zardoshti <[email protected]>
basiach pushed a commit to basiach/O2Physics that referenced this pull request Feb 23, 2024
…k and adding self contained HF format (AliceO2Group#4368)

* PWGJE: Implementing background subtraction for jets into the framework

adding HF stuff

bug fixes

debugging checks

* fixing macosarm problems

---------

Co-authored-by: Nima Zardoshti <[email protected]>
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