From 2977b7da2d5b3f98f9ff46c4f4d019495962775d Mon Sep 17 00:00:00 2001 From: Omar Zapata <Omar.Zapata@cern.ch> Date: Fri, 8 Jul 2016 13:42:15 +0200 Subject: [PATCH] TMVA: fixed pdefoam method to read xml file in ModelPersistence mode. --- tmva/tmva/src/MethodCompositeBase.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tmva/tmva/src/MethodCompositeBase.cxx b/tmva/tmva/src/MethodCompositeBase.cxx index bb7c773bf34..f696420f79b 100644 --- a/tmva/tmva/src/MethodCompositeBase.cxx +++ b/tmva/tmva/src/MethodCompositeBase.cxx @@ -55,6 +55,7 @@ #include "TMVA/MsgLogger.h" #include "TMVA/Tools.h" #include "TMVA/Types.h" +#include "TMVA/Config.h" using std::vector; @@ -197,6 +198,12 @@ void TMVA::MethodCompositeBase::ReadWeightsFromXML( void* wghtnode ) Log() << kFATAL << "Could not read method from XML" << Endl; void* methXML = gTools().GetChild(ch); + + TString _fFileDir= meth->DataInfo().GetName(); + _fFileDir+="/"+gConfig().GetIONames().fWeightFileDir; + meth->SetWeightFileDir(_fFileDir); + meth->SetModelPersistence(IsModelPersistence()); + meth->SetSilentFile(IsSilentFile()); meth->SetupMethod(); meth->SetMsgType(kWARNING); meth->ParseOptions(); -- GitLab