# Get TestTree and TrainTree after TMVA is completed

**URL:** <https://root-forum.cern.ch/t/get-testtree-and-traintree-after-tmva-is-completed/62942>\
**Category:** Newbie\
**Tags:** tree, tmva\
**Created:** [February 14, 2025, 7:48am UTC](https://root-forum.cern.ch/t/get-testtree-and-traintree-after-tmva-is-completed/62942 "2025-02-14T07:48:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ygr](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/f0a364/32.png) [@ygr](https://root-forum.cern.ch/u/ygr)\
**Post date:** [February 14, 2025, 7:48am UTC](https://root-forum.cern.ch/t/get-testtree-and-traintree-after-tmva-is-completed/62942/1 "2025-02-14T07:48:16Z")

</div>

TMVA writes “dataset” directory and TestTree TrainTree with its outputs.  
Is it possible to get those trees with a method like GetIOTree on the same macro file TMVAClassification.C without opening the output file TMVA.root?

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [February 14, 2025, 7:56am UTC](https://root-forum.cern.ch/t/get-testtree-and-traintree-after-tmva-is-completed/62942/2 "2025-02-14T07:56:43Z")

</div>

Hi,

I am adding in the loop @moneta .

Best,  
D
