Skip to content

Commit 863cd3b

Browse files
authored
Merge pull request #87 from alibuild/alibot-cleanup-14402
[PWGCF] Please consider the following formatting changes to #14402
2 parents 270f2bd + f3d4884 commit 863cd3b

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

PWGCF/Flow/TableProducer/zdcQVectors.cxx

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ int counter = 0;
7474
// Energy calibration:
7575
std::vector<TString> namesEcal(10, "");
7676
std::vector<std::vector<TString>> names(5, std::vector<TString>()); //(1x 4d 4x 1d)
77-
std::vector<TString> namesTS; // for timestamo recentering
77+
std::vector<TString> namesTS; // for timestamo recentering
7878
std::vector<TString> vnames = {"hvertex_vx", "hvertex_vy"};
7979

8080
// https://alice-notes.web.cern.ch/system/files/notes/analysis/620/017-May-31-analysis_note-ALICE_analysis_note_v2.pdf
@@ -127,7 +127,7 @@ struct ZdcQVectors {
127127
struct : ConfigurableGroup {
128128
O2_DEFINE_CONFIGURABLE(cfgRecenterForTimestamp, bool, false, "Add 1D recentering for timestamp");
129129
O2_DEFINE_CONFIGURABLE(cfgCCDBdir_Timestamp, std::string, "Users/c/ckoster/ZDC/LHC23_PbPb_pass5/Timestamp", "CCDB directory for Timestamp recentering");
130-
} extraTS;
130+
} extraTS;
131131

132132
ConfigurableAxis axisCent{"axisCent", {90, 0, 90}, "Centrality axis in 1% bins"};
133133
ConfigurableAxis axisCent10{"axisCent10", {9, 0, 90}, "Centrality axis in 10% bins"};
@@ -261,7 +261,7 @@ struct ZdcQVectors {
261261
names[2].push_back(TString::Format("hQ%s%s_mean_vx_run", coord, side));
262262
names[3].push_back(TString::Format("hQ%s%s_mean_vy_run", coord, side));
263263
names[4].push_back(TString::Format("hQ%s%s_mean_vz_run", coord, side));
264-
namesTS.push_back(TString::Format("hQ%s%s_mean_timestamp_run", coord, side));
264+
namesTS.push_back(TString::Format("hQ%s%s_mean_timestamp_run", coord, side));
265265
} // end of capCOORDS
266266
}
267267

@@ -383,10 +383,11 @@ struct ZdcQVectors {
383383
}
384384
}
385385

386-
double rescaleTimestamp(uint64_t timestamp, int runnumber) {
386+
double rescaleTimestamp(uint64_t timestamp, int runnumber)
387+
{
387388
auto& ccdb = o2::ccdb::BasicCCDBManager::instance();
388389
auto duration = ccdb.getRunDuration(runnumber);
389-
double ts = (static_cast<double>(timestamp - duration.first) / static_cast<double> (duration.second - duration.first)) * 100.0;
390+
double ts = (static_cast<double>(timestamp - duration.first) / static_cast<double>(duration.second - duration.first)) * 100.0;
390391

391392
return ts;
392393
}
@@ -399,7 +400,7 @@ struct ZdcQVectors {
399400

400401
if (!cfgFillCutAnalysis || cfgFillNothing)
401402
return;
402-
// Add default with different centrality estimators as well
403+
// Add default with different centrality estimators as well
403404
// Here we fill the Energy and mean vx, vy vz histograms with an extra dimension for all the event selections used.
404405
registry.get<TProfile2D>(HIST("CutAnalysis/hvertex_vx"))->Fill(Form("%d", runnumber), evSel, collision.posX());
405406
registry.get<TProfile2D>(HIST("CutAnalysis/hvertex_vy"))->Fill(Form("%d", runnumber), evSel, collision.posY());
@@ -416,19 +417,17 @@ struct ZdcQVectors {
416417
registry.get<TProfile2D>(HIST("CutAnalysis/hZNC_mean_t3_cent"))->Fill(centrality, evSel, zdcBC.energySectorZNC()[2], 1);
417418
registry.get<TProfile2D>(HIST("CutAnalysis/hZNC_mean_t4_cent"))->Fill(centrality, evSel, zdcBC.energySectorZNC()[3], 1);
418419

419-
420-
if(evSel == nEventSelections) {
421-
int centCounter = 0;
420+
if (evSel == nEventSelections) {
421+
int centCounter = 0;
422422

423423
std::vector<float> cents = {
424424
collision.centFT0C(),
425425
collision.centFT0CVariant1(),
426426
collision.centFT0M(),
427427
collision.centFV0A(),
428-
collision.centNGlobal()
429-
};
428+
collision.centNGlobal()};
430429

431-
for(auto& cent : cents) {
430+
for (auto& cent : cents) {
432431
LOGF(info, "Filling centrality: %f for event selection: %d", cent, evSel + centCounter);
433432
registry.get<TProfile2D>(HIST("CutAnalysis/hZNA_mean_t0_cent"))->Fill(cent, evSel + centCounter, zdcBC.energyCommonZNA(), 1);
434433
registry.get<TProfile2D>(HIST("CutAnalysis/hZNA_mean_t1_cent"))->Fill(cent, evSel + centCounter, zdcBC.energySectorZNA()[0], 1);
@@ -526,7 +525,6 @@ struct ZdcQVectors {
526525
// Fill for centrality estimators!
527526
fillCutAnalysis(collision, bunchCrossing, nEventSelections);
528527

529-
530528
return selectionBits;
531529
}
532530

@@ -654,7 +652,6 @@ struct ZdcQVectors {
654652
if (!hist) {
655653
LOGF(fatal, "%s not available.. Abort..", objName);
656654
}
657-
658655

659656
if (hist->InheritsFrom("TProfile2D")) {
660657
// needed for energy calibration!
@@ -1006,7 +1003,7 @@ struct ZdcQVectors {
10061003

10071004
loadCalibrations<kRec>(cfgRec.value);
10081005

1009-
if(extraTS.cfgRecenterForTimestamp) {
1006+
if (extraTS.cfgRecenterForTimestamp) {
10101007
loadCalibrations<kTimestamp>(extraTS.cfgCCDBdir_Timestamp.value);
10111008
}
10121009

@@ -1062,7 +1059,7 @@ struct ZdcQVectors {
10621059
pb++;
10631060
}
10641061

1065-
if(extraTS.cfgRecenterForTimestamp) {
1062+
if (extraTS.cfgRecenterForTimestamp) {
10661063
corrQxA.push_back(getCorrection<TProfile, kTimestamp>(namesTS[0].Data(), it, 6));
10671064
corrQyA.push_back(getCorrection<TProfile, kTimestamp>(namesTS[1].Data(), it, 6));
10681065
corrQxC.push_back(getCorrection<TProfile, kTimestamp>(namesTS[2].Data(), it, 6));

0 commit comments

Comments
 (0)