# TMVA parameters are seen as unidentified

**URL:** <https://root-forum.cern.ch/t/tmva-parameters-are-seen-as-unidentified/31358>\
**Category:** Newbie\
**Created:** [October 29, 2018, 10:12pm UTC](https://root-forum.cern.ch/t/tmva-parameters-are-seen-as-unidentified/31358 "2018-10-29T22:12:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xerader](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/a5b964/32.png) [@xerader](https://root-forum.cern.ch/u/xerader)\
**Post date:** [October 29, 2018, 10:12pm UTC](https://root-forum.cern.ch/t/tmva-parameters-are-seen-as-unidentified/31358/1 "2018-10-29T22:12:31Z")

</div>

When I run a .C File without any parameters for TMVA, it runs fine.

```auto
root -l TMVAClassification.C

```

works fine.

But when i enter a parameter:

```auto
root -l 'TMVAClassification.C(LD,Likelihood)'

```

I get an error saying undeclared identifier.

```auto
rocessing TMVAClassification.C(LD,Likelihood)...
input_line_24:2:21: error: use of undeclared identifier 'LD'
 TMVAClassification(LD,Likelihood) /* invoking function corresponding to '.x' */
                    ^
input_line_24:2:24: error: use of undeclared identifier 'Likelihood'
 TMVAClassification(LD,Likelihood) /* invoking function corresponding to '.x' */

```

How do i solve this?

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [November 1, 2018, 7:46am UTC](https://root-forum.cern.ch/t/tmva-parameters-are-seen-as-unidentified/31358/2 "2018-11-01T07:46:55Z")

</div>

Hi Biratal,

Weird. Does this work for you:

```auto
cd $ROOTSYS/tutorials
root.exe -l -b -q 'hsimple.C(1)'
...
Processing hsimple.C(1)...
(TFile *) 0x55b0bbd9c9b0
...

```

If not: what is your shell, OS / distribution, ROOT version?

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [November 8, 2018, 1:58pm UTC](https://root-forum.cern.ch/t/tmva-parameters-are-seen-as-unidentified/31358/3 "2018-11-08T13:58:59Z")

</div>

Hi,

The following code: `root -l 'TMVAClassification.C("LD,Likelihood")'` should do the trick! (The macro accepts a single string as its input argument).

Cheers,  
Kim
