Skip to content

Commit b5fd053

Browse files
authored
[PWGLF] fix detector response matrix (#10671)
1 parent 844a6ca commit b5fd053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ struct AntinucleiInJets {
255255
registryMC.add("antiproton_ue_rec_tof", "antiproton_ue_rec_tof", HistType::kTH1F, {{nbins, min, max, "#it{p}_{T} (GeV/#it{c})"}});
256256

257257
// detector response matrix
258-
registryMC.add("detectorResponseMatrix", "detectorResponseMatrix", HistType::kTH2F, {{1000, 0.0, 100.0, "#it{p}_{T}^{gen} (GeV/#it{c})"}, {2000, -20.0, 20.0, "#it{p}_{T}^{gen} - #it{p}_{T}^{rec} (GeV/#it{c})"}});
258+
registryMC.add("detectorResponseMatrix", "detectorResponseMatrix", HistType::kTH2F, {{1000, 0.0, 100.0, "#it{p}_{T}^{rec} (GeV/#it{c})"}, {2000, -20.0, 20.0, "#it{p}_{T}^{gen} - #it{p}_{T}^{rec} (GeV/#it{c})"}});
259259
}
260260

261261
// systematic uncertainties
@@ -1106,7 +1106,7 @@ struct AntinucleiInJets {
11061106
continue;
11071107

11081108
// fill detector response matrix
1109-
registryMC.fill(HIST("detectorResponseMatrix"), jetPtGen, jetPtGen - jet.pt()); // maybe it should be filled after bkg sub
1109+
registryMC.fill(HIST("detectorResponseMatrix"), jet.pt(), jetPtGen - jet.pt()); // maybe it should be filled after bkg sub
11101110

11111111
// jet pt must be larger than threshold
11121112
auto jetForSub = jet;

0 commit comments

Comments
 (0)