Skip to content

Commit e115116

Browse files
author
Pengchong Hu
committed
multiharmoniccorrelations
1 parent 3d0ac3d commit e115116

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ enum eEventHistograms {
7575
eEventHistograms_N
7676
};
7777

78-
enum eCut{
79-
eBefore=0,
78+
enum eCut {
79+
eBefore = 0,
8080
eAfter,
8181
eCut_N
8282
};
@@ -93,7 +93,7 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
9393

9494
// *) Define configurables:
9595
Configurable<bool> cfDryRun{"cfDryRun", false, "book all histos and run without filling and calculating anything"}; // example for built-in type (float, string, etc.)
96-
Configurable<std::vector<float>> cfPtBins{"cfPtBins", {1000, 0., 100.}, "nPtBins, ptMin, ptMax"}; // example for an array
96+
Configurable<std::vector<float>> cfPtBins{"cfPtBins", {1000, 0., 100.}, "nPtBins, ptMin, ptMax"}; // example for an array
9797
Configurable<std::vector<float>> cfPhiBins{"cfPhiBins", {100, 0., o2::constants::math::TwoPI}, "nPhiBins, phiMin, phiMax"};
9898
Configurable<std::vector<float>> cfCentrBins{"cfCentrBins", {100, 0., 100.}, "nCentrBins, centrMin, centrMax"};
9999
Configurable<std::vector<float>> cfXBins{"cfXBins", {1000, -100., 100.}, "nXBins, xMin, xMax"};
@@ -392,11 +392,11 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
392392
event.fEventHistograms[eVertexZ][eRec][0]->Fill(collision.posZ());
393393
zrec = collision.posZ();
394394
event.fHistNContr->Fill(collision.numContrib());
395-
if(cfCent.value=="FT0C")
395+
if (cfCent.value == "FT0C")
396396
centr = collision.centFT0C();
397-
else if(cfCent.value=="FT0M")
397+
else if (cfCent.value == "FT0M")
398398
centr = collision.centFT0M();
399-
else if(cfCent.value=="FT0A")
399+
else if (cfCent.value == "FT0A")
400400
centr = collision.centFT0A();
401401
event.fHistCentr[eRec]->Fill(centr);
402402

@@ -428,7 +428,7 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
428428
}
429429

430430
// *) Event cuts:
431-
if (!EventCuts<rs>(collision) || centr>80.) { // Main call for event cuts
431+
if (!EventCuts<rs>(collision) || centr > 80.) { // Main call for event cuts
432432
return;
433433
}
434434
event.fEventHistograms[eVertexZ][eRec][1]->Fill(zrec);
@@ -444,7 +444,7 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
444444
}
445445

446446
// Main loop over particles:
447-
for (auto track: tracks) {
447+
for (auto track : tracks) {
448448

449449
// Fill reconstructed ...:
450450
float ptrec = 0., ptsim = 0.;
@@ -503,8 +503,6 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
503503
float v22 = (Q(2).Rho2() - M) / (M * (M - 1.));
504504
float v32 = (Q(3).Rho2() - M) / (M * (M - 1.));
505505
float v42 = (Q(4).Rho2() - M) / (M * (M - 1.));
506-
LOGF(info, "Q(2)=%f", cor.Qvector[2].Rho2());
507-
LOGF(info, "v22=%f", v22);
508506

509507
cor.pv22_centr->Fill(centr, v22, M * (M - 1));
510508
cor.pv32_centr->Fill(centr, v32, M * (M - 1));

0 commit comments

Comments
 (0)