From 0947cb6130b632d88de69681fab8ad9778850414 Mon Sep 17 00:00:00 2001 From: marc ernoult <ernoult@ipno.in2p3.fr> Date: Mon, 5 Mar 2018 10:38:14 +0100 Subject: [PATCH] Remove unused uninitialized vector in XSM --- source/Model/XS/XSM_SFR.cxx | 5 ++--- source/Model/XS/XSM_SFR.hxx | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/Model/XS/XSM_SFR.cxx b/source/Model/XS/XSM_SFR.cxx index f6e8be598..3971fc3ca 100644 --- a/source/Model/XS/XSM_SFR.cxx +++ b/source/Model/XS/XSM_SFR.cxx @@ -100,7 +100,6 @@ void XSM_SFR::SetFixedVariablesValues(map<string, double> FixedParameters) { for (unsigned int i = 0; i < fTMVAVariableNames.size(); i++) { if (FixedParameters.find(fTMVAVariableNames[i]) != FixedParameters.end()) { fTMVAFixedVariableValues[i] = FixedParameters[fTMVAVariableNames[i]]; - fTMVAFixedVariable[i] = true; } } } @@ -206,14 +205,14 @@ void XSM_SFR::BookTMVAReader() { map<ZAI,string>::iterator it; for ( it = fMapOfTMVAVariableNames.begin(); it != fMapOfTMVAVariableNames.end(); it++){ - std::cout<< it->second << std::endl; + // std::cout<< it->second << std::endl; fReader[i]->AddVariable(it->second.c_str()); } DBGL // Time as to be the last one !!! fReader[i]->AddVariable("Time"); DBGL - std::cout << dir + fWeightFiles[i] << std::endl; + // std::cout << dir + fWeightFiles[i] << std::endl; fReader[i]->BookMVA("MLP method", dir + fWeightFiles[i]); DBGL } diff --git a/source/Model/XS/XSM_SFR.hxx b/source/Model/XS/XSM_SFR.hxx index d11542699..f8ad47f49 100644 --- a/source/Model/XS/XSM_SFR.hxx +++ b/source/Model/XS/XSM_SFR.hxx @@ -125,7 +125,6 @@ class XSM_SFR : public XSM_MLP string fTMVAWeightFolder; //!< folder containing all the weight file bool fIsStepTime; //!< true if one TMVA weihgt per step time is requiered otherwise it assumes time is part of the MLP inputs vector<string> fTMVAVariableNames;//!< List of TMVA input variable names (read from fMLPInformationFile ) , name depends on the training step - vector<bool> fTMVAFixedVariable;//!< List of value for TMVA that have to be used for all vector<double> fTMVAFixedVariableValues;//!< List of value for TMVA that have to be used for all #ifndef __CINT__ -- GitLab