Skip to content

Commit 5d885b6

Browse files
committed
Used wrong subsample histogram, changed to triggers
1 parent 26d8ca6 commit 5d885b6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎PWGJE/Tasks/jetSpectraEseTask.cxx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ struct JetSpectraEseTask {
252252
static constexpr int NumSubSmpl = 5;
253253
static constexpr int NumSavedRhoFitEvents = 5;
254254
std::array<std::shared_ptr<THnSparse>, NumSubSmpl> hSameSub;
255-
std::array<std::shared_ptr<TH1>, NumSubSmpl> hCentralityAnalyzedSub;
255+
std::array<std::shared_ptr<THnSparse>, NumSubSmpl> hNtrigSub;
256256

257257
void applySystematicPreset()
258258
{
@@ -428,8 +428,8 @@ struct JetSpectraEseTask {
428428
for (int i = 0; i < NumSubSmpl; ++i) {
429429
std::string n = fmt::format("subsamples/thn_jethad_corr_same_subsample{}", i);
430430
hSameSub[i] = registry.add<THnSparse>(n, "same;...", o2::framework::HistType::kTHnSparseF, axes);
431-
std::string n2 = fmt::format("subsamples/hCentralityAnalyzed_subsample{}", i);
432-
hCentralityAnalyzedSub[i] = registry.add<TH1>(n2, ";Centrality;entries", o2::framework::HistType::kTH1F, {{centAxis}});
431+
std::string n2 = fmt::format("subsamples/hNtrig_subsample{}", i);
432+
hNtrigSub[i] = registry.add<THnSparse>(n2, "", o2::framework::HistType::kTHnSparseF, {{centAxis}, {jetPtAxis}, {dPhiAxis}, {eseAxis}});
433433
}
434434
registry.add("hNtrig", "", {HistType::kTHnSparseF, {{centAxis}, {jetPtAxis}, {dPhiAxis}, {eseAxis}}});
435435

@@ -730,7 +730,6 @@ struct JetSpectraEseTask {
730730
registry.fill(HIST("eventQA/hRho"), centrality, collision.rho());
731731
registry.fill(HIST("eventQA/hCentralityAnalyzed"), centrality);
732732
int lRndInd = fRndm->Integer(NumSubSmpl);
733-
hCentralityAnalyzedSub[lRndInd]->Fill(centrality);
734733

735734
auto corrL = [&](const auto& j) { return j.pt() - evalRho(rhoFit.get(), jetR, j.phi(), collision.rho()) * j.area(); };
736735
for (const auto& jet : jets) {
@@ -763,6 +762,7 @@ struct JetSpectraEseTask {
763762
}
764763

765764
registry.fill(HIST("hNtrig"), centrality, vCorrL, dPhi, qPerc[0]);
765+
hNtrigSub[lRndInd]->Fill(centrality, vCorrL, dPhi, qPerc[0]);
766766
for (const auto& track : tracks) {
767767
if (!jetderiveddatautilities::selectTrack(track, trackSelection)) {
768768
continue;

0 commit comments

Comments
 (0)