You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PWGEM/Dilepton/TableProducer/skimmerPrimaryMuon.cxx
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,7 @@ struct skimmerPrimaryMuon {
106
106
Configurable<float> maxDEta{"maxDEta", 1e+10f, "max. deta between MFT-MCH-MID and MCH-MID"};
107
107
Configurable<float> maxDPhi{"maxDPhi", 1e+10f, "max. dphi between MFT-MCH-MID and MCH-MID"};
108
108
Configurable<bool> cfgApplyPreselectionInBestMatch{"cfgApplyPreselectionInBestMatch", false, "flag to apply preselection in find best match function"};
109
+
Configurable<bool> cfgRequireSameSign{"cfgRequireSameSign", false, "flag to require same sign between MFT and MCH-MID"};
109
110
110
111
// for z shift for propagation
111
112
Configurable<bool> cfgApplyZShiftFromCCDB{"cfgApplyZShiftFromCCDB", false, "flag to apply z shift"};
@@ -343,6 +344,10 @@ struct skimmerPrimaryMuon {
343
344
returnfalse;
344
345
}
345
346
347
+
if (cfgRequireSameSign && (mfttrack.sign() != mchtrack.sign())) {
348
+
returnfalse;
349
+
}
350
+
346
351
xMFT = mfttrack.x();
347
352
yMFT = mfttrack.y();
348
353
@@ -629,6 +634,9 @@ struct skimmerPrimaryMuon {
629
634
if (muon_tmp.chi2MatchMCHMFT() > maxMatchingChi2MCHMFT) {
630
635
continue;
631
636
}
637
+
if (cfgRequireSameSign && (mfttrack.sign() != mchtrack.sign())) {
638
+
continue;
639
+
}
632
640
}
633
641
634
642
if (0.f < muon_tmp.chi2MatchMCHMFT() && muon_tmp.chi2MatchMCHMFT() < min_chi2MatchMCHMFT) {
0 commit comments