From 2040877f713a7760bfaf067912edec00e7d8d424 Mon Sep 17 00:00:00 2001 From: Danilo Piparo <danilo.piparo@cern.ch> Date: Thu, 13 Sep 2018 10:58:50 +0200 Subject: [PATCH] [RooFit] Introduce minimal value printing for default constructed RooAbsArgs --- roofit/roofitcore/src/RooAbsArg.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roofit/roofitcore/src/RooAbsArg.cxx b/roofit/roofitcore/src/RooAbsArg.cxx index d4bfbbfe0f4..5c2a7098c41 100644 --- a/roofit/roofitcore/src/RooAbsArg.cxx +++ b/roofit/roofitcore/src/RooAbsArg.cxx @@ -2533,6 +2533,10 @@ namespace cling { std::string printValue(RooAbsArg *raa) { std::stringstream s; + if (0 == *raa->GetName() && 0 == *raa->GetTitle()) { + s << "An instance of " << raa->ClassName() << "."; + return s.str(); + } raa->printStream(s, raa->defaultPrintContents(""), raa->defaultPrintStyle("")); return s.str(); } -- GitLab