[PWGCF] adding new analysis task for multiharmonic correlations#15896
[PWGCF] adding new analysis task for multiharmonic correlations#15896pengchon wants to merge 6 commits intoAliceO2Group:masterfrom
Conversation
|
O2 linter results: ❌ 16 errors, |
| COMPONENT_NAME Analysis) | ||
|
|
||
| o2physics_add_dpl_workflow(multiharmonic-correlations | ||
| SOURCES multiharmonic-correlations.cxx |
There was a problem hiding this comment.
As suggested by the linter, please use multiharmonicCorrelations.cxx for source filename
| #include <TSystem.h> | ||
|
|
||
| #include <cstring> | ||
| #include <iostream> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
| // LOGF(info, "Track azimuthal angle: %f", track.phi()); | ||
| // pc.histWeights=GetHistogramWithWeights(cfFileWithWeights.value.c_str(), "000123456"); |
There was a problem hiding this comment.
Please, don't leave code commented
victor-gonzalez
left a comment
There was a problem hiding this comment.
Please, have a look at my comments
Renaming the source file is mandatory before approval. The others can be handled in next iterations
No description provided.