From ac01c447e8f88a253ee1eac3a193c597e08c48ba Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 25 Sep 2025 07:37:48 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGCF/Flow/TableProducer/zdcQVectors.cxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/PWGCF/Flow/TableProducer/zdcQVectors.cxx b/PWGCF/Flow/TableProducer/zdcQVectors.cxx index 0735f95922d..a69de55ff13 100644 --- a/PWGCF/Flow/TableProducer/zdcQVectors.cxx +++ b/PWGCF/Flow/TableProducer/zdcQVectors.cxx @@ -926,17 +926,17 @@ struct ZdcQVectors { double deltaPsiZDCC = 0; if (!cfgCCDBdir_Shift.value.empty() && cal.isShiftProfileFound == false) { - LOGF(info, "Getting shift profile from CCDB for runnumber: %d", runnumber); - TList* hcorrList = ccdb->getForTimeStamp(cfgCCDBdir_Shift.value, foundBC.timestamp()); - cal.shiftprofileC = reinterpret_cast(hcorrList->FindObject("ShiftZDCC")); - cal.shiftprofileA = reinterpret_cast(hcorrList->FindObject("ShiftZDCA")); - if (!cal.shiftprofileC || !cal.shiftprofileA) { - LOGF(error, "Shift profile not found in CCDB for runnumber: %d", runnumber); - cal.isShiftProfileFound = false; - } else { - LOGF(info, "Shift profile found in CCDB for runnumber: %d", runnumber); - cal.isShiftProfileFound = true; - } + LOGF(info, "Getting shift profile from CCDB for runnumber: %d", runnumber); + TList* hcorrList = ccdb->getForTimeStamp(cfgCCDBdir_Shift.value, foundBC.timestamp()); + cal.shiftprofileC = reinterpret_cast(hcorrList->FindObject("ShiftZDCC")); + cal.shiftprofileA = reinterpret_cast(hcorrList->FindObject("ShiftZDCA")); + if (!cal.shiftprofileC || !cal.shiftprofileA) { + LOGF(error, "Shift profile not found in CCDB for runnumber: %d", runnumber); + cal.isShiftProfileFound = false; + } else { + LOGF(info, "Shift profile found in CCDB for runnumber: %d", runnumber); + cal.isShiftProfileFound = true; + } } for (int ishift = 1; ishift <= nshift; ishift++) { @@ -966,7 +966,7 @@ struct ZdcQVectors { coeffshiftxZDCA = cal.shiftprofileA->GetBinContent(binshiftxZDCA); if (binshiftyZDCA > 0) coeffshiftyZDCA = cal.shiftprofileA->GetBinContent(binshiftyZDCA); - + deltaPsiZDCC += ((2 / (1.0 * ishift)) * (-1.0 * coeffshiftxZDCC * std::cos(ishift * 1.0 * psiZDCC) + coeffshiftyZDCC * std::sin(ishift * 1.0 * psiZDCC))); deltaPsiZDCA += ((2 / (1.0 * ishift)) * (-1.0 * coeffshiftxZDCA * std::cos(ishift * 1.0 * psiZDCA) + coeffshiftyZDCA * std::sin(ishift * 1.0 * psiZDCA))); }