Skip to content

Commit 56fdf05

Browse files
committed
Cleanup and add todos
1 parent d95b963 commit 56fdf05

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

PWGDQ/Tasks/taskJPsiMu.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ struct DqJPsiMuonCorrelations {
126126
template <int TCandidateType, uint32_t TEventFillMap, uint32_t TMuonFillMap, typename TEvent, typename TMuonAssocs, typename TMuonTracks, typename TDileptons>
127127
void runDileptonMuon(TEvent const& event, TMuonAssocs const& assocs, TMuonTracks const& /*tracks*/, TDileptons const& dileptons)
128128
{
129-
// VarManager::ResetValues(0, VarManager::kNVars, fValuesHadron);
130129
VarManager::ResetValues(0, VarManager::kNVars, fValuesMuon);
131130
VarManager::ResetValues(0, VarManager::kNVars, fValuesDilepton);
132131
VarManager::FillEvent<TEventFillMap>(event, fValuesMuon);
@@ -138,6 +137,8 @@ struct DqJPsiMuonCorrelations {
138137

139138
if (dileptons.size() > 0) {
140139

140+
// TODO: Implement cuts on dileptons and assocs
141+
141142
for (auto& dilepton : dileptons) {
142143
VarManager::FillTrack<fgDimuonsFillMap>(dilepton, fValuesDilepton);
143144
registry.fill(HIST("h2dDimuonPtInvVsInvMass"), dilepton.mass(), dilepton.pt());
@@ -148,6 +149,8 @@ struct DqJPsiMuonCorrelations {
148149
}
149150
auto track = assoc.template reducedmuon_as<TMuonTracks>();
150151

152+
// TODO: Check if the associated track is part of the dilepton candidate, if so skip it to avoid auto-correlations
153+
151154
float deltaEta = track.eta() - dilepton.eta();
152155
float deltaPhi = track.phi() - dilepton.phi();
153156
if (deltaPhi < -constants::math::PI/2.0f) {
@@ -156,6 +159,8 @@ struct DqJPsiMuonCorrelations {
156159
deltaPhi -= 2.0f * constants::math::PI;
157160
}
158161

162+
// TODO: Implement weights for efficiency and acceptance correction
163+
159164
if (dilepton.mass() > fConfigDileptonLowMass && dilepton.mass() < fConfigDileptonHighMass) {
160165
registry.fill(HIST("h2dDimuonMuonDeltaEtaVsMuonPtSignal"), deltaEta, track.pt());
161166
registry.fill(HIST("h2dDimuonMuonDeltaPhiVsMuonPtSignal"), deltaPhi, track.pt());
@@ -165,6 +170,7 @@ struct DqJPsiMuonCorrelations {
165170
}
166171
}
167172

173+
// TODO: Implement trigger counting
168174
}
169175
}
170176
}

0 commit comments

Comments
 (0)