From 587db2ac6b4cb35435ffacf25c921d6b3586e26b Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 3 Apr 2025 18:17:17 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGCF/Flow/Tasks/flowSP.cxx | 41 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/PWGCF/Flow/Tasks/flowSP.cxx b/PWGCF/Flow/Tasks/flowSP.cxx index c3ef1770343..1e48d21018d 100644 --- a/PWGCF/Flow/Tasks/flowSP.cxx +++ b/PWGCF/Flow/Tasks/flowSP.cxx @@ -594,7 +594,7 @@ struct FlowSP { if (cfg.correctionsLoaded) return; - int nWeights = 3; + int nWeights = 3; if (cfgNUA.value.empty() == false) { TList* listCorrections = ccdb->getForTimeStamp(cfgNUA, timestamp); @@ -604,26 +604,25 @@ struct FlowSP { int sizeAcc = cfg.mAcceptance.size(); if (sizeAcc < nWeights) { LOGF(warning, "Could not load acceptance weights from %s", cfgNUA.value.c_str()); - else - LOGF(info, "Loaded acceptance weights from %s", cfgNUA.value.c_str()); - } else { - LOGF(info, "cfgNUA empty! No corrections loaded"); - } - if (cfgNUE.value.empty() == false) { - TList* listCorrections = ccdb->getForTimeStamp(cfgNUE, timestamp); - cfg.mEfficiency.push_back(reinterpret_cast(listCorrections->FindObject("Efficiency"))); - cfg.mEfficiency.push_back(reinterpret_cast(listCorrections->FindObject("Efficiency_pos"))); - cfg.mEfficiency.push_back(reinterpret_cast(listCorrections->FindObject("Efficiency_neg"))); - int sizeEff = cfg.mEfficiency.size(); - if (sizeEff < nWeights) { - LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgNUE.value.c_str()); + else LOGF(info, "Loaded acceptance weights from %s", cfgNUA.value.c_str()); + } else { + LOGF(info, "cfgNUA empty! No corrections loaded"); + } + if (cfgNUE.value.empty() == false) { + TList* listCorrections = ccdb->getForTimeStamp(cfgNUE, timestamp); + cfg.mEfficiency.push_back(reinterpret_cast(listCorrections->FindObject("Efficiency"))); + cfg.mEfficiency.push_back(reinterpret_cast(listCorrections->FindObject("Efficiency_pos"))); + cfg.mEfficiency.push_back(reinterpret_cast(listCorrections->FindObject("Efficiency_neg"))); + int sizeEff = cfg.mEfficiency.size(); + if (sizeEff < nWeights) { + LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgNUE.value.c_str()); + } + LOGF(info, "Loaded efficiency histogram from %s", cfgNUE.value.c_str()); + } else { + LOGF(info, "cfgNUE empty! No corrections loaded"); } - LOGF(info, "Loaded efficiency histogram from %s", cfgNUE.value.c_str()); - } else { - LOGF(info, "cfgNUE empty! No corrections loaded"); - } cfg.correctionsLoaded = true; - } + } // From Generic Framework bool setCurrentParticleWeights(int pID, float& weight_nue, float& weight_nua, const float& phi, const float& eta, const float& pt, const float& vtxz) @@ -707,11 +706,11 @@ struct FlowSP { if (collision.numContrib() > 1) { vtxz = collision.posZ(); float zRes = std::sqrt(collision.covZZ()); - float minzRes = 0.25; + float minzRes = 0.25; int maxNumContrib = 20; if (zRes > minzRes && collision.numContrib() < maxNumContrib) { vtxz = -999; - } + } auto multNTracksPV = collision.multNTracksPV();