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
6 changes: 3 additions & 3 deletions roofit/roofitcore/res/RooNLLVarNew.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class RooNLLVarNew : public RooAbsReal {

public:
// The names for the weight variables that the RooNLLVarNew expects
static constexpr auto weightVarName = "_weight";
static constexpr auto weightVarNameSumW2 = "_weight_sumW2";
static constexpr auto weightVarNameSumW2Suffix = "_sumW2";
static constexpr const char *weightVarName = "_weight";
static constexpr const char *weightVarNameSumW2 = "_weight_sumW2";
static constexpr const char *weightVarNameSumW2Suffix = "_sumW2";

RooNLLVarNew(){};
RooNLLVarNew(const char *name, const char *title, RooAbsPdf &pdf, RooArgSet const &observables, RooAbsReal *weight,
Expand Down
5 changes: 5 additions & 0 deletions roofit/roofitcore/src/RooNLLVarNew.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ functions from `RooBatchCompute` library to provide faster computation times.

using namespace ROOT::Experimental;

// Declare constexpr static members to make them available if odr-used in C++14.
constexpr const char *RooNLLVarNew::weightVarName;
constexpr const char *RooNLLVarNew::weightVarNameSumW2;
constexpr const char *RooNLLVarNew::weightVarNameSumW2Suffix;

namespace {

std::unique_ptr<RooAbsReal> createRangeNormTerm(RooAbsPdf const &pdf, RooArgSet const &observables,
Expand Down