Skip to content

Commit 4cf96bf

Browse files
author
Pei-Ying Kuan
committed
try to fix clang format
1 parent f63f16e commit 4cf96bf

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

PWGCF/MultiparticleCorrelations/Tasks/multiparticleCumulants.cxx

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ enum EnCentEstm {
139139
const char* centEstmNames[eCentEstm_N] = {
140140
"FT0C",
141141
"FT0M",
142-
"FV0A",};
142+
"FV0A"};
143143

144144
enum EnMultEstm {
145145
eMultFT0C,
@@ -283,19 +283,19 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam
283283
} tc;
284284

285285
struct ParticleHistograms {
286-
TList* fParticleHistogramsList = NULL; //!<! list to hold all control particle histograms
286+
TList* fParticleHistogramsList = NULL;
287287
TH1F* fParticleHistograms[eParticleHistograms_N][2][2] = {{{NULL}}};
288288
} pc;
289289

290290
struct EventHistograms {
291-
TList* fEventHistogramsList = NULL; //!<! list to hold all control event histograms
292-
TH1F* fEventHistograms[eEventHistograms_N][2][2] = {{{NULL}}}; //! [ type - see enum EnEventHistograms ][reco,sim][before,after event cuts]
291+
TList* fEventHistogramsList = NULL;
292+
TH1F* fEventHistograms[eEventHistograms_N][2][2] = {{{NULL}}}; // [ type - see enum EnEventHistograms ][reco,sim][before,after event cuts]
293293
} ev;
294294

295295
struct QAHistograms {
296296
bool fQASwitch = kTRUE;
297297
TList* fQAHistogramsList = NULL;
298-
TH2F* fQAHistograms[eQAHistograms_N][2] = {{NULL}}; //[type][before/after cut]
298+
TH2F* fQAHistograms[eQAHistograms_N][2] = {{NULL}}; // [type][before/after cut]
299299
} qa;
300300

301301
struct CorrHistograms {
@@ -329,7 +329,7 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam
329329
struct MultiparticleCorrelationCalculation {
330330
int h1, h2, h3, h4, h5, h6, h7, h8;
331331
// Book Q-vector components:
332-
static constexpr int MaxCorrelator = 4; //<<m>>
332+
static constexpr int MaxCorrelator = 4; // <<m>>
333333
static constexpr int MaxHarmonic = 5; // n+1 in vn, in this case n=4 as we need v2, v3, v4
334334
static constexpr int MaxPower = MaxCorrelator + 1;
335335
static constexpr int NumSC = 2; // need SC(3,2) and SC(4,2)
@@ -533,7 +533,7 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam
533533

534534
if (mult == 1)
535535
return c - c2;
536-
return c - double(mult)* c2;
536+
return c - double(mult) * c2;
537537

538538
}
539539

@@ -585,7 +585,7 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam
585585
{
586586
// a) Return value:
587587
std::vector<TH1F*> histograms;
588-
TList* baseList = NULL; // base top-level list in the TFile, e.g. named "ccdb_object"
588+
TList* baseList = NULL; // base top-level list in the TFile, e.g. named "ccdb_object"
589589
TList* listWithRuns = NULL; // nested list with run-wise TList's holding run-specific weights
590590

591591
// c) Determine from filePath if the file in on a local machine, or in home dir AliEn, or in CCDB:
@@ -985,7 +985,7 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam
985985

986986
} // end of for (int64_t i = 0; i < tracks.size(); i++) {
987987

988-
for (int i = 0; i < mcc.MaxHarmonic - 2 ; i++) {
988+
for (int i = 0; i < mcc.MaxHarmonic - 2; i++) {
989989
mcc.h1 = -(i + 2);
990990
mcc.h2 = i + 2;
991991
int harmonicsTwoNum[2] = {mcc.h1, mcc.h2};
@@ -1031,7 +1031,6 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam
10311031
mc.fFourParticleCorrelationProfiles[eAfter]->Fill(i + 3.5, ebye.fFourParticleCorrelationEbye[eAfter][i], wFourRecursionAfter);
10321032
}
10331033
}
1034-
10351034
}
10361035

10371036
template <EnParticleHistograms histType, typename T1>
@@ -1326,8 +1325,7 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam
13261325
bookCorrHistograms<eCorrMult>(lCrBins, cr);
13271326

13281327
if (wt.fWeightSwitch) {
1329-
wt.fWeightHistograms = getHistogramsWithWeights(
1330-
tc.fFileWithWeights.c_str(), tc.fRunNumber.c_str());
1328+
wt.fWeightHistograms = getHistogramsWithWeights(tc.fFileWithWeights.c_str(), tc.fRunNumber.c_str());
13311329
for (auto* const& hist : wt.fWeightHistograms) { // o2-linter: disable=const-ref-in-for-loop
13321330
wt.fWeightHistogramsList->Add(hist);
13331331
}
@@ -1381,5 +1379,5 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam
13811379
// *) The final touch:
13821380
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
13831381
{
1384-
return WorkflowSpec{adaptAnalysisTask<MultiparticleCumulants>(cfgc),};
1382+
return WorkflowSpec{adaptAnalysisTask<MultiparticleCumulants>(cfgc)};
13851383
} // WorkflowSpec...

0 commit comments

Comments
 (0)