Re: TMVA and Friend Trees

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


Hi all,

I replied to myself.
It seems that current TMVA (in ROOT V5.18) does dot support root input files
which have friend trees in them.

When I use other input root files which do not have any friend tree, I can run the TMVAnalysis.C and able to see nice plots with TMVA GUI. (There are still some error meaages, like, "image files not found..." or "dived by zero...".)

I'll request TMVA developers to support friend trees in input root files.

Cheers,
Seon-Hee

Seon-Hee Seo wrote:
> 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".
> ------------------------
> *** Break *** segmentation violation
> (no debugging symbols found)
> Using host libthread_db library "/lib/libthread_db.so.1".
> Attaching to program: /proc/27450/exe, process 27450
> (no debugging symbols found)...done.
> (no debugging symbols found)...done.
> [Thread debugging using libthread_db enabled]
> [New Thread -1208276768 (LWP 27450)]
> (no debugging symbols found)...done.
>
> ........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 - 15:25:40 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 15 2008 - 23:50:02 CEST