Skip to content

Commit cdfc4ed

Browse files
author
Pengchong Hu
committed
fix for linter
1 parent 04994d4 commit cdfc4ed

2 files changed

Lines changed: 15 additions & 19 deletions

File tree

PWGCF/MultiparticleCorrelations/Tasks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ o2physics_add_dpl_workflow(three-particle-correlations
2525
COMPONENT_NAME Analysis)
2626

2727
o2physics_add_dpl_workflow(multiharmonic-correlations
28-
SOURCES multiharmonic-correlations.cxx
28+
SOURCES multiharmonicCorrelations.cxx
2929
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
3030
COMPONENT_NAME Analysis)

PWGCF/MultiparticleCorrelations/Tasks/multiharmonic-correlations.cxx renamed to PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ using TrackSim = aod::McParticles::iterator;
4848
#include <TSystem.h>
4949

5050
#include <cstring>
51-
#include <iostream>
5251
#include <string>
5352
#include <vector>
5453
// ...
@@ -86,13 +85,13 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
8685

8786
// *) Define configurables:
8887
Configurable<bool> cfDryRun{"cfDryRun", false, "book all histos and run without filling and calculating anything"}; // example for built-in type (float, string, etc.)
89-
Configurable<vector<float>> cf_pt_bins{"cf_pt_bins", {1000, 0., 100.}, "nPtBins, ptMin, ptMax"}; // example for an array
90-
Configurable<vector<float>> cf_phi_bins{"cf_phi_bins", {100, 0., o2::constants::math::TwoPI}, "nPhiBins, phiMin, phiMax"};
91-
Configurable<vector<float>> cf_centr_bins{"cf_centr_bins", {1000, 0., 100.}, "nCentrBins, centrMin, centrMax"};
92-
Configurable<vector<float>> cf_x_bins{"cf_x_bins", {1000, -100., 100.}, "nXBins, xMin, xMax"};
93-
Configurable<vector<float>> cf_y_bins{"cf_y_bins", {1000, -100., 100.}, "nYBins, yMin, yMax"};
94-
Configurable<vector<float>> cf_z_bins{"cf_z_bins", {1000, -100., 100.}, "nZBins, zMin, zMax"};
95-
Configurable<vector<float>> cf_mult_bins{"cf_mult_bins", {50, 0, 3e3}, "nMultBins, multMin, multMax"};
88+
Configurable<std::vector<float>> cf_pt_bins{"cf_pt_bins", {1000, 0., 100.}, "nPtBins, ptMin, ptMax"}; // example for an array
89+
Configurable<std::vector<float>> cf_phi_bins{"cf_phi_bins", {100, 0., o2::constants::math::TwoPI}, "nPhiBins, phiMin, phiMax"};
90+
Configurable<std::vector<float>> cf_centr_bins{"cf_centr_bins", {1000, 0., 100.}, "nCentrBins, centrMin, centrMax"};
91+
Configurable<std::vector<float>> cf_x_bins{"cf_x_bins", {1000, -100., 100.}, "nXBins, xMin, xMax"};
92+
Configurable<std::vector<float>> cf_y_bins{"cf_y_bins", {1000, -100., 100.}, "nYBins, yMin, yMax"};
93+
Configurable<std::vector<float>> cf_z_bins{"cf_z_bins", {1000, -100., 100.}, "nZBins, zMin, zMax"};
94+
Configurable<std::vector<float>> cf_mult_bins{"cf_mult_bins", {50, 0, 3e3}, "nMultBins, multMin, multMax"};
9695

9796
Configurable<int> cfCent{"cfCent", 1, "centrality estimator"};
9897
Configurable<int> cfMult{"cfMult", 1, "multiplicity"};
@@ -287,7 +286,6 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
287286
// Once you have a valid pointer to "hist", add these technical lines:
288287
hist->SetDirectory(0); // remove ownerhip from an external file
289288
TH1F* histClone = reinterpret_cast<TH1F*>(hist->Clone()); // yes, I have to clone here
290-
delete baseList; // release back the memory
291289

292290
return histClone;
293291

@@ -388,8 +386,6 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
388386
for (int64_t i = 0; i < tracks.size(); i++) {
389387

390388
// Print track azimuthal angle:
391-
// LOGF(info, "Track azimuthal angle: %f", track.phi());
392-
// pc.histWeights=GetHistogramWithWeights(cfFileWithWeights.value.c_str(), "000123456");
393389

394390
// Fill reconstructed ...:
395391
float ptrec = 0., ptsim = 0.;
@@ -466,13 +462,13 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
466462
vector<float> l_y_bins = cf_y_bins.value;
467463
vector<float> l_z_bins = cf_z_bins.value;
468464
vector<float> l_mult_bins = cf_mult_bins.value;
469-
int nBins = (Int_t)l_pt_bins[0];
470-
int nBinsphi = (Int_t)l_phi_bins[0];
471-
int nBinscentr = (Int_t)l_centr_bins[0];
472-
int nBinsx = (Int_t)l_x_bins[0];
473-
int nBinsy = (Int_t)l_y_bins[0];
474-
int nBinsz = (Int_t)l_z_bins[0];
475-
int nBinsmult = (Int_t)l_mult_bins[0];
465+
int nBins = (int)l_pt_bins[0];
466+
int nBinsphi = (int)l_phi_bins[0];
467+
int nBinscentr = (int)l_centr_bins[0];
468+
int nBinsx = (int)l_x_bins[0];
469+
int nBinsy = (int)l_y_bins[0];
470+
int nBinsz = (int)l_z_bins[0];
471+
int nBinsmult = (int)l_mult_bins[0];
476472

477473
float min = l_pt_bins[1];
478474
float max = l_pt_bins[2];

0 commit comments

Comments
 (0)