Skip to content
Snippets Groups Projects
Commit 0947cb61 authored by Ernoult's avatar Ernoult Committed by BaM
Browse files

Remove unused uninitialized vector in XSM

parent 4246a69a
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,6 @@ void XSM_SFR::SetFixedVariablesValues(map<string, double> FixedParameters) { ...@@ -100,7 +100,6 @@ void XSM_SFR::SetFixedVariablesValues(map<string, double> FixedParameters) {
for (unsigned int i = 0; i < fTMVAVariableNames.size(); i++) { for (unsigned int i = 0; i < fTMVAVariableNames.size(); i++) {
if (FixedParameters.find(fTMVAVariableNames[i]) != FixedParameters.end()) { if (FixedParameters.find(fTMVAVariableNames[i]) != FixedParameters.end()) {
fTMVAFixedVariableValues[i] = FixedParameters[fTMVAVariableNames[i]]; fTMVAFixedVariableValues[i] = FixedParameters[fTMVAVariableNames[i]];
fTMVAFixedVariable[i] = true;
} }
} }
} }
...@@ -206,14 +205,14 @@ void XSM_SFR::BookTMVAReader() { ...@@ -206,14 +205,14 @@ void XSM_SFR::BookTMVAReader() {
map<ZAI,string>::iterator it; map<ZAI,string>::iterator it;
for ( it = fMapOfTMVAVariableNames.begin(); it != fMapOfTMVAVariableNames.end(); 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()); fReader[i]->AddVariable(it->second.c_str());
} }
DBGL DBGL
// Time as to be the last one !!! // Time as to be the last one !!!
fReader[i]->AddVariable("Time"); fReader[i]->AddVariable("Time");
DBGL DBGL
std::cout << dir + fWeightFiles[i] << std::endl; // std::cout << dir + fWeightFiles[i] << std::endl;
fReader[i]->BookMVA("MLP method", dir + fWeightFiles[i]); fReader[i]->BookMVA("MLP method", dir + fWeightFiles[i]);
DBGL DBGL
} }
......
...@@ -125,7 +125,6 @@ class XSM_SFR : public XSM_MLP ...@@ -125,7 +125,6 @@ class XSM_SFR : public XSM_MLP
string fTMVAWeightFolder; //!< folder containing all the weight file 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 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<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 vector<double> fTMVAFixedVariableValues;//!< List of value for TMVA that have to be used for all
#ifndef __CINT__ #ifndef __CINT__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment