Skip to content

Commit b73307c

Browse files
authored
[PWGJE] Fixing bug with missing histograms (AliceO2Group#9661)
1 parent 3a233b6 commit b73307c

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

PWGJE/Tasks/jetHadronRecoil.cxx

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ struct JetHadronRecoil {
164164
double phiTT = 0;
165165
int trigNumber = 0;
166166
int nTT = 0;
167-
double leadingPT = 0;
168167
float pTHat = 10. / (std::pow(weight, 1.0 / pTHatExponent));
169168

170169
float dice = rand->Rndm();
@@ -241,14 +240,6 @@ struct JetHadronRecoil {
241240
if (std::abs(dphi - o2::constants::math::PI) < 0.6) {
242241
registry.fill(HIST("hSignalPt"), jet.pt() - (rho * jet.area()), weight);
243242
}
244-
registry.fill(HIST("hJetSignalConstituentMultiplicity"), jet.pt() - (rho * jet.area()), dphi, jet.tracksIds().size(), weight);
245-
for (const auto& constituent : jet.template tracks_as<U>()) {
246-
if (constituent.pt() > leadingPT) {
247-
leadingPT = constituent.pt();
248-
}
249-
registry.fill(HIST("hJetSignalConstituentPt"), jet.pt() - (rho * jet.area()), dphi, constituent.pt(), weight);
250-
}
251-
registry.fill(HIST("hSignalLeadingTrack"), jet.pt() - (rho * jet.area()), dphi, leadingPT, weight);
252243
}
253244
if (!isSigCol) {
254245
for (const auto& jetWTA : jet.template matchedJetGeo_as<std::decay_t<W>>()) {
@@ -265,14 +256,6 @@ struct JetHadronRecoil {
265256
if (std::abs(dphi - o2::constants::math::PI) < 0.6) {
266257
registry.fill(HIST("hReferencePt"), jet.pt() - (rho * jet.area()), weight);
267258
}
268-
registry.fill(HIST("hJetReferenceConstituentMultiplicity"), jet.pt() - (rho * jet.area()), dphi, jet.tracksIds().size(), weight);
269-
for (const auto& constituent : jet.template tracks_as<U>()) {
270-
if (constituent.pt() > leadingPT) {
271-
leadingPT = constituent.pt();
272-
}
273-
registry.fill(HIST("hJetReferenceConstituentPt"), jet.pt() - (rho * jet.area()), dphi, constituent.pt(), weight);
274-
}
275-
registry.fill(HIST("hReferenceLeadingTrack"), jet.pt() - (rho * jet.area()), dphi, leadingPT, weight);
276259
}
277260
}
278261
}
@@ -286,7 +269,6 @@ struct JetHadronRecoil {
286269
double phiTT = 0;
287270
int trigNumber = 0;
288271
int nTT = 0;
289-
double leadingPT = 0;
290272
float pTHat = 10. / (std::pow(weight, 1.0 / pTHatExponent));
291273

292274
float dice = rand->Rndm();
@@ -365,14 +347,6 @@ struct JetHadronRecoil {
365347
if (std::abs(dphi - o2::constants::math::PI) < 0.6) {
366348
registry.fill(HIST("hSignalPt"), jet.pt(), weight);
367349
}
368-
registry.fill(HIST("hJetSignalConstituentMultiplicity"), jet.pt(), dphi, jet.tracksIds().size(), weight);
369-
for (const auto& constituent : jet.template tracks_as<U>()) {
370-
if (constituent.pt() > leadingPT) {
371-
leadingPT = constituent.pt();
372-
}
373-
registry.fill(HIST("hJetSignalConstituentPt"), jet.pt(), dphi, constituent.pt(), weight);
374-
}
375-
registry.fill(HIST("hSignalLeadingTrack"), jet.pt(), dphi, leadingPT, weight);
376350
}
377351
if (!isSigCol) {
378352
for (const auto& jetWTA : jet.template matchedJetGeo_as<std::decay_t<W>>()) {
@@ -389,14 +363,6 @@ struct JetHadronRecoil {
389363
if (std::abs(dphi - o2::constants::math::PI) < 0.6) {
390364
registry.fill(HIST("hReferencePt"), jet.pt(), weight);
391365
}
392-
registry.fill(HIST("hJetReferenceConstituentMultiplicity"), jet.pt(), dphi, jet.tracksIds().size(), weight);
393-
for (const auto& constituent : jet.template tracks_as<U>()) {
394-
if (constituent.pt() > leadingPT) {
395-
leadingPT = constituent.pt();
396-
}
397-
registry.fill(HIST("hJetReferenceConstituentPt"), jet.pt(), dphi, constituent.pt(), weight);
398-
}
399-
registry.fill(HIST("hReferenceLeadingTrack"), jet.pt(), dphi, leadingPT, weight);
400366
}
401367
}
402368
}

0 commit comments

Comments
 (0)