Skip to content

[PWGJE] Adding new Angularity Task to PWGJE - #17299

Open
Rajdeep-nandi wants to merge 9 commits into
AliceO2Group:masterfrom
Rajdeep-nandi:master
Open

[PWGJE] Adding new Angularity Task to PWGJE#17299
Rajdeep-nandi wants to merge 9 commits into
AliceO2Group:masterfrom
Rajdeep-nandi:master

Conversation

@Rajdeep-nandi

Copy link
Copy Markdown

This Task calculates the Angularity for D0 particles.

@github-actions github-actions Bot added the pwgje label Aug 3, 2026
@github-actions github-actions Bot changed the title Adding new Angularity Task to PWGJE [PWGJE] Adding new Angularity Task to PWGJE Aug 3, 2026
@vkucera
vkucera marked this pull request as draft August 3, 2026 14:59
@vkucera

vkucera commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

@Rajdeep-nandi Please follow the contribution guidelines and make sure your PR passes the tests before you open it for review.

#include "PWGJE/DataModel/Jet.h"
#include "PWGJE/DataModel/JetReducedData.h"
#include "PWGJE/DataModel/JetReducedDataHF.h"
#include "PWGJE/DataModel/JetSubstructure.h"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

you seem to have alot of includes which i am not sure are needed?

@vkucera vkucera Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

When you look at the output of the code-check, you will be sure. ;-)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Will the code check run if I dont approve? It seems to be waiting for approval

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No it won't, as neither build check would. It requires your approval but also a valid PR that can be merged, which is currently not the case.

Rajdeep-nandi added a commit to Rajdeep-nandi/O2Physics that referenced this pull request Aug 4, 2026
Please consider the following formatting changes to AliceO2Group#17299
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

O2 linter results: ❌ 1 errors, ⚠️ 3 warnings, 🔕 0 disabled

… issues, remove unused includes, apply clang-format
@nzardosh
nzardosh marked this pull request as ready for review August 6, 2026 11:30
@nzardosh
nzardosh self-requested a review August 6, 2026 11:30
nzardosh
nzardosh previously approved these changes Aug 6, 2026
@alibuild

This comment was marked as outdated.

@alibuild

This comment was marked as outdated.

@alibuild

This comment was marked as outdated.

@vkucera
vkucera marked this pull request as draft August 6, 2026 11:42
Comment on lines +172 to +175
consteval float getValFromBin(int bin)
{
return static_cast<float>(bin) - 0.5f;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

useless

Comment thread PWGJE/Tasks/jetHFAngularity.cxx Outdated
Comment thread PWGJE/Tasks/jetHFAngularity.cxx Outdated
Comment thread PWGJE/Tasks/jetHFAngularity.cxx Outdated
Comment thread PWGJE/Tasks/jetHFAngularity.cxx Outdated
Comment thread PWGJE/Tasks/jetHFAngularity.cxx Outdated
Comment thread PWGJE/Tasks/jetHFAngularity.cxx Outdated
Please consider the following formatting changes to AliceO2Group#17299
@Rajdeep-nandi

Copy link
Copy Markdown
Author

@nzardosh I have done the o2linter test and clang formatting and tested my code locally and now the o2linter is falling because of some other workflow --Will you please approve for further checks

@mhemmer-cern

Copy link
Copy Markdown
Collaborator

Dear @Rajdeep-nandi, if this is ready for review now you should change this PR from a draft to ready for review. There should be a button at the bottom that says "Ready for review".

@Rajdeep-nandi
Rajdeep-nandi marked this pull request as ready for review August 14, 2026 07:03
@Rajdeep-nandi

Copy link
Copy Markdown
Author

Dear @mhemmer-cern Thank you
I did that just now

@Rajdeep-nandi

Copy link
Copy Markdown
Author

Dear @nzardosh and @vkucera,

Would you kindly approve the PR for the next round of checks,?

double energyTot = 0.;

for (auto const& trk : tracks) {
const std::array<double, 3> mom{trk.px(), trk.py(), trk.pz()};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

mom is useless here.

momTotal[0] += mom[0];
momTotal[1] += mom[1];
momTotal[2] += mom[2];
energyTot += RecoDecay::e(mom, 0.); // massless approximation for ordinary tracks

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

RecoDecay::e is useless here. E = pc.

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

Labels

Development

Successfully merging this pull request may close these issues.

5 participants