Repository navigation
Conversation
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/code-check for 8dbe58d at 2026-11-27 19:40: Full log here. |
|
@axti98 Please fix the error. |
| if constexpr (requires { event.multNTracksPV(); event.multNtrkGlobal(); }) { | ||
| auto correlationFunc = [](double Ntrk, double Npv) -> double { | ||
| // TODO: Find meaningful parameterization for that correlation | ||
| // Parameters obtained from fit to data LHC 25 MB | ||
| double sigmaNpv = 1.247 + 0.11 * std::pow(Npv, 0.789); | ||
| double meanNpv = 0.042 + 0.745 * Npv; | ||
|
|
||
| return (Ntrk - meanNpv) / sigmaNpv; | ||
| }; | ||
|
|
||
| values[kMultCorrelationSigma] = correlationFunc(values[kMultNtrkGlobal], values[kVtxNcontribReal]); | ||
| } | ||
|
|
There was a problem hiding this comment.
not an expert on this, but does it make sense to define a lambda function if you use it just once?
There was a problem hiding this comment.
Good point, no it doesnt
| template <typename T1, typename T2> | ||
| void VarManager::FillEventMCMatch(T1 const& collision, T2 const& mcCollision, float* values) |
There was a problem hiding this comment.
Not sure if this function is needed. I think that calling in sequence the Fill function for the collision and the mccollision one can achieve the same thing. It may require an assumed ordering of the call of FillEvent() and FillMCEvent() which can be dangerous... but also, adding this function opens up the posibility for similar things to be done in different Fill functions which can lead to some confusion. So not sure, I leave it to you.
No description provided.