Skip to content

Commit d9f1e59

Browse files
committed
DhCorrelationExtraction.cxx: unusedVariable, knownConditionTrueFalse
1 parent fb32593 commit d9f1e59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ TH2D* DhCorrelationExtraction::getCorrelHisto(Int_t sEorMe, Int_t sorSb, Int_t p
10281028
hSparse = reinterpret_cast<THnSparseD*>(fDirSE->Get(fSECorrelSignalRegionName.Data()));
10291029
} else if (!fSidebandDivided) {
10301030
hSparse = reinterpret_cast<THnSparseD*>(fDirSE->Get(fSECorrelSidebandsName.Data()));
1031-
} else if (fSidebandDivided) {
1031+
} else {
10321032
if (fUseSidebLeft && !fUseSidebRight) {
10331033
hSparse = reinterpret_cast<THnSparseD*>(fDirSE->Get(fSECorrelSidebandLeftName.Data()));
10341034
} else if (!fUseSidebLeft && fUseSidebRight) {
@@ -1045,7 +1045,7 @@ TH2D* DhCorrelationExtraction::getCorrelHisto(Int_t sEorMe, Int_t sorSb, Int_t p
10451045
hSparse = reinterpret_cast<THnSparseD*>(fDirME->Get(fMECorrelSignalRegionName.Data()));
10461046
} else if (!fSidebandDivided) {
10471047
hSparse = reinterpret_cast<THnSparseD*>(fDirME->Get(fMECorrelSidebandsName.Data()));
1048-
} else if (fSidebandDivided) {
1048+
} else {
10491049
if (fUseSidebLeft && !fUseSidebRight) {
10501050
hSparse = reinterpret_cast<THnSparseD*>(fDirME->Get(fMECorrelSidebandLeftName.Data()));
10511051
} else if (!fUseSidebLeft && fUseSidebRight) {
@@ -1381,7 +1381,7 @@ Double_t DhCorrelationExtraction::calculateBaseline(TH1D*& histo, Bool_t totalRa
13811381
// total range = 2*Pi
13821382
// half range = Pi , for histogram reflected under symmetric assumption
13831383

1384-
Double_t baseline, errBaseline;
1384+
Double_t baseline;
13851385
Int_t const nBinsPhi = histo->GetNbinsX();
13861386
Int_t const binPhiHalf = nBinsPhi / 2;
13871387
Int_t const binPhiHalfMinus1 = nBinsPhi / 2 - 1;

0 commit comments

Comments
 (0)