Skip to content

Commit ef61dc5

Browse files
committed
Muon DCA computed in tableMaker
1 parent c79889c commit ef61dc5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎PWGDQ/Core/VarManager.h‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3351,9 +3351,7 @@ void VarManager::FillTrack(T const& track, float* values)
33513351
values[kMuonChi2MatchMCHMFT] = track.chi2MatchMCHMFT();
33523352
values[kMuonMatchScoreMCHMFT] = track.matchScoreMCHMFT();
33533353
values[kMuonTrackType] = track.trackType();
3354-
values[kMuonDCAx] = track.sign() * (track.pDca() / std::numbers::sqrt2 / track.p());
3355-
values[kMuonDCAy] = values[kMuonDCAx];
3356-
if constexpr ((fillMap & MuonDca) > 0) {
3354+
if constexpr ((fillMap & ReducedMuonExtra) > 0) {
33573355
values[kMuonDCAx] = track.fwdDcaX();
33583356
values[kMuonDCAy] = track.fwdDcaY();
33593357
}
@@ -4024,7 +4022,7 @@ void VarManager::FillPair(T1 const& t1, T2 const& t2, float* values)
40244022
}
40254023
}
40264024
}
4027-
if constexpr ((pairType == kDecayToMuMu) && ((fillMap & Muon) > 0 || (fillMap & ReducedMuon) > 0)) {
4025+
if constexpr ((pairType == kDecayToMuMu) && ((fillMap & ReducedMuonExtra) > 0)) {
40284026
if (fgUsedVars[kQuadDCAabsXY]) {
40294027
double dca1X = t1.fwdDcaX();
40304028
double dca1Y = t1.fwdDcaY();

0 commit comments

Comments
 (0)