Skip to content

Conversation

@torkjellsdatter
Copy link
Contributor

Purpose

Filling MCTruth histogram with triplet candidates rather than mcTracks.

Files changed

PWGDQ/Core/HistogramsLibrary.cxx

  • Modified histogram group mctruth-triplet to make histogram names more general ("photon" → "Assoc" for associated track).
  • Increased variable ranges to account for heavier triplets.

PWGDQ/Core/VarManager.h

  • Templatized VarManager::FillTripleMC with candidateType as a non-type template parameter.
  • Added a conditional branch for if constexpr (candidateType == kBtoJpsiEEK).
  • Variable names in this branch were chosen to match the existing mctruth-triplet histogram definitions.

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

  • Added calculation of triplet values using VarManager::FillTripleMC()
    Updated histogram definition logic:
if (classStr.Contains("MCTruthGenSelBR")) {
  dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "mctruth_triple");
} else if (classStr.Contains("MCTruthGen")) {
  dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "mctruth_track");
}

to ensure that only one of the histogram sets is defined per class.

@github-actions
Copy link

github-actions bot commented Nov 3, 2025

O2 linter results: ❌ 446 errors, ⚠️ 729 warnings, 🔕 0 disabled

@github-actions github-actions bot changed the title Change of Fill-function in dqEfficiency_withAssoc/AnalysisDileptonTrack:processMCGenWithEventSelection [PWGDQ] Change of Fill-function in dqEfficiency_withAssoc/AnalysisDileptonTrack:processMCGenWithEventSelection Nov 3, 2025
[PWGDQ] Please consider the following formatting changes to AliceO2Group#13661
@iarsene iarsene merged commit 0239d1f into AliceO2Group:master Nov 4, 2025
12 of 13 checks passed
lmattei01 pushed a commit to lmattei01/O2Physics that referenced this pull request Dec 5, 2025
…eptonTrack:processMCGenWithEventSelection (AliceO2Group#13661)

Co-authored-by: Ida Torkjellsdatter Storehaug <idats@Idas-MacBook-Pro.local>
Co-authored-by: Ida Torkjellsdatter Storehaug <idats@eduroam-193-157-161-103.wlan.uio.no>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
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.

3 participants