# How to read function documentation

**URL:** <https://root-forum.cern.ch/t/how-to-read-function-documentation/34106>\
**Category:** Newbie\
**Tags:** documentation\
**Created:** [May 16, 2019, 6:21pm UTC](https://root-forum.cern.ch/t/how-to-read-function-documentation/34106 "2019-05-16T18:21:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [May 16, 2019, 6:21pm UTC](https://root-forum.cern.ch/t/how-to-read-function-documentation/34106/1 "2019-05-16T18:21:15Z")

</div>

This is probably a standard C++ thing, but I’m a C++ noob.  
What I’m looking for is something similar to Python’s help(function\_name), something that will just tell me what a function takes as input and what it does. I guess this information is in the ROOT reference guide, but I’m struggling to actually find the function I’m looking for there.

Specifically, I’m trying to figure out the format string of the function Draw, which I guess is part of the class TF1.

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [May 17, 2019, 6:28am UTC](https://root-forum.cern.ch/t/how-to-read-function-documentation/34106/2 "2019-05-17T06:28:52Z")

</div>

Not sure there is an equivalent of Python’s `help()` in C++/doxygen. However, I believe [this](https://root.cern/doc/master/classTF1.html#ab2c6b27e1558988dc7399408666588fa) is what you want to look at from TF1. Cheers,

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [May 17, 2019, 8:33am UTC](https://root-forum.cern.ch/t/how-to-read-function-documentation/34106/3 "2019-05-17T08:33:06Z")

</div>

For a quick reference within the root prompt, you can use the Tab key; e.g.

```auto
 TF1 *f = new TF1(<tab>

```

will give you a list of all constructors and their inputs. Then,

```auto
 f->D<tab>

```

would give you (after “f” was already created as a TF1) a list of all member functions that start with D, etc.  
This doesn’t display descriptions or other details, but it’s still useful.

---

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [May 17, 2019, 4:13pm UTC](https://root-forum.cern.ch/t/how-to-read-function-documentation/34106/4 "2019-05-17T16:13:21Z")

</div>

Thanks for both of your help!

---

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [May 17, 2019, 4:20pm UTC](https://root-forum.cern.ch/t/how-to-read-function-documentation/34106/5 "2019-05-17T16:20:15Z")

</div>

@amadio, what did you search in order to find the function? When I search TF1::Draw, there are no matches.

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [May 17, 2019, 4:59pm UTC](https://root-forum.cern.ch/t/how-to-read-function-documentation/34106/6 "2019-05-17T16:59:35Z")

</div>

Hi,  
you can just search `Draw` and then select the version you want from the drop-down menu.

---

<div class="post-metadata">

**Author:** ![Jabberspocky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jabberspocky/32/18526_2.png) [@Jabberspocky](https://root-forum.cern.ch/u/Jabberspocky)\
**Post date:** [May 17, 2019, 6:31pm UTC](https://root-forum.cern.ch/t/how-to-read-function-documentation/34106/7 "2019-05-17T18:31:56Z")

</div>

OK that makes sense 🙂

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [May 17, 2019, 8:48pm UTC](https://root-forum.cern.ch/t/how-to-read-function-documentation/34106/8 "2019-05-17T20:48:01Z")

</div>

I just went into the top node of TF1 and did a browser search for Draw.
