Hi root experts ,
I have a problem if i use MVAClassificationApplication.C code to fit my histograms and find the suitable cut for both of sinal and background.But i find error during run this code
*///////////////////////////////////////////////
rocessing TMVAClassificationApplication.C(“BDT”)…
==> Start TMVAClassificationApplication
Error in TXMLEngine::ParseFile: Unexpected end of xml file
: Trying to read non-existing attribute ‘Method’ from xml node ’
***> abort program execution
terminate called after throwing an instance of ‘std::runtime_error’
what(): FATAL error
*//////////////////////////////////////////////////////////////////
To clarify my problem accurately. I think in this section of the code
// Book method(s)
for (std::mapstd::string,int::iterator it = Use.begin(); it != Use.end(); it++) {
if (it->second) {
TString methodName = TString(it->first) + TString(" method");
TString weightfile = dir + prefix + TString(“_”) + TString(it->first) + TString(“.weights.xml”);
reader->BookMVA( methodName, weightfile );
}
*/////////////////////////////////////
thanks ,
Ahmed
TMVAClassificationApplication.C (23.0 KB)
bb.root (45.5 KB)
h_bb.root (45.5 KB)
h90BP1_bb.root (55.9 KB)
h90BP2_bb.root (55.3 KB)
h95BP1_bb.root (55.4 KB)
h95BP3_bb.root (56.1 KB)
h96BP1_bb.root (21.7 KB)
h96BP2_bb.root (56.2 KB)
h96BP3_bb.root (56.9 KB)
h96BP6_bb.root (54.5 KB)