Hi,
I failed to run TMVAClassification.C with default settings on lxplus. Is there anything I need to set up before using TMVA? There are bunches of errors:
Processing ./TMVAClassification.C(“Fisher,Likelihood”)…
In file included from input_line_8:1:
/afs/cern.ch/work/c/chenf/private/test/TMVAClassification.C:43:10: fatal error: ‘TMVAGui.C’ file not found
#include “TMVAGui.C”
^~~~~~~~~~~
Warning in TInterpreter::TCling::RegisterModule: Problems in compiling forward declarations for module libGraf3d: ’
#line 1 “libGraf3d dictionary forward declarations’ payload”
/afs/cern.ch/work/c/chenf/private/test/TMVAClassification.C:183:13: error: no member named ‘AddVariable’ in ‘TMVA::Factory’
factory->AddVariable( “myvar1 := var1+var2”, ‘F’ );
/afs/cern.ch/work/c/chenf/private/test/TMVAClassification.C:184:13: error: no member named 'AddVariable' in 'TMVA::Factory'
factory->AddVariable( "myvar2 := var1-var2", "Expression 2", "", 'F' );
~~~~~~~ ^
/afs/cern.ch/work/c/chenf/private/test/TMVAClassification.C:185:13: error: no member named 'AddVariable' in 'TMVA::Factory'
factory->AddVariable( "var3", "Variable 3", "units", 'F' );
~~~~~~~ ^
/afs/cern.ch/work/c/chenf/private/test/TMVAClassification.C:186:13: error: no member named 'AddVariable' in 'TMVA::Factory'
factory->AddVariable( "var4", "Variable 4", "units", 'F' );
~~~~~~~ ^
/afs/cern.ch/work/c/chenf/private/test/TMVAClassification.C:191:13: error: no member named 'AddSpectator' in 'TMVA::Factory'
factory->AddSpectator( "spec1 := var1*2", "Spectator 1", "units", 'F' );
~~~~~~~ ^
/afs/cern.ch/work/c/chenf/private/test/TMVAClassification.C:192:13: error: no member named 'AddSpectator' in 'TMVA::Factory'
factory->AddSpectator( "spec2 := var1*3", "Spectator 2", "units", 'F' );