Skip to content

Commit 1d188ff

Browse files
committed
Please consider the following formatting changes
1 parent 9817154 commit 1d188ff

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

PWGCF/Flow/TableProducer/zdcQVectors.cxx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ std::vector<double> pyZDC = {-1.75, -1.75, 1.75, 1.75};
8484
double alphaZDC = 0.395;
8585

8686
// q-vectors before (q) and after (qRec) recentering.
87-
std::vector<double> q(4); // start values of [QxA, QyA, QxC, QyC]
87+
std::vector<double> q(4); // start values of [QxA, QyA, QxC, QyC]
8888

8989
// for energy calibration
9090
std::vector<double> eZN(8); // uncalibrated energy for the 2x4 towers (a1, a2, a3, a4, c1, c2, c3, c4)
@@ -391,7 +391,6 @@ struct ZdcQVectors {
391391
}
392392

393393
delete tempProj;
394-
395394
}
396395

397396
return calibConstant;
@@ -434,7 +433,7 @@ struct ZdcQVectors {
434433
if (!foundBC.has_zdc()) {
435434
isSelected = false;
436435
spTableZDC(runnumber, cent, v[0], v[1], v[2], 0, 0, 0, 0, isSelected, 0, 0);
437-
counter++;
436+
counter++;
438437
return;
439438
}
440439

@@ -446,7 +445,7 @@ struct ZdcQVectors {
446445

447446
// load new calibrations for new runs only
448447
if (runnumber != lastRunNumber) {
449-
cal.calibfilesLoaded.clear();
448+
cal.calibfilesLoaded.clear();
450449
cal.calibfilesLoaded.resize(7, std::vector<bool>(8, false));
451450

452451
cal.calibList.clear();
@@ -496,14 +495,14 @@ struct ZdcQVectors {
496495
isZNChit = false;
497496

498497
// Fill to get mean energy per tower in 1% centrality bins
499-
if (isZNAhit){
498+
if (isZNAhit) {
500499
registry.get<TProfile2D>(HIST("Energy/hZNA_mean_t0_cent"))->Fill(Form("%d", runnumber), cent, zdcCol.energyCommonZNA(), 1);
501500
registry.get<TProfile2D>(HIST("Energy/hZNA_mean_t1_cent"))->Fill(Form("%d", runnumber), cent, eZN[0], 1);
502501
registry.get<TProfile2D>(HIST("Energy/hZNA_mean_t2_cent"))->Fill(Form("%d", runnumber), cent, eZN[1], 1);
503502
registry.get<TProfile2D>(HIST("Energy/hZNA_mean_t3_cent"))->Fill(Form("%d", runnumber), cent, eZN[2], 1);
504503
registry.get<TProfile2D>(HIST("Energy/hZNA_mean_t4_cent"))->Fill(Form("%d", runnumber), cent, eZN[3], 1);
505504
}
506-
if (isZNChit){
505+
if (isZNChit) {
507506
registry.get<TProfile2D>(HIST("Energy/hZNC_mean_t0_cent"))->Fill(Form("%d", runnumber), cent, zdcCol.energyCommonZNC(), 1);
508507
registry.get<TProfile2D>(HIST("Energy/hZNC_mean_t1_cent"))->Fill(Form("%d", runnumber), cent, eZN[4], 1);
509508
registry.get<TProfile2D>(HIST("Energy/hZNC_mean_t2_cent"))->Fill(Form("%d", runnumber), cent, eZN[5], 1);
@@ -544,7 +543,6 @@ struct ZdcQVectors {
544543
calibtower++;
545544
}
546545

547-
548546
for (int i = 0; i < 4; i++) {
549547
float bincenter = i + .5;
550548
registry.fill(HIST("QA/ZNA_Energy"), bincenter, eZN[i]);
@@ -644,9 +642,9 @@ struct ZdcQVectors {
644642

645643
spTableZDC(runnumber, centrality, v[0], v[1], v[2], qRec[0], qRec[1], qRec[2], qRec[3], isSelected, cal.atIteration, cal.atStep);
646644

647-
qRec.clear();
645+
qRec.clear();
648646

649-
counter++;
647+
counter++;
650648
return;
651649
} else {
652650
if (counter < 1)

0 commit comments

Comments
 (0)