@@ -401,28 +401,28 @@ void RooDataHist::importTH1(const RooArgList& vars, const TH1& histo, double wgt
401
401
zmin = offset[2 ] ;
402
402
}
403
403
404
- Int_t ix (0 );
405
- Int_t iy (0 );
404
+ Int_t iX (0 );
405
+ Int_t iY (0 );
406
406
Int_t iz (0 );
407
- for (ix =0 ; ix < xvar->getBins () ; ix ++) {
408
- xvar->setBin (ix ) ;
407
+ for (iX =0 ; iX < xvar->getBins () ; iX ++) {
408
+ xvar->setBin (iX ) ;
409
409
if (yvar) {
410
- for (iy =0 ; iy < yvar->getBins () ; iy ++) {
411
- yvar->setBin (iy ) ;
410
+ for (iY =0 ; iY < yvar->getBins () ; iY ++) {
411
+ yvar->setBin (iY ) ;
412
412
if (zvar) {
413
413
for (iz=0 ; iz < zvar->getBins () ; iz++) {
414
414
zvar->setBin (iz) ;
415
415
double bv = doDensityCorrection ? binVolume (vset) : 1 ;
416
- add (vset,bv*histo.GetBinContent (ix +1 +xmin,iy +1 +ymin,iz+1 +zmin)*wgt,bv*TMath::Power (histo.GetBinError (ix +1 +xmin,iy +1 +ymin,iz+1 +zmin)*wgt,2 )) ;
416
+ add (vset,bv*histo.GetBinContent (iX +1 +xmin,iY +1 +ymin,iz+1 +zmin)*wgt,bv*TMath::Power (histo.GetBinError (iX +1 +xmin,iY +1 +ymin,iz+1 +zmin)*wgt,2 )) ;
417
417
}
418
418
} else {
419
419
double bv = doDensityCorrection ? binVolume (vset) : 1 ;
420
- add (vset,bv*histo.GetBinContent (ix +1 +xmin,iy +1 +ymin)*wgt,bv*TMath::Power (histo.GetBinError (ix +1 +xmin,iy +1 +ymin)*wgt,2 )) ;
420
+ add (vset,bv*histo.GetBinContent (iX +1 +xmin,iY +1 +ymin)*wgt,bv*TMath::Power (histo.GetBinError (iX +1 +xmin,iY +1 +ymin)*wgt,2 )) ;
421
421
}
422
422
}
423
423
} else {
424
424
double bv = doDensityCorrection ? binVolume (vset) : 1 ;
425
- add (vset,bv*histo.GetBinContent (ix +1 +xmin)*wgt,bv*TMath::Power (histo.GetBinError (ix +1 +xmin)*wgt,2 )) ;
425
+ add (vset,bv*histo.GetBinContent (iX +1 +xmin)*wgt,bv*TMath::Power (histo.GetBinError (iX +1 +xmin)*wgt,2 )) ;
426
426
}
427
427
}
428
428
@@ -564,31 +564,31 @@ void RooDataHist::importTH1Set(const RooArgList& vars, RooCategory& indexCat, st
564
564
double avgBV = volume / numEntries () ;
565
565
566
566
Int_t ic (0 );
567
- Int_t ix (0 );
568
- Int_t iy (0 );
567
+ Int_t iX (0 );
568
+ Int_t iY (0 );
569
569
Int_t iz (0 );
570
570
for (ic=0 ; ic < icat->numBins (nullptr ) ; ic++) {
571
571
icat->setBin (ic) ;
572
572
histo = hmap[icat->getCurrentLabel ()] ;
573
- for (ix =0 ; ix < xvar->getBins () ; ix ++) {
574
- xvar->setBin (ix ) ;
573
+ for (iX =0 ; iX < xvar->getBins () ; iX ++) {
574
+ xvar->setBin (iX ) ;
575
575
if (yvar) {
576
- for (iy =0 ; iy < yvar->getBins () ; iy ++) {
577
- yvar->setBin (iy ) ;
576
+ for (iY =0 ; iY < yvar->getBins () ; iY ++) {
577
+ yvar->setBin (iY ) ;
578
578
if (zvar) {
579
579
for (iz=0 ; iz < zvar->getBins () ; iz++) {
580
580
zvar->setBin (iz) ;
581
581
double bv = doDensityCorrection ? binVolume (vset)/avgBV : 1 ;
582
- add (vset,bv*histo->GetBinContent (ix +1 +xmin,iy +1 +ymin,iz+1 +zmin)*wgt,bv*TMath::Power (histo->GetBinError (ix +1 +xmin,iy +1 +ymin,iz+1 +zmin)*wgt,2 )) ;
582
+ add (vset,bv*histo->GetBinContent (iX +1 +xmin,iY +1 +ymin,iz+1 +zmin)*wgt,bv*TMath::Power (histo->GetBinError (iX +1 +xmin,iY +1 +ymin,iz+1 +zmin)*wgt,2 )) ;
583
583
}
584
584
} else {
585
585
double bv = doDensityCorrection ? binVolume (vset)/avgBV : 1 ;
586
- add (vset,bv*histo->GetBinContent (ix +1 +xmin,iy +1 +ymin)*wgt,bv*TMath::Power (histo->GetBinError (ix +1 +xmin,iy +1 +ymin)*wgt,2 )) ;
586
+ add (vset,bv*histo->GetBinContent (iX +1 +xmin,iY +1 +ymin)*wgt,bv*TMath::Power (histo->GetBinError (iX +1 +xmin,iY +1 +ymin)*wgt,2 )) ;
587
587
}
588
588
}
589
589
} else {
590
590
double bv = doDensityCorrection ? binVolume (vset)/avgBV : 1 ;
591
- add (vset,bv*histo->GetBinContent (ix +1 +xmin)*wgt,bv*TMath::Power (histo->GetBinError (ix +1 +xmin)*wgt,2 )) ;
591
+ add (vset,bv*histo->GetBinContent (iX +1 +xmin)*wgt,bv*TMath::Power (histo->GetBinError (iX +1 +xmin)*wgt,2 )) ;
592
592
}
593
593
}
594
594
}
0 commit comments