Skip to content

Commit c25bb5b

Browse files
authored
[PWGLF] added configurable for reducing no. of defined histograms for memory usage (#8402)
1 parent 7d9f380 commit c25bb5b

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

PWGLF/Tasks/Strangeness/lambdapolsp.cxx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ struct lambdapolsp {
209209
}
210210

211211
histos.add("hCentrality", "Centrality distribution", kTH1F, {{centAxis}});
212-
histos.add("hCentrality0", "Centrality distribution0", kTH1F, {{centAxis}});
213-
histos.add("hCentrality1", "Centrality distribution1", kTH1F, {{centAxis}});
214-
histos.add("hCentrality2", "Centrality distribution2", kTH1F, {{centAxis}});
215-
histos.add("hCentrality3", "Centrality distribution3", kTH1F, {{centAxis}});
212+
// histos.add("hCentrality0", "Centrality distribution0", kTH1F, {{centAxis}});
213+
// histos.add("hCentrality1", "Centrality distribution1", kTH1F, {{centAxis}});
214+
// histos.add("hCentrality2", "Centrality distribution2", kTH1F, {{centAxis}});
215+
// histos.add("hCentrality3", "Centrality distribution3", kTH1F, {{centAxis}});
216216

217217
if (!checkwithpub) {
218218
// histos.add("hVtxZ", "Vertex distribution in Z;Z (cm)", kTH1F, {{20, -10.0, 10.0}});
@@ -228,10 +228,12 @@ struct lambdapolsp {
228228
histos.add("hcentQxZDCC", "hcentQxZDCC", kTH2F, {{centAxis}, {qxZDCAxis}});
229229
histos.add("hcentQyZDCC", "hcentQyZDCC", kTH2F, {{centAxis}, {qxZDCAxis}});
230230
}
231-
histos.add("hSparseLambdaPolA", "hSparseLambdaPolA", HistType::kTHnSparseF, {thnAxisInvMass, thnAxispT, thnAxisPol, centAxis}, true);
232-
histos.add("hSparseLambdaPolC", "hSparseLambdaPolC", HistType::kTHnSparseF, {thnAxisInvMass, thnAxispT, thnAxisPol, centAxis}, true);
233-
histos.add("hSparseAntiLambdaPolA", "hSparseAntiLambdaPolA", HistType::kTHnSparseF, {thnAxisInvMass, thnAxispT, thnAxisPol, centAxis}, true);
234-
histos.add("hSparseAntiLambdaPolC", "hSparseAntiLambdaPolC", HistType::kTHnSparseF, {thnAxisInvMass, thnAxispT, thnAxisPol, centAxis}, true);
231+
if (!correction) {
232+
histos.add("hSparseLambdaPolA", "hSparseLambdaPolA", HistType::kTHnSparseF, {thnAxisInvMass, thnAxispT, thnAxisPol, centAxis}, true);
233+
histos.add("hSparseLambdaPolC", "hSparseLambdaPolC", HistType::kTHnSparseF, {thnAxisInvMass, thnAxispT, thnAxisPol, centAxis}, true);
234+
histos.add("hSparseAntiLambdaPolA", "hSparseAntiLambdaPolA", HistType::kTHnSparseF, {thnAxisInvMass, thnAxispT, thnAxisPol, centAxis}, true);
235+
histos.add("hSparseAntiLambdaPolC", "hSparseAntiLambdaPolC", HistType::kTHnSparseF, {thnAxisInvMass, thnAxispT, thnAxisPol, centAxis}, true);
236+
}
235237
if (correction) {
236238
histos.add("hSparseLambdaPolA_corr", "hSparseLambdaPolA_corr", HistType::kTHnSparseF, {thnAxisInvMass, thnAxispT, thnAxisCosThetaStar, thnAxisPol, thnAxisPol, thnAxisPol, centAxis}, true);
237239
histos.add("hSparseLambdaPolC_corr", "hSparseLambdaPolC_corr", HistType::kTHnSparseF, {thnAxisInvMass, thnAxispT, thnAxisCosThetaStar, thnAxisPol, thnAxisPol, thnAxisPol, centAxis}, true);
@@ -383,21 +385,21 @@ struct lambdapolsp {
383385
}
384386
auto centrality = collision.centFT0C();
385387

386-
histos.fill(HIST("hCentrality0"), centrality);
388+
// histos.fill(HIST("hCentrality0"), centrality);
387389
if (!collision.triggerevent()) {
388390
return;
389391
}
390-
histos.fill(HIST("hCentrality1"), centrality);
392+
// histos.fill(HIST("hCentrality1"), centrality);
391393

392394
if (additionalEvSel && (!collision.selection_bit(aod::evsel::kNoSameBunchPileup) || !collision.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV))) {
393395
return;
394396
}
395-
histos.fill(HIST("hCentrality2"), centrality);
396-
// if (additionalEvSel2 && (!collision.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard))) {
397+
// histos.fill(HIST("hCentrality2"), centrality);
398+
// if (additionalEvSel2 && (!collision.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard))) {
397399
if (additionalEvSel2 && (collision.trackOccupancyInTimeRange() > cfgMaxOccupancy || collision.trackOccupancyInTimeRange() < cfgMinOccupancy)) {
398400
return;
399401
}
400-
histos.fill(HIST("hCentrality3"), centrality);
402+
// histos.fill(HIST("hCentrality3"), centrality);
401403
if (additionalEvSel3 && (!collision.selection_bit(aod::evsel::kNoTimeFrameBorder) || !collision.selection_bit(aod::evsel::kNoITSROFrameBorder))) {
402404
return;
403405
}

0 commit comments

Comments
 (0)