Skip to content

Commit 59e4877

Browse files
authored
Merge pull request #31 from alibuild/alibot-cleanup-17053
[PWGCF] Please consider the following formatting changes to #17053
2 parents 0e0d7d0 + d9012ad commit 59e4877

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

PWGCF/Flow/Tasks/flowMc.cxx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ using namespace o2::framework::expressions;
6969
using namespace o2::aod::rctsel;
7070

7171
#define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) \
72-
using ConfigTmp_##NAME = TYPE; \
73-
Configurable<ConfigTmp_##NAME> NAME{#NAME, (DEFAULT), HELP};
72+
using ConfigTmp_##NAME = TYPE; \
73+
Configurable<ConfigTmp_##NAME> NAME{#NAME, (DEFAULT), HELP};
7474

7575
struct FlowMc {
7676
HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject};
@@ -385,8 +385,7 @@ struct FlowMc {
385385
mAcceptance = ccdb->getForTimeStamp<GFWWeights>(cfgFlowAcceptance, timestamp);
386386
if (mAcceptance) {
387387
LOGF(info, "Loaded acceptance weights from %s (%p)", cfgFlowAcceptance.value.c_str(), static_cast<void*>(mAcceptance));
388-
}
389-
else {
388+
} else {
390389
LOGF(warning, "Could not load acceptance weights from %s (%p)", cfgFlowAcceptance.value.c_str(), static_cast<void*>(mAcceptance));
391390
}
392391
}
@@ -405,8 +404,7 @@ struct FlowMc {
405404
float eff = 1.;
406405
if (mEfficiency) {
407406
eff = mEfficiency->GetBinContent(mEfficiency->FindBin(pt));
408-
}
409-
else {
407+
} else {
410408
eff = 1.0;
411409
}
412410
if (eff == 0) {
@@ -415,8 +413,7 @@ struct FlowMc {
415413
weight_nue = 1. / eff;
416414
if (mAcceptance) {
417415
weight_nua = mAcceptance->getNUA(phi, eta, vtxz);
418-
}
419-
else {
416+
} else {
420417
weight_nua = 1;
421418
}
422419
return true;
@@ -434,8 +431,7 @@ struct FlowMc {
434431
if (std::fabs(val) < 1) {
435432
if (isMCTruth) {
436433
fFCTrue->FillProfile(corrconf.Head.c_str(), cent, val, dnx, rndm);
437-
}
438-
else {
434+
} else {
439435
fFCReco->FillProfile(corrconf.Head.c_str(), cent, val, dnx, rndm);
440436
}
441437
}
@@ -450,8 +446,7 @@ struct FlowMc {
450446
if (std::fabs(val) < 1) {
451447
if (isMCTruth) {
452448
fFCTrue->FillProfile(Form("%s_pt_%i", corrconf.Head.c_str(), i), cent, val, dnx, rndm);
453-
}
454-
else {
449+
} else {
455450
fFCReco->FillProfile(Form("%s_pt_%i", corrconf.Head.c_str(), i), cent, val, dnx, rndm);
456451
}
457452
}
@@ -467,8 +462,7 @@ struct FlowMc {
467462
mCentVsIPTruth = ccdb->getForTimeStamp<TH1D>(cfgCentVsIPTruth, timestamp);
468463
if (mCentVsIPTruth) {
469464
LOGF(info, "Loaded CentVsIPTruth weights from %s (%p)", cfgCentVsIPTruth.value.c_str(), static_cast<void*>(mCentVsIPTruth));
470-
}
471-
else {
465+
} else {
472466
LOGF(fatal, "Failed to load CentVsIPTruth weights from %s", cfgCentVsIPTruth.value.c_str());
473467
}
474468

0 commit comments

Comments
 (0)