Skip to content

Commit 76d80e1

Browse files
cnkosteralibuild
andauthored
[PWGCF] zdcQVectors: fix typo in shift correction (#12997)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 7ba8538 commit 76d80e1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

PWGCF/Flow/TableProducer/zdcQVectors.cxx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -956,15 +956,17 @@ struct ZdcQVectors {
956956
int binshiftxZDCA = cal.shiftprofileA->FindBin(centrality, 0.5, ishift - 0.5);
957957
int binshiftyZDCA = cal.shiftprofileA->FindBin(centrality, 1.5, ishift - 0.5);
958958

959-
if (binshiftxZDCC > 0 && binshiftyZDCC > 0 && binshiftxZDCA > 0 && binshiftyZDCA > 0) {
959+
if (binshiftxZDCC > 0)
960960
coeffshiftxZDCC = cal.shiftprofileC->GetBinContent(binshiftxZDCC);
961+
if (binshiftyZDCC > 0)
961962
coeffshiftyZDCC = cal.shiftprofileC->GetBinContent(binshiftyZDCC);
963+
if (binshiftxZDCA > 0)
962964
coeffshiftxZDCA = cal.shiftprofileA->GetBinContent(binshiftxZDCA);
965+
if (binshiftyZDCA > 0)
963966
coeffshiftyZDCA = cal.shiftprofileA->GetBinContent(binshiftyZDCA);
964-
}
965-
deltaPsiZDCC += deltaPsiZDCC + ((2 / (1.0 * ishift)) * (-coeffshiftxZDCC * std::cos(ishift * 1.0 * psiZDCC) + coeffshiftyZDCC * std::sin(ishift * 1.0 * psiZDCC)));
966-
deltaPsiZDCA += deltaPsiZDCA + ((2 / (1.0 * ishift)) * (-coeffshiftxZDCA * std::cos(ishift * 1.0 * psiZDCA) + coeffshiftyZDCA * std::sin(ishift * 1.0 * psiZDCA)));
967967
}
968+
deltaPsiZDCC += ((2 / (1.0 * ishift)) * (-coeffshiftxZDCC * std::cos(ishift * 1.0 * psiZDCC) + coeffshiftyZDCC * std::sin(ishift * 1.0 * psiZDCC)));
969+
deltaPsiZDCA += ((2 / (1.0 * ishift)) * (-coeffshiftxZDCA * std::cos(ishift * 1.0 * psiZDCA) + coeffshiftyZDCA * std::sin(ishift * 1.0 * psiZDCA)));
968970
}
969971

970972
psiZDCCshift += deltaPsiZDCC;

0 commit comments

Comments
 (0)