[PWGEM/Dilepton] update taggingHFE#16326
Conversation
|
O2 linter results: ❌ 413 errors, |
Please consider the following formatting changes to AliceO2Group#16326
|
Error while checking build/O2Physics/o2 for 8864d12 at 2026-05-20 19:18: Full log here. |
|
Error while checking build/O2Physics/staging for 8864d12 at 2026-05-20 19:19: Full log here. |
|
Error while checking build/O2Physics/staging for c03142e at 2026-05-20 19:27: Full log here. |
|
Error while checking build/O2Physics/o2 for c03142e at 2026-05-20 19:29: Full log here. |
|
Error while checking build/O2Physics/o2 for 1f50a75 at 2026-05-20 19:30: Full log here. |
|
Error while checking build/O2Physics/staging for 1f50a75 at 2026-05-20 19:34: Full log here. |
There was a problem hiding this comment.
Most of the includes are unused. How did you come up with this list?
There was a problem hiding this comment.
Again. Most includes are unused. You are supposed to clean them up before making the PR.
| class ElectronModule | ||
| { | ||
| public: | ||
| ElectronModule() |
| DECLARE_SOA_COLUMN(HadronType, hadronType, std::vector<uint8_t>); //! 0:track, 1:K0S, 2:Lambda, 3:AntiLambda, 4:XiMinus, 5:XiPlus, 6:OmegaMinus, 7:OmegaPlus | ||
|
|
||
| DECLARE_SOA_DYNAMIC_COLUMN(ProbaSCT, probaSCT, [](std::vector<float> p0, std::vector<float> p1, std::vector<float> p2, std::vector<float> p3, std::vector<uint8_t> type, int index) -> std::array<float, 5> { return std::array<float, 5>{p0[index], p1[index], p2[index], p3[index], static_cast<float>(type[index])}; }); | ||
| DECLARE_SOA_DYNAMIC_COLUMN(NSV, nSV, [](std::vector<uint8_t> type) -> size_t { return type.size(); }); |
There was a problem hiding this comment.
Do not pass vectors by value.
| return false; | ||
| } | ||
|
|
||
| if (!fElectronCut.includeITSsa && (!track.hasITS() || !track.hasTPC())) { |
There was a problem hiding this comment.
!track.hasITS() is always false.
| auto trackParCov2 = getTrackParCov(looseElectron); | ||
| trackParCov2.setPID(o2::track::PID::Electron); | ||
| bool isPropOK = o2::base::Propagator::Instance()->propagateToDCABxByBz(mVtx, trackParCov2, 2.f, matCorr, &mDcaInfoCov); | ||
| if (!isPropOK) { |
|
|
||
| auto hadronParCov = getTrackParCov(hadron); | ||
| o2::dataformats::DCA mDcaInfoCov; | ||
| mDcaInfoCov.set(999, 999, 999, 999, 999); |
| std::unordered_map<int, double> mapCollisionTime; | ||
| std::unordered_map<int, double> mapCollisionTimeError; | ||
| for (const auto& track : tracks) { | ||
| if (mapCollisionTime.find(track.collisionId()) == mapCollisionTime.end()) { |
There was a problem hiding this comment.
Searching before insertion is not necessary. Instead of mapCollisionTime[track.collisionId()]=track.tofEvTime() consider using mapCollisionTime.try_emplace(track.collisionId(), track.tofEvTime());.
| }; | ||
| } | ||
|
|
||
| uint8_t mCachedIndexBinning; // index correspondance between configurable and available input features |
| }; | ||
| } | ||
|
|
||
| uint8_t mCachedIndexBinning; // index correspondance between configurable and available input features |
[PWGEM/Dilepton] update taggingHFE