[PWGJE] Adding new Angularity Task to PWGJE - #17299
Conversation
|
@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" |
There was a problem hiding this comment.
you seem to have alot of includes which i am not sure are needed?
There was a problem hiding this comment.
When you look at the output of the code-check, you will be sure. ;-)
There was a problem hiding this comment.
Will the code check run if I dont approve? It seems to be waiting for approval
There was a problem hiding this comment.
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.
Please consider the following formatting changes to AliceO2Group#17299
|
O2 linter results: ❌ 1 errors, |
… issues, remove unused includes, apply clang-format
|
Error while checking build/O2Physics/staging for 5a7ac58 at 2026-08-06 13:39: Full log here. |
|
Error while checking build/O2Physics/o2 for 5a7ac58 at 2026-08-06 13:40: Full log here. |
|
Error while checking build/O2Physics/code-check for 5a7ac58 at 2026-08-06 13:40: Full log here. |
| consteval float getValFromBin(int bin) | ||
| { | ||
| return static_cast<float>(bin) - 0.5f; | ||
| } |
| static_cast<std::string>(eventSelections)); | ||
| trackSelection = jetderiveddatautilities::initialiseTrackSelection( | ||
| static_cast<std::string>(trackSelections)); |
| const double px = trk.pt() * std::cos(trk.phi()); | ||
| const double py = trk.pt() * std::sin(trk.phi()); | ||
| const double pz = trk.pt() * std::sinh(trk.eta()); | ||
| const double p = std::sqrt(px * px + py * py + pz * pz); | ||
|
|
||
| sumPx += px; | ||
| sumPy += py; | ||
| sumPz += pz; | ||
| sumE += p; |
There was a problem hiding this comment.
Useless. Use existing tools.
| const double p = std::sqrt(px * px + py * py + pz * pz); | ||
| const double e = std::sqrt(p * p + m * m); | ||
|
|
||
| sumPx += px; | ||
| sumPy += py; | ||
| sumPz += pz; | ||
| sumE += e; |
There was a problem hiding this comment.
Useless. Use existing tools.
| sumE += e; | ||
| } | ||
|
|
||
| const double m2 = sumE * sumE - (sumPx * sumPx + sumPy * sumPy + sumPz * sumPz); |
There was a problem hiding this comment.
Useless. Use existing tools.
| TVector3 d0Vector(d0Candidate.px(), d0Candidate.py(), d0Candidate.pz()); | ||
|
|
||
| // Longitudinal momentum fraction | ||
| const float zParallel = jetVector.Dot(d0Vector) / jetVector.Dot(jetVector); |
There was a problem hiding this comment.
Useless. Use existing tools.
| const int8_t geoStatus = static_cast<int8_t>(isGeoMatched ? 1 : 0); | ||
| const int8_t candStatus = static_cast<int8_t>(isCandMatched ? 1 : 0); | ||
| const int8_t cleanStatus = static_cast<int8_t>(isCleanMatched ? 1 : 0); |
There was a problem hiding this comment.
Why don't you cast the bool directly?
This Task calculates the Angularity for D0 particles.