Hello root family,
I’m trying to classify some data with TMVA methods, for this I’m following the TMVAtutorialClassification https://root.cern.ch/doc/v610/TMVAClassification_8C.html.
My code after the factory and before cuts: (the code is very similar to the example )
dataloader->AddVariable("DK_Mass","DK_Mass","D");
dataloader->AddVariable("DPi_Mass","DPi_Mass","F");
//global event weights per tree
Double_t signalWeight = 1.0;
Double_t backgroundWeight = 1.0;
//------------------------------------------------
dataloader->AddSignalTree ( signalTree, signalWeight ); // TTree *signalTree = (TTree*)input->Get("Tree;2/Pesosig");
// para el problema: se prueba dejarlo en la señal, ya que en el peso esta con fatal error
dataloader->AddBackgroundTree( background, backgroundWeight );
//---------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------
dataloader->SetSignalWeightExpression("Pesosig"); // This is the problem!!!!!!!!!!!!!!!
//dataloader->SetWeightExpression("Pesosig");
dataloader->SetBackgroundWeightExpression("Pesobac"); //name of the background weight
When I used my code, in the compilation part, root show me the next error
I check that my signal weight is not empty or 0,
and is different to the background weight (but not in dimensions they have the same number of entries), if you recommend me a solution I will very happy.
Thanks for your time