Skip to content

Commit 2394f90

Browse files
committed
test
1 parent 50b0984 commit 2394f90

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

PWGDQ/Tasks/tableReader_withAssoc.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,8 +1836,14 @@ struct AnalysisSameEventPairing {
18361836
auto groupedAssocs = assocs.sliceBy(preslice, event.globalIndex());
18371837
size_t nGood = 0;
18381838
for (auto const& t : groupedAssocs) {
1839-
if (t.isBarrelSelected_raw() && t.isBarrelSelectedPrefilter_raw()) {
1840-
nGood++;
1839+
if constexpr (TPairType == VarManager::kDecayToEE) {
1840+
if (t.isBarrelSelected_raw()) {
1841+
nGood++;
1842+
}
1843+
} else if constexpr (TPairType == VarManager::kDecayToMuMu) {
1844+
if (t.isMuonSelected_raw()) {
1845+
nGood++;
1846+
}
18411847
}
18421848
}
18431849
reserveSize += nGood * (nGood - 1) / 2;

0 commit comments

Comments
 (0)