# Problem with a macro file

**URL:** <https://root-forum.cern.ch/t/problem-with-a-macro-file/32883>\
**Category:** Newbie\
**Created:** [February 24, 2019, 1:49pm UTC](https://root-forum.cern.ch/t/problem-with-a-macro-file/32883 "2019-02-24T13:49:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnyBoy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/johnyboy/32/19741_2.png) [@JohnyBoy](https://root-forum.cern.ch/u/JohnyBoy)\
**Post date:** [February 24, 2019, 1:49pm UTC](https://root-forum.cern.ch/t/problem-with-a-macro-file/32883/1 "2019-02-24T13:49:08Z")

</div>

Hello everyone.

I’m having some problems with an example of a macro file I got at [https://root.cern.ch/root/html/tutorials/hist/ratioplot.C.html](https://root.cern.ch/root/html/tutorials/hist/ratioplot.C.html) . When I try to run the macro file, the following errors appear:

/home/oscar/Downloads/root-6.14.02/obj/macros/Histogram.C:87:2: error: unknown type name ‘ratioplot’  
ratioplot.C:1  
^  
/home/oscar/Downloads/root-6.14.02/obj/macros/Histogram.C:87:11: error: cannot use dot operator on a type  
ratioplot.C:1

I do not understand what is the issue here. I would appreciate any help or resource that can aid me to solve this problem.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Triple\_S](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/triple_s/32/17129_2.png) [@Triple\_S](https://root-forum.cern.ch/u/Triple_S)\
**Post date:** [February 24, 2019, 2:03pm UTC](https://root-forum.cern.ch/t/problem-with-a-macro-file/32883/2 "2019-02-24T14:03:41Z")

</div>

Please explain how you tried to run the file.  
It sounds like you want to run ratioplot.C, but the error message says you actually ran a file named Histogram.C  
Threrefore: What exactly are you attempting?

---

<div class="post-metadata">

**Author:** ![JohnyBoy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/johnyboy/32/19741_2.png) [@JohnyBoy](https://root-forum.cern.ch/u/JohnyBoy)\
**Post date:** [February 24, 2019, 2:14pm UTC](https://root-forum.cern.ch/t/problem-with-a-macro-file/32883/3 "2019-02-24T14:14:25Z")

</div>

Hello.  
Thank you for your time. It seems to be that what you said was the whole problem. Once again thank you very much, I am quite new and unfamiliar with ROOT.

---

<div class="post-metadata">

**Author:** ![Triple\_S](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/triple_s/32/17129_2.png) [@Triple\_S](https://root-forum.cern.ch/u/Triple_S)\
**Post date:** [February 24, 2019, 2:16pm UTC](https://root-forum.cern.ch/t/problem-with-a-macro-file/32883/4 "2019-02-24T14:16:03Z")

</div>

No problem, you are welcome.  
The forum was made to ask all kinds of questions.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 24, 2019, 2:20pm UTC](https://root-forum.cern.ch/t/problem-with-a-macro-file/32883/5 "2019-02-24T14:20:32Z")

</div>

Note that you are trying to use an [old ROOT 5 “ratioplot” tutorial](https://root.cern.ch/root/html/tutorials/hist/). I think you should try the [new ROOT 6 tutorials (there are 7 “ratioplot” related ones)](https://root.cern.ch/doc/master/group __tutorial__ hist.html).
