TMVA and Friend Trees

From: Seon-Hee Seo <seo_at_physto.se>
Date: Tue, 15 Apr 2008 09:18:18 +0200


Hi all,

I am a novice using TMVA.
(My current working ROOT version is 5.18.)

I was able to run the test TMVAnalysis.C, it went OK.
(even though I see some error messages, such as "image files not found",
"divided by zero"...
I was able to see plots when I click the TMVA GUI buttons.)

However when I use my own root files and variables in TMVAnalysis.C I get in trouble.
I wonder this is due to the complicated structure of my root files or not.
(But I don't think I am the only person who use root files with master
and friend trees
and at the same time use the TMVA.)

In the TMVAnalysis.C, I am reading two root files (signal and background) which contain a master tree and friend trees as I said. For both signal and background trees, I assign the *mater tree* named as "tree":

      TTree *signal     = (TTree*)input->Get("tree");
      TTree *background = (TTree*)input_BG->Get("tree");
-------------------------------------------------------------------------

And then, I assign four variables to the factory such as:

   factory->AddVariable("I3TauCuts.Entries.localZVelocity", 'F');
   factory->AddVariable("AveChargeNDOMs.I3Double.value", 'F');
   factory->AddVariable("MAXcurrentRatio.I3Double.value", 'F');
   factory->AddVariable("LineFitParams.I3LineFitParams.nHits", 'F');

where, I3TauCuts, AveChargeNDOMs etc... are *friend trees* existing in my root files.


When I run TMVAnalysis.C, it seems going.... and I see TMVA GUI in th end.

When I click a button, for example, "Input Variables", I get error message such as:
Error: operator '/' divided by zero variables.C:295: *** Interpreter error recovered ***

And I see empty canvas.
When I click other buttons I get "segmentation violation".


........blah ....blah...
...blah....


Do you have any idea and/or suggestion?
(For now I am using only MLP in TMVA just to simplify the problem.)

Thanks!
Seon-Hee Received on Tue Apr 15 2008 - 09:20:13 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 15 2008 - 17:50:01 CEST