Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README/ReleaseNotes/v628/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Please use their non-experimental counterparts `ROOT::TBufferMerger` and `ROOT::
intended. Related to it was the `RooDataHist::cacheValidEntries()` function, which is removed as well.
The preferred way to reduce RooFit datasets to subranges is [RooAbsData::reduce()](https://root.cern.ch/doc/v628/classRooAbsData.html#acfa7b31e5cd751eec1bc4e95d2796390).
- The longtime-deprecated `RooStats::HistFactory::EstimateSummary` class is removed, including the functions that use it. The information that it was meant to store is managed by the `RooStats::HistFactory::Measurement` object since many years.
- The `RooSuperCategory::MakeIterator()` function that was deprecated since 6.22 is now removed. Please use range-based loops to iterate over the category states.


## Core Libraries
Expand Down
1 change: 0 additions & 1 deletion roofit/roofitcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,6 @@ ROOT_STANDARD_LIBRARY_PACKAGE(RooFitCore
src/RooBinWidthFunction.cxx
src/RooFitLegacy/RooCatTypeLegacy.cxx
src/RooFitLegacy/RooMinuit.cxx
src/RooFitLegacy/RooMultiCatIter.cxx
src/RunContext.cxx
src/TestStatistics/ConstantTermsOptimizer.cxx
src/TestStatistics/LikelihoodGradientWrapper.cxx
Expand Down
2 changes: 0 additions & 2 deletions roofit/roofitcore/inc/RooSuperCategory.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ class RooSuperCategory : public RooAbsCategoryLValue {
// Printing interface (human readable)
void printMultiline(std::ostream& os, Int_t content, bool verbose=false, TString indent="") const override;

/// \deprecated Use begin(), end() or range-based for loops to iterate through state names.
TIterator* MakeIterator() const ;
const RooArgSet& inputCatList() const { return _multiCat->inputCatList(); }

bool inRange(const char* rangeName) const override;
Expand Down
237 changes: 0 additions & 237 deletions roofit/roofitcore/src/RooFitLegacy/RooMultiCatIter.cxx

This file was deleted.

63 changes: 0 additions & 63 deletions roofit/roofitcore/src/RooFitLegacy/RooMultiCatIter.h

This file was deleted.

26 changes: 0 additions & 26 deletions roofit/roofitcore/src/RooMultiCategory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -108,26 +108,6 @@ std::string RooMultiCategory::createLabel() const
}


#ifndef NDEBUG

#include "RooFitLegacy/RooMultiCatIter.h"
namespace {
/// Check that root-6.22 redesign of category interfaces yields same labels
std::string computeLabelOldStyle(const RooArgSet& catSet, unsigned int index) {
RooMultiCatIter iter(catSet) ;
TObjString* obj ;
for (unsigned int i=0; (obj=(TObjString*)iter.Next()); ++i) {
if (i == index) {
return obj->String().Data();
}
}

return {};
}
}
#endif


////////////////////////////////////////////////////////////////////////////////
/// Calculate the current value.
/// This enumerates the states of each serving category, and calculates a unique
Expand All @@ -148,12 +128,6 @@ RooAbsCategory::value_type RooMultiCategory::evaluate() const
multiplier *= cat->size();
}

#ifndef NDEBUG
assert(hasIndex(computedStateIndex));
_currentIndex = computedStateIndex;
assert(createLabel() == computeLabelOldStyle(_catSet, computedStateIndex));
#endif

return computedStateIndex;
}

Expand Down
11 changes: 0 additions & 11 deletions roofit/roofitcore/src/RooSuperCategory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ supercategory will propagate to its input categories.
#include "Riostream.h"
#include "RooStreamParser.h"
#include "RooArgSet.h"
#include "RooFitLegacy/RooMultiCatIter.h"
#include "RooAbsCategoryLValue.h"
#include "RooMsgService.h"

Expand Down Expand Up @@ -85,16 +84,6 @@ RooSuperCategory::RooSuperCategory(const RooSuperCategory& other, const char *na
}


////////////////////////////////////////////////////////////////////////////////
/// Make an iterator over all state permutations of
/// the input categories of this supercategory.
/// The iterator just generates state names, it does not set them.
TIterator* RooSuperCategory::MakeIterator() const
{
return new RooMultiCatIter(_multiCat->inputCatList());
}


////////////////////////////////////////////////////////////////////////////////
/// Set the value of the super category to the specified index.
/// This will propagate to the sub-categories, and set their state accordingly.
Expand Down