[PWGHF] Fix missing McCollisions and refactor MC histograms into subdirectories in taskLcToK0sP.cxx#16541
[PWGHF] Fix missing McCollisions and refactor MC histograms into subdirectories in taskLcToK0sP.cxx#16541dongfangqingxin wants to merge 1 commit into
Conversation
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/o2 for 4ac3499 at 2026-06-05 18:09: Full log here. |
|
Error while checking build/O2Physics/staging for 4ac3499 at 2026-06-05 18:13: Full log here. |
| constexpr static std::string_view SignalFolders[] = {"signal", "prompt", "nonprompt"}; | ||
| constexpr static std::string_view SignalSuffixes[] = {"", "Prompt", "NonPrompt"}; | ||
|
|
||
| enum SignalClasses : int { |
There was a problem hiding this comment.
| enum SignalClasses : int { | |
| enum SignalClass : int { |
| @@ -460,6 +575,16 @@ struct HfTaskLcToK0sP { | |||
| if (std::abs(candidate.flagMcMatchRec()) == KDecayChannelLcToK0sP) { | |||
There was a problem hiding this comment.
This is wrong. Compare against the actual filled constant.
There was a problem hiding this comment.
This is wrong. Compare against the actual filled constant.
Hi @vkucera, since there's no Λc+ → pK0s decay channel defined in PWGHF/Core/DecayChannels.h, so I defined one locally ('KDecayChannelLcToK0sP = 1') in the task, following what's done in taskCharmPolarisation.cxx. What should I do in this case?
| template <int SignalType, typename CandidateType> | ||
| void fillHistogramsRecSig(CandidateType const& candidate) | ||
| { | ||
| auto v = extractCandVars(candidate); |
| } | ||
| } else { | ||
| // MC reconstructed background | ||
| auto v = extractCandVars(candidate); |
| float ptCand, eta, phi, invMassLcToK0sP; | ||
| float ptProng0, ptProng1; | ||
| float impactParameter0, impactParameter1; | ||
| float dcaPosToPV, dcaNegToPV; | ||
| float ptV0Pos, ptV0Neg; | ||
| float v0CosPA, v0Radius, dcaV0Daughters; | ||
| float mK0Short, mLambda, mAntiLambda, mGamma; | ||
| float ctV0K0Short, ctV0Lambda; | ||
| float cpa, cpaXY; | ||
| float decayLength, decayLengthXY, ctLc; |
There was a problem hiding this comment.
You must initialise all members.
| template <typename CandType> | ||
| CandVars extractCandVars(CandType const& candidate) | ||
| { |
There was a problem hiding this comment.
This is a conversion constructor.
|
@dongfangqingxin Did you check for warnings in your compilation? |
Hi @vkucera Thanks for the comments! I used a script that only catches errors, not warnings and I did not check log manually — my bad. I'm going to drop the extractCandVars template and just repeat the code instead. |
Why do you want to drop it? |
Since both alibuild and the O2 linter were complaining about the template I and figured removing it was the quickest fix |
…l/prompt/nonprompt/background subdirectories - Add missing McCollisions dependency - Reorganise MC/Rec and MC/Gen histograms into signal/prompt/nonprompt/background subdirectories - Code clean up
taskLcToK0sP.cxx was Updated in this PR