# TString use in call to TMinuit::mnpout

**URL:** <https://root-forum.cern.ch/t/tstring-use-in-call-to-tminuit-mnpout/31741>\
**Category:** Newbie\
**Created:** [November 24, 2018, 1:43pm UTC](https://root-forum.cern.ch/t/tstring-use-in-call-to-tminuit-mnpout/31741 "2018-11-24T13:43:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregrh](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/c4cdca/32.png) [@gregrh](https://root-forum.cern.ch/u/gregrh)\
**Post date:** [November 24, 2018, 1:43pm UTC](https://root-forum.cern.ch/t/tstring-use-in-call-to-tminuit-mnpout/31741/1 "2018-11-24T13:43:01Z")

</div>

Hi everyone,

I’ve successfully run minuit.Migrad to minimize a likelihood function and now want to access the parameter information via mnpout. I’ve found that the second variable in the call to mnpout needs to be a TString. Can anyone please help me do that in c++ as the language doesn’t have such a data type.

Thanks in advance  
Greg

---

<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:** [November 26, 2018, 8:41am UTC](https://root-forum.cern.ch/t/tstring-use-in-call-to-tminuit-mnpout/31741/2 "2018-11-26T08:41:48Z")

</div>

> [@gregrh](#):
>
> I’ve found that the second variable in the call to mnpout needs to be a TString. Can anyone please help me do that in c++ as the language doesn’t have such a data type.

TString is a ROOT type. In a simple interpreted macro you can just use. In a compiled macro or application add `#include "TString.h"` in your code.

---

<div class="post-metadata">

**Author:** ![gregrh](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/c4cdca/32.png) [@gregrh](https://root-forum.cern.ch/u/gregrh)\
**Post date:** [November 26, 2018, 8:55am UTC](https://root-forum.cern.ch/t/tstring-use-in-call-to-tminuit-mnpout/31741/3 "2018-11-26T08:55:17Z")

</div>

Brilliant, many thanks. I did that and then used TString in a declaration before calling the ROOT subroutine and it all worked fine.
