Skip to content

Commit

Permalink
[RF] Avoid deprecation warning when building RooFit
Browse files Browse the repository at this point in the history
When RooFit builds itself, it should be possible to use deprecated
functions in other deprecated functions without causing a warning at
build time.
  • Loading branch information
guitargeek committed Dec 19, 2024
1 parent cbc09fc commit 7f801d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roofit/roofitcore/inc/RooDataSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ class RooDataSet : public RooAbsData, public RooDirItem {
// Constructor for subset of existing dataset
RooDataSet(RooStringView name, RooStringView title, RooDataSet *data, const RooArgSet& vars,
const char *cuts=nullptr, const char* wgtVarName=nullptr)
R__DEPRECATED(6,38, "Use RooAbsData::reduce(), or if you need to change the weight column, the universal constructor with the Import(), Cut(), and WeightVar() arguments.");
#ifndef ROOFIT_BUILDS_ITSELF
R__DEPRECATED(6,38, "Use RooAbsData::reduce(), or if you need to change the weight column, the universal constructor with the Import(), Cut(), and WeightVar() arguments.")
#endif
;
RooDataSet(RooStringView name, RooStringView title, RooDataSet *data, const RooArgSet& vars,
const RooFormulaVar& cutVar, const char* wgtVarName=nullptr)
R__DEPRECATED(6,38, "Use RooAbsData::reduce(), or if you need to change the weight column, the universal constructor with the Import(), Cut(), and WeightVar() arguments.");
Expand Down

0 comments on commit 7f801d4

Please sign in to comment.