# Writing a configured TMVA::Reader to a TFile

**URL:** <https://root-forum.cern.ch/t/writing-a-configured-tmva-reader-to-a-tfile/20662>\
**Category:** TMVA\
**Created:** [February 21, 2016, 8:39am UTC](https://root-forum.cern.ch/t/writing-a-configured-tmva-reader-to-a-tfile/20662 "2016-02-21T08:39:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwatts](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/aca169/32.png) [@gwatts](https://root-forum.cern.ch/u/gwatts)\
**Post date:** [February 21, 2016, 8:39am UTC](https://root-forum.cern.ch/t/writing-a-configured-tmva-reader-to-a-tfile/20662/1 "2016-02-21T08:39:19Z")

</div>

When using PROOF, I’m used to serializing all my ROOT objects so they can be transmitted to various PROOF slaves.

I’ve just started using TMVA, and it looks like TMVA::Reader, though you can write it out to a file, doesn’t save everything it needs to run.

Is this correct? Generally, does one have to ship the weight file, and create it on every slave?

Many thanks!

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [February 26, 2016, 3:32pm UTC](https://root-forum.cern.ch/t/writing-a-configured-tmva-reader-to-a-tfile/20662/2 "2016-02-26T15:32:54Z")

</div>

Hi Gordon,

The information the Reader needs to run is in the XML file. So I guess you need to have every slave have a copy of the files.  
I am not sur instead if the streaming of the full method classes will work.

Lorenzo
