# Save TMVA output histos as root file

**URL:** <https://root-forum.cern.ch/t/save-tmva-output-histos-as-root-file/56748>\
**Category:** TMVA\
**Tags:** hist, root\
**Created:** [October 16, 2023, 4:19pm UTC](https://root-forum.cern.ch/t/save-tmva-output-histos-as-root-file/56748 "2023-10-16T16:19:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![falicante](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/falicante/32/34793_2.png) [@falicante](https://root-forum.cern.ch/u/falicante)\
**Post date:** [October 16, 2023, 4:19pm UTC](https://root-forum.cern.ch/t/save-tmva-output-histos-as-root-file/56748/1 "2023-10-16T16:19:28Z")

</div>

Hello there,

I was wondering if there is a simple way to save some TMVA output histograms as root files for further analysis.

My particular scenario is: I have trained a BDT and I would like to save the (4a) Classifier Output Distributions available on the TMVA::TMVAGui as separate root files for signal and background, in order to evaluate the integrals and the efficiencies for different cuts with the proper expected numbers.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 17, 2023, 6:26am UTC](https://root-forum.cern.ch/t/save-tmva-output-histos-as-root-file/56748/2 "2023-10-17T06:26:39Z")

</div>

Welcome to the ROOT forum.

May be you can find an example answering you question in [the collection of TMVA tutorials](https://root.cern/doc/master/group __tutorial__ tmva.html). If not I am sure @moneta can help you.
