Skip to content

Commit 5b8446e

Browse files
committed
PWGDQ: Add and fix configurable options for optimize memory issue
1 parent c98352c commit 5b8446e

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

PWGDQ/Core/HistogramsLibrary.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,14 +1263,14 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h
12631263
std::array<double, 4> xmin = {2., 0., -1., -0.5};
12641264
std::array<double, 4> xmax = {4., 20., 1., 0.5};
12651265
hm->AddHistogram(histClass, "Mass_Pt_cosThetaHE_Tauxy", "", 4, varspTHE.data(), bins.data(), xmin.data(), xmax.data(), nullptr, -1, kFALSE);
1266-
}
1266+
}
12671267
if (groupStr.CompareTo("polarization-pseudoproper-midy-cs-gen") == 0) {
1268-
std::array<int, 4> varspTCS = {VarManager::kMCMass, VarManager::kMCPt, VarManager::kMCCosThetaCS, VarManager::kMCVertexingTauxyProjected};
1269-
std::array<int, 4> bins = {50, 20, 20, 1000};
1270-
std::array<double, 4> xmin = {2., 0., -1., -0.5};
1271-
std::array<double, 4> xmax = {4., 20., 1., 0.5};
1268+
std::array<int, 4> varspTCS = {VarManager::kMCMass, VarManager::kMCPt, VarManager::kMCCosThetaCS, VarManager::kMCVertexingTauxyProjected};
1269+
std::array<int, 4> bins = {50, 20, 20, 1000};
1270+
std::array<double, 4> xmin = {2., 0., -1., -0.5};
1271+
std::array<double, 4> xmax = {4., 20., 1., 0.5};
12721272
hm->AddHistogram(histClass, "Mass_Pt_cosThetaCS_Tauxy", "", 4, varspTCS.data(), bins.data(), xmin.data(), xmax.data(), nullptr, -1, kFALSE);
1273-
}
1273+
}
12741274
if (groupStr.CompareTo("polarization-pseudoproper-midy-rand-gen") == 0) {
12751275
std::array<int, 4> varspTRM = {VarManager::kMCMass, VarManager::kMCPt, VarManager::kMCCosThetaRM, VarManager::kMCVertexingTauxyProjected};
12761276
std::array<int, 4> bins = {50, 20, 20, 1000};

PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,10 +1511,10 @@ struct AnalysisSameEventPairing {
15111511
if (fConfigOptions.fConfigPseudoHEQA.value) {
15121512
histNames += Form("MCTruthGenPseudoPolPairHESel_%s;", sig->GetName());
15131513
}
1514-
if (fConfigOptions.fConfigPseudoCSQA.value) {
1514+
if (fConfigOptions.fConfigPseudoCSQA.value) {
15151515
histNames += Form("MCTruthGenPseudoPolPairCSSel_%s;", sig->GetName());
15161516
}
1517-
if (fConfigOptions.fConfigPseudoRMQA.value) {
1517+
if (fConfigOptions.fConfigPseudoRMQA.value) {
15181518
histNames += Form("MCTruthGenPseudoPolPairRMSel_%s;", sig->GetName());
15191519
}
15201520
if (fConfigOptions.fConfigTruthPbPbMIDYHE.value) {
@@ -1534,10 +1534,10 @@ struct AnalysisSameEventPairing {
15341534
if (fConfigOptions.fConfigPseudoHEQA.value) {
15351535
histNames += Form("MCTruthGenPseudoPolPairHESel_%s_%s;", sig->GetName(), cut->GetName());
15361536
}
1537-
if (fConfigOptions.fConfigPseudoCSQA.value) {
1537+
if (fConfigOptions.fConfigPseudoCSQA.value) {
15381538
histNames += Form("MCTruthGenPseudoPolPairCSSel_%s_%s;", sig->GetName(), cut->GetName());
15391539
}
1540-
if (fConfigOptions.fConfigPseudoRMQA.value) {
1540+
if (fConfigOptions.fConfigPseudoRMQA.value) {
15411541
histNames += Form("MCTruthGenPseudoPolPairRMSel_%s_%s;", sig->GetName(), cut->GetName());
15421542
}
15431543
if (fConfigOptions.fConfigTruthPbPbMIDYHE.value) {
@@ -2206,10 +2206,10 @@ struct AnalysisSameEventPairing {
22062206
if (fConfigOptions.fConfigPseudoHEQA.value) {
22072207
fHistMan->FillHistClass(Form("MCTruthGenPseudoPolPairHESel_%s", sig->GetName()), VarManager::fgValues);
22082208
}
2209-
if (fConfigOptions.fConfigPseudoCSQA.value) {
2209+
if (fConfigOptions.fConfigPseudoCSQA.value) {
22102210
fHistMan->FillHistClass(Form("MCTruthGenPseudoPolPairCSSel_%s", sig->GetName()), VarManager::fgValues);
22112211
}
2212-
if (fConfigOptions.fConfigPseudoRMQA.value) {
2212+
if (fConfigOptions.fConfigPseudoRMQA.value) {
22132213
fHistMan->FillHistClass(Form("MCTruthGenPseudoPolPairRMSel_%s", sig->GetName()), VarManager::fgValues);
22142214
}
22152215
if (fConfigOptions.fConfigTruthPbPbMIDYHE.value) {
@@ -2228,10 +2228,10 @@ struct AnalysisSameEventPairing {
22282228
if (fConfigOptions.fConfigPseudoHEQA.value) {
22292229
fHistMan->FillHistClass(Form("MCTruthGenPseudoPolPairHESel_%s_%s", sig->GetName(), cut->GetName()), VarManager::fgValues);
22302230
}
2231-
if (fConfigOptions.fConfigPseudoCSQA.value) {
2231+
if (fConfigOptions.fConfigPseudoCSQA.value) {
22322232
fHistMan->FillHistClass(Form("MCTruthGenPseudoPolPairCSSel_%s_%s", sig->GetName(), cut->GetName()), VarManager::fgValues);
22332233
}
2234-
if (fConfigOptions.fConfigPseudoRMQA.value) {
2234+
if (fConfigOptions.fConfigPseudoRMQA.value) {
22352235
fHistMan->FillHistClass(Form("MCTruthGenPseudoPolPairRMSel_%s_%s", sig->GetName(), cut->GetName()), VarManager::fgValues);
22362236
}
22372237

@@ -3244,10 +3244,10 @@ void DefineHistograms(HistogramManager* histMan, TString histClasses, const char
32443244
if (classStr.Contains("MCTruthGenPseudoPolPairHE")) {
32453245
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "polarization-pseudoproper-midy-he-gen", histName);
32463246
}
3247-
if (classStr.Contains("MCTruthGenPseudoPolPairCS")) {
3247+
if (classStr.Contains("MCTruthGenPseudoPolPairCS")) {
32483248
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "polarization-pseudoproper-midy-cs-gen", histName);
32493249
}
3250-
if (classStr.Contains("MCTruthGenPseudoPolPairRM")) {
3250+
if (classStr.Contains("MCTruthGenPseudoPolPairRM")) {
32513251
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "polarization-pseudoproper-midy-rand-gen", histName);
32523252
}
32533253
if (classStr.Contains("MCTruthGenPoldielectronPbPbPairHE")) {

0 commit comments

Comments
 (0)