Skip to content

Commit 383eb5e

Browse files
authored
[PWGCF] clean-up + minor fixes here and there (#11857)
1 parent 34c2466 commit 383eb5e

File tree

4 files changed

+282
-250
lines changed

4 files changed

+282
-250
lines changed

PWGCF/MultiparticleCorrelations/Core/MuPa-Configurables.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#define PWGCF_MULTIPARTICLECORRELATIONS_CORE_MUPA_CONFIGURABLES_H_
1818

1919
// ...
20-
#include <vector>
2120
#include <string>
21+
#include <vector>
2222

2323
// *) Task configuration:
2424
struct : ConfigurableGroup {
@@ -191,7 +191,7 @@ struct : ConfigurableGroup {
191191
// *) Multiparticle correlations:
192192
struct : ConfigurableGroup {
193193
Configurable<bool> cfCalculateCorrelations{"cfCalculateCorrelations", false, "calculate or not multiparticle correlations"};
194-
Configurable<std::vector<std::string>> cfCalculateCorrelationsAsFunctionOf{"cfCalculateCorrelationsAsFunctionOf", {"1-Integrated", "1-Multiplicity", "1-Centrality", "1-Pt", "1-Eta", "1-Occupancy", "1-InteractionRate", "1-CurrentRunDuration", "1-Vz", "1-Charge"}, "calculate or not correlations as a function of specified variable"};
194+
Configurable<std::vector<std::string>> cfCalculateCorrelationsAsFunctionOf{"cfCalculateCorrelationsAsFunctionOf", {"1-Integrated", "1-Multiplicity", "1-Centrality", "0-Pt", "0-Eta", "1-Occupancy", "1-InteractionRate", "1-CurrentRunDuration", "1-Vz", "0-Charge"}, "calculate or not correlations as a function of specified variable"};
195195
} cf_mupa;
196196

197197
// *) Test0:
@@ -207,7 +207,7 @@ struct : ConfigurableGroup {
207207

208208
// 3D:
209209
Configurable<bool> cfCalculate3DTest0{"cfCalculate3DTest0", false, "calculate or not 3D Test0 using TProfile3D"};
210-
Configurable<std::vector<std::string>> cfCalculate3DTest0AsFunctionOf{"cfCalculate3DTest0AsFunctionOf", {"1-Centrality_Pt_Eta", "1-Centrality_Pt_Charge", "1-Centrality_Pt_Vz", "1-Centrality_Eta_Vz", "1-Centrality_Eta_Charge", "1-Centrality_Vz_Charge"}, "calculate or not correlations in 3D as a function of three specified variables."};
210+
Configurable<std::vector<std::string>> cfCalculate3DTest0AsFunctionOf{"cfCalculate3DTest0AsFunctionOf", {"1-Centrality_Pt_Eta", "1-Centrality_Pt_Charge", "1-Centrality_Pt_Vz", "1-Centrality_Eta_Vz", "1-Centrality_Eta_Charge", "1-Centrality_Vz_Charge", "1-Pt_Eta_Charge"}, "calculate or not correlations in 3D as a function of three specified variables."};
211211

212212
Configurable<std::string> cfFileWithLabels{"cfFileWithLabels", "/home/abilandz/DatasetsO2/labels.root", "path to external ROOT file which specifies all labels"}; // for AliEn file prepend "/alice/cern.ch/", for CCDB prepend "/alice-ccdb.cern.ch"
213213
Configurable<bool> cfUseDefaultLabels{"cfUseDefaultLabels", false, "use default internally hardwired labels, only for testing purposes"};
@@ -230,8 +230,8 @@ struct : ConfigurableGroup {
230230
Configurable<bool> cfUseDiffPhiPtWeights{"cfUseDiffPhiPtWeights", false, "use or not differential phi(pt) weights"};
231231
Configurable<bool> cfUseDiffPhiEtaWeights{"cfUseDiffPhiEtaWeights", false, "use or not differential phi(eta) weights"};
232232
Configurable<std::vector<std::string>> cfWhichDiffPhiWeights{"cfWhichDiffPhiWeights", {"1-wPhi", "1-wPt", "1-wEta", "1-wCharge", "1-wCentrality", "1-wVertexZ"}, "use (1) or do not use (0) differential phi weight for particular dimension. If only phi is set to 1, integrated phi weights are used. If phi is set to 0, ALL dimensions are switched off (yes!)"};
233-
Configurable<std::vector<std::string>> cfWhichDiffPtWeights{"cfWhichDiffPtWeights", {"1-wPt", "1-wCharge", "1-wCentrality"}, "use (1) or do not use (0) differential pt weight for particular dimension. If only pt is set to 1, integrated pt weights are used. If pt is set to 0, ALL dimensions are switched off (yes!)"};
234-
Configurable<std::vector<std::string>> cfWhichDiffEtaWeights{"cfWhichDiffEtaWeights", {"1-wEta", "1-wCharge", "1-wCentrality"}, "use (1) or do not use (0) differential eta weight for particular dimension. If only eta is set to 1, integrated eta weights are used. If eta is set to 0, ALL dimensions are switched off (yes!)"};
233+
Configurable<std::vector<std::string>> cfWhichDiffPtWeights{"cfWhichDiffPtWeights", {"0-wPt", "0-wCharge", "0-wCentrality"}, "use (1) or do not use (0) differential pt weight for particular dimension. If only pt is set to 1, integrated pt weights are used. If pt is set to 0, ALL dimensions are switched off (yes!)"};
234+
Configurable<std::vector<std::string>> cfWhichDiffEtaWeights{"cfWhichDiffEtaWeights", {"0-wEta", "0-wCharge", "0-wCentrality"}, "use (1) or do not use (0) differential eta weight for particular dimension. If only eta is set to 1, integrated eta weights are used. If eta is set to 0, ALL dimensions are switched off (yes!)"};
235235
Configurable<std::string> cfFileWithWeights{"cfFileWithWeights", "/home/abilandz/DatasetsO2/weights.root", "path to external ROOT file which holds all particle weights in O2 format"}; // for AliEn file prepend "/alice/cern.ch/", for CCDB prepend "/alice-ccdb.cern.ch"
236236
} cf_pw;
237237

PWGCF/MultiparticleCorrelations/Core/MuPa-DataMembers.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,13 @@ struct TaskConfiguration {
7979
TString fSkipTheseRuns = ""; // comma-separated list of runs which will be skipped during analysis in hl (a.k.a. "bad runs")
8080
bool fSkipRun = false; // based on the content of fWhichSpecificCuts, skip or not the current run
8181
TDatabasePDG* fDatabasePDG = NULL; // booked only when MC info is available. There is a standard memory blow-up when booked, therefore I need to request also fUseDatabasePDG = true
82+
// TBI 20250625 replace eventually with the service O2DatabasePDG, when memory consumption problem is resolved
8283
bool fUseSetBinLabel = false; // until SetBinLabel(...) large memory consumption is resolved, do not use hist->SetBinLabel(...), see ROOT Forum
8384
// See also local executable PostprocessLabels.C
8485
bool fUseClone = false; // until Clone(...) large memory consumption is resolved, do not use hist->Clone(...), see ROOT Forum
8586
bool fUseFormula = false; // until TFormula large memory consumption is resolved, do not use, see ROOT Forum
8687
bool fUseDatabasePDG = false; // I use it at the moment only to retreive charge for MC particle from its PDG code, because there is no direct getter mcParticle.sign()
87-
// But most likely I will use it to retrieve other particle proprties from PDG table. There is a standard memoty blow-up when used.
88+
// But most likely I will use it to retrieve other particle proprties from PDG table. There is a standard memory blow-up when used.
8889
} tc; // "tc" labels an instance of this group of variables.
8990

9091
// *) Event-by-event quantities:
@@ -411,12 +412,12 @@ struct EtaSeparations {
411412

412413
// *) Global cosmetics:
413414
struct GlobalCosmetics {
414-
TString srs[2] = {"rec", "sim"}; // used in the histogram name as index when saved to the file
415-
TString srs_long[2] = {"reconstructed", "simulated"}; // used in the histogram title
416-
TString sba[2] = {"before", "after"}; // used in the histogram name as index when saved to the file
417-
TString sba_long[2] = {"before cuts", "after cuts"}; // used in the histogram title
418-
TString scc[eCutCounter_N] = {"abs", "seq"}; // used in the histogram name as index when saved to the file
419-
TString scc_long[eCutCounter_N] = {"absolute", "sequential"}; // used in the histogram title
415+
TString srs[2] = {"rec", "sim"}; // used in the histogram name as index when saved to the file
416+
TString srsLong[2] = {"reconstructed", "simulated"}; // used in the histogram title
417+
TString sba[2] = {"before", "after"}; // used in the histogram name as index when saved to the file
418+
TString sbaLong[2] = {"before cuts", "after cuts"}; // used in the histogram title
419+
TString scc[eCutCounter_N] = {"abs", "seq"}; // used in the histogram name as index when saved to the file
420+
TString sccLong[eCutCounter_N] = {"absolute", "sequential"}; // used in the histogram title
420421
} gc;
421422

422423
// *) Results:

0 commit comments

Comments
 (0)