[PWGDQ] Add post-prefilter single-track QA task and fill electron-leg DCA for electron-muon pairs - #17254
Open
Shunsuke-Kurita wants to merge 33 commits into
Open
Conversation
…y_withAssoc AnalysisTrackSelection runs before AnalysisPrefilterSelection, so the effect of the conversion-prefilter veto cannot be inspected at the single-track level anywhere in the workflow (the only prefilter-aware consumers are the pairing tasks). The new AnalysisPostPrefilterTrackSelection task joins the track-collision associations with both the BarrelTrackCuts and the Prefilter decisions and fills track-level histograms, separately for tracks surviving the prefilter veto and for vetoed tracks, per track cut and per MC signal. Use cases: post-prefilter per-origin DCA templates for HF-electron template fits, MC measurement of the photonic-electron tagging efficiency (vetoed / (vetoed + survived)), and track-level prefilter QA. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Shunsuke-Kurita
requested review from
XiaozhiBai,
alibuild,
iarsene,
mcoquet642 and
mguilbau
as code owners
July 29, 2026 14:01
|
O2 linter results: ❌ 229 errors, |
Collaborator
|
Error while checking build/O2Physics/code-check for 6db7649 at 2026-07-29 16:29: Full log here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds two small, related extensions for prefilter-aware analysis in the DQ framework.
1. New task
AnalysisPostPrefilterTrackSelectionindqEfficiency_withAssoc.cxxThe new task joins
ReducedTracksAssocwith theBarrelTrackCutsandPrefilterdecisions and fills track-level histogram classes for both surviving(TrackBarrelPostPrefilter_<cut>) and vetoed (TrackBarrelPrefilterVetoed_<cut>) tracks,per track cut and per MC signal.Use cases:
Implementation notes:
getTaskOptionValue, in the same way as inAnalysisPrefilterSelection.processSkimmed,processSkimmedWithCovandprocessDummyprocess functions are provided; the task is off by default (processDummy) and does not affect existingworkflows.2. Fill electron-leg DCA variables in
FillPairforkElectronMuonpairsVarManager::FillPairfills the leg DCA variables (kDCAxy1/kDCAz1) only forkDecayToEE. This PR fills them also forkElectronMuon(barrel electron leg), guarded by theReducedTrackBarrelfill map, so that electron-muon pairing tasks can book leg-DCA histograms (e.g. electron pT vs DCAxy for HF-electron studies with the muon condition applied). Not filled inFillPairME, since the mixed-event barrel track type carries no DCA columns (noted in a comment).