# Where to find root macro with TMVA

**URL:** <https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849>\
**Category:** TMVA\
**Created:** [September 10, 2016, 10:29am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849 "2016-09-10T10:29:49Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [September 10, 2016, 10:29am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/1 "2016-09-10T10:29:49Z")

</div>

Dear experts,  
I have ROOT 6.02/05, and I did not see any tmva like directory in $ROOTSYS/tutorials/.  
As I can’t use the TMVA standalone packadge with root 6x, can you please tell me where I can find  
root macro example using TMVA?  
Regards

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [September 10, 2016, 10:35am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/2 "2016-09-10T10:35:15Z")

</div>

Do you get “yes” when you try “root-config --has-tmva”?

Try:  
grep -r -i tmva ${ROOTSYS}/test  
grep -r -i tmva ${ROOTSYS}/tutorials

---

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [September 10, 2016, 10:48am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/3 "2016-09-10T10:48:27Z")

</div>

Dear Pepe,

- “root-config --has-tmva” says “yes”

- grep -r -i tmva ${ROOTSYS}/test  
gave nothing

- grep -r -i tmva ${ROOTSYS}/tutorials  
gives output in file RootSysTuto.txt in cc

Do you see what is wrong?  
Regards  
[RootSysTuto.txt](https://root-forum.cern.ch/uploads/default/original/2X/4/443ffd16e20174819d700c7db19892f96d10b0b3.txt) (49.8 KB)

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [September 10, 2016, 11:38am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/4 "2016-09-10T11:38:23Z")

</div>

Unpack the source code and you will have “test” and “tutorials” subdirectories there.

---

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [September 10, 2016, 11:52am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/5 "2016-09-10T11:52:13Z")

</div>

Sorry can you please give me more information. How can I “Unpack the source code”? is there a compressed file, if yes which one, where? and where should I unpack…?  
Regards

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [September 10, 2016, 2:54pm UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/6 "2016-09-10T14:54:28Z")

</div>

[root.cern.ch -\> Menu -\> Download -\> All Releases](https://root.cern.ch/releases)

---

<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:** [September 11, 2016, 6:32pm UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/7 "2016-09-11T18:32:03Z")

</div>

Hi,

I confirm that on pages like this one [root.cern.ch/content/release-60608](https://root.cern.ch/content/release-60608) you can find all the information necessary to deploy a root release on your machine.  
In addition, all TMVA tutorials can be found here:  
[root.cern.ch/doc/master/group\_\_ … \_tmva.html](https://root.cern.ch/doc/master/group __tutorial__ tmva.html)

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [September 12, 2016, 9:40am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/8 "2016-09-12T09:40:47Z")

</div>

Dear Danilo,

- do you mean that with my root version 6.06/01 I do not have access to the TMVA so I have to move o at least root version 6.06.08?
- so in root version 6.06.08, I’ll be able to run the TMVA tutorials macro directly?  
Regards

---

<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:** [September 12, 2016, 10:44am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/9 "2016-09-12T10:44:29Z")

</div>

Hi,

not at all 🙂!  
The tutorials are there in all root releases, I just pointed you to the most recent one.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [September 12, 2016, 10:58am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/10 "2016-09-12T10:58:31Z")

</div>

Can you please tell me then why when I’m doing for example:  
root -l ./TMVAClassification.C(“Fisher,Likelihood”)

I have:  
Warning in TApplication::GetOptions: macro ./TMVAClassification.C not found

Regards

---

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [September 12, 2016, 11:00am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/11 "2016-09-12T11:00:21Z")

</div>

Sorry, maybe not “./” because the file is not in my current directory, but I want to know the path where I can find this file, and I do not find it anywhere.

Regards

---

<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:** [September 12, 2016, 11:42am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/12 "2016-09-12T11:42:10Z")

</div>

Hi,

it’s in “tutorials/tmva”.

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [September 12, 2016, 11:52am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/13 "2016-09-12T11:52:02Z")

</div>

Dear Danilo,

thank you, I can see the tmva directory now in ${ROOTSYS}/tutorials.  
I’m just very confuse, did you changed something recently? because 2 days ago it was not there…

Regards

---

<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:** [September 12, 2016, 11:55am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849/14 "2016-09-12T11:55:32Z")

</div>

Hi,

no, not really. Perhaps this is due to the various tests you carried out.  
Good news that it now works for you!

Cheers,  
D
