Skip to content

Commit ccfcc13

Browse files
committed
Change manual dilepton cut to aod filtering
1 parent 24f8382 commit ccfcc13

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

PWGDQ/Tasks/jPsiMuonCorrelations.cxx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ struct DqJPsiMuonCorrelations {
110110
Filter eventFilter = aod::dqanalysisflags::isEventSelected == 1;
111111

112112
// Define the filter for the dileptons
113-
Filter dileptonFilter = aod::reducedpair::sign == 0;
113+
Filter dileptonFilter = aod::reducedpair::pt > fConfigDileptonPtMin && aod::reducedpair::pt < fConfigDileptonPtMax &&
114+
aod::reducedpair::eta > fConfigDileptonEtaMin && aod::reducedpair::eta < fConfigDileptonEtaMax;
114115

115116
constexpr static uint32_t FgDimuonsFillMap = VarManager::ObjTypes::ReducedMuon | VarManager::ObjTypes::Pair; // fill map
116117

@@ -174,11 +175,6 @@ struct DqJPsiMuonCorrelations {
174175
for (const auto& dilepton : dileptons) {
175176
VarManager::FillTrack<FgDimuonsFillMap>(dilepton, fValuesDilepton.data());
176177

177-
// Dilepton kinematic cuts
178-
if ((dilepton.eta() < fConfigDileptonEtaMin || dilepton.eta() > fConfigDileptonEtaMax) ||
179-
(dilepton.pt() < fConfigDileptonPtMin || dilepton.pt() > fConfigDileptonPtMax)) {
180-
continue;
181-
}
182178
// Dilepton leg kinematic cuts
183179
if ((dilepton.eta1() < fConfigMuonEtaMin || dilepton.eta1() > fConfigMuonEtaMax) ||
184180
(dilepton.pt1() < axisPt.value[1] || dilepton.pt1() > axisPt.value.back()) ||

0 commit comments

Comments
 (0)