Skip to content

Commit 77caed0

Browse files
nsmith-anigamova
authored andcommitted
Fix a few clang warnings
1 parent cafcce5 commit 77caed0

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/AtlasPdfs.cxx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,9 +1640,6 @@ void RooStarMomentMorph::CacheElem::calculateFractions(const RooStarMomentMorph&
16401640
{
16411641
//int nObs=self._obsList.getSize();
16421642

1643-
// loop over parList
1644-
int nnuis=0;
1645-
16461643
// zero all fractions
16471644
int nPdf=self._pdfList.getSize();
16481645
for (Int_t i=0; i<3*nPdf; ++i) {
@@ -1662,9 +1659,6 @@ void RooStarMomentMorph::CacheElem::calculateFractions(const RooStarMomentMorph&
16621659
double mlo=self._nref[imin];
16631660
double mhi=self._nref[imax];
16641661

1665-
// get reference for this obs
1666-
nnuis+=self._nnuis[j];
1667-
16681662
double mfrac = (imax>imin) ? (mhi-m0)/(mhi-mlo) : (mlo-m0)/(mhi-mlo);
16691663
if (mfrac> 1.) mfrac= 1.;
16701664
if (mfrac<-1.) mfrac=-1.;

src/CascadeMinimizer.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -568,19 +568,6 @@ bool CascadeMinimizer::multipleMinimize(const RooArgSet &reallyCleanParameters,
568568
//if (mode!=0) utils::reorderCombinations(myCombos,pdfSizes,bestIndeces);
569569
utils::reorderCombinations(myCombos,pdfSizes,bestIndeces);
570570

571-
int numberOfCombinations = 1;
572-
if (mode==1 || mode==0) numberOfCombinations=myCombos.size();
573-
574-
else {
575-
for (int i=0;i<numIndeces;i++){
576-
int nokpdfs=0;
577-
for (int j=0;j<pdfSizes[i];j++){
578-
nokpdfs+=contributingIndeces[i][j];
579-
}
580-
numberOfCombinations*=nokpdfs;
581-
}
582-
}
583-
584571
std::vector<std::vector<int> >::iterator my_it = myCombos.begin();
585572
if (mode!=0) my_it++; // already did the best fit case
586573

0 commit comments

Comments
 (0)