Skip to content

Commit 3d6841c

Browse files
authored
Merge pull request #81 from alibuild/alibot-cleanup-13123
[PWGCF] Please consider the following formatting changes to AliceO2Group#13123
2 parents 5d1c113 + ac01c44 commit 3d6841c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

PWGCF/Flow/TableProducer/zdcQVectors.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -926,17 +926,17 @@ struct ZdcQVectors {
926926
double deltaPsiZDCC = 0;
927927

928928
if (!cfgCCDBdir_Shift.value.empty() && cal.isShiftProfileFound == false) {
929-
LOGF(info, "Getting shift profile from CCDB for runnumber: %d", runnumber);
930-
TList* hcorrList = ccdb->getForTimeStamp<TList>(cfgCCDBdir_Shift.value, foundBC.timestamp());
931-
cal.shiftprofileC = reinterpret_cast<TProfile3D*>(hcorrList->FindObject("ShiftZDCC"));
932-
cal.shiftprofileA = reinterpret_cast<TProfile3D*>(hcorrList->FindObject("ShiftZDCA"));
933-
if (!cal.shiftprofileC || !cal.shiftprofileA) {
934-
LOGF(error, "Shift profile not found in CCDB for runnumber: %d", runnumber);
935-
cal.isShiftProfileFound = false;
936-
} else {
937-
LOGF(info, "Shift profile found in CCDB for runnumber: %d", runnumber);
938-
cal.isShiftProfileFound = true;
939-
}
929+
LOGF(info, "Getting shift profile from CCDB for runnumber: %d", runnumber);
930+
TList* hcorrList = ccdb->getForTimeStamp<TList>(cfgCCDBdir_Shift.value, foundBC.timestamp());
931+
cal.shiftprofileC = reinterpret_cast<TProfile3D*>(hcorrList->FindObject("ShiftZDCC"));
932+
cal.shiftprofileA = reinterpret_cast<TProfile3D*>(hcorrList->FindObject("ShiftZDCA"));
933+
if (!cal.shiftprofileC || !cal.shiftprofileA) {
934+
LOGF(error, "Shift profile not found in CCDB for runnumber: %d", runnumber);
935+
cal.isShiftProfileFound = false;
936+
} else {
937+
LOGF(info, "Shift profile found in CCDB for runnumber: %d", runnumber);
938+
cal.isShiftProfileFound = true;
939+
}
940940
}
941941

942942
for (int ishift = 1; ishift <= nshift; ishift++) {
@@ -966,7 +966,7 @@ struct ZdcQVectors {
966966
coeffshiftxZDCA = cal.shiftprofileA->GetBinContent(binshiftxZDCA);
967967
if (binshiftyZDCA > 0)
968968
coeffshiftyZDCA = cal.shiftprofileA->GetBinContent(binshiftyZDCA);
969-
969+
970970
deltaPsiZDCC += ((2 / (1.0 * ishift)) * (-1.0 * coeffshiftxZDCC * std::cos(ishift * 1.0 * psiZDCC) + coeffshiftyZDCC * std::sin(ishift * 1.0 * psiZDCC)));
971971
deltaPsiZDCA += ((2 / (1.0 * ishift)) * (-1.0 * coeffshiftxZDCA * std::cos(ishift * 1.0 * psiZDCA) + coeffshiftyZDCA * std::sin(ishift * 1.0 * psiZDCA)));
972972
}

0 commit comments

Comments
 (0)