Skip to content

[PWGCF] adding new analysis task for multiharmonic correlations#15896

Open
pengchon wants to merge 6 commits intoAliceO2Group:masterfrom
pengchon:master
Open

[PWGCF] adding new analysis task for multiharmonic correlations#15896
pengchon wants to merge 6 commits intoAliceO2Group:masterfrom
pengchon:master

Conversation

@pengchon
Copy link
Copy Markdown

No description provided.

@github-actions github-actions Bot added the pwgcf label Apr 21, 2026
@github-actions github-actions Bot changed the title adding new analysis task for multiharmonic correlations [PWGCF] adding new analysis task for multiharmonic correlations Apr 21, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 21, 2026

O2 linter results: ❌ 16 errors, ⚠️ 24 warnings, 🔕 0 disabled

COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(multiharmonic-correlations
SOURCES multiharmonic-correlations.cxx
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As suggested by the linter, please use multiharmonicCorrelations.cxx for source filename

#include <TSystem.h>

#include <cstring>
#include <iostream>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for inluding iostream?


// *) Define configurables:
Configurable<bool> cfDryRun{"cfDryRun", false, "book all histos and run without filling and calculating anything"}; // example for built-in type (float, string, etc.)
Configurable<vector<float>> cf_pt_bins{"cf_pt_bins", {1000, 0., 100.}, "nPtBins, ptMin, ptMax"}; // example for an array
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, keep using std:: prefix for types on the std namespace

// Once you have a valid pointer to "hist", add these technical lines:
hist->SetDirectory(0); // remove ownerhip from an external file
TH1F* histClone = reinterpret_cast<TH1F*>(hist->Clone()); // yes, I have to clone here
delete baseList; // release back the memory
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be careful here. If baseList comes from a CCDB stored object, it should not be deleted because it will cause a double deletion error when the workflow terminates

Comment on lines +391 to +392
// LOGF(info, "Track azimuthal angle: %f", track.phi());
// pc.histWeights=GetHistogramWithWeights(cfFileWithWeights.value.c_str(), "000123456");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, don't leave code commented

Copy link
Copy Markdown
Collaborator

@victor-gonzalez victor-gonzalez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, have a look at my comments
Renaming the source file is mandatory before approval. The others can be handled in next iterations

Comment thread PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx Outdated
Comment thread PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx Outdated
Comment thread PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx Outdated
Copy link
Copy Markdown
Collaborator

@vkucera vkucera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pengchon Thanks for the fixes. I will not interfere further but please consider fixing the remaining issues at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants