Skip to content

Commit 6db7649

Browse files
[PWGDQ] Fill electron-leg DCA variables in FillPair for kElectronMuon pairs
1 parent 7012202 commit 6db7649

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

PWGDQ/Core/VarManager.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3923,6 +3923,11 @@ void VarManager::FillPair(T1 const& t1, T2 const& t2, float* values)
39233923
values[kQuadDCAabsXY] = std::sqrt((dca1XY * dca1XY + dca2XY * dca2XY) / 2.);
39243924
}
39253925
}
3926+
if constexpr ((pairType == kElectronMuon) && ((fillMap & ReducedTrackBarrel) > 0)) {
3927+
// DCA of the barrel (electron) leg; not filled in FillPairME since the mixed-event barrel track type has no DCA columns
3928+
values[kDCAxy1] = t1.dcaXY();
3929+
values[kDCAz1] = t1.dcaZ();
3930+
}
39263931
if (fgUsedVars[kPairPhiv]) {
39273932
values[kPairPhiv] = calculatePhiV<pairType>(t1, t2);
39283933
}

0 commit comments

Comments
 (0)