# Macro /usr/local/root/tutorials/pythia/pythiaExample.C does not work in root version 6.22/01

**URL:** <https://root-forum.cern.ch/t/macro-usr-local-root-tutorials-pythia-pythiaexample-c-does-not-work-in-root-version-6-22-01/45954>\
**Category:** Newbie\
**Created:** [July 21, 2021, 1:46pm UTC](https://root-forum.cern.ch/t/macro-usr-local-root-tutorials-pythia-pythiaexample-c-does-not-work-in-root-version-6-22-01/45954 "2021-07-21T13:46:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurbatov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/ee7513/32.png) [@kurbatov](https://root-forum.cern.ch/u/kurbatov)\
**Post date:** [July 21, 2021, 1:46pm UTC](https://root-forum.cern.ch/t/macro-usr-local-root-tutorials-pythia-pythiaexample-c-does-not-work-in-root-version-6-22-01/45954/1 "2021-07-21T13:46:50Z")

</div>

_ROOT Version:_ 6.22/01  
_Platform:_ Ubuntu 18.04.5 LTS  
_Compiler:_ gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

I am novice with PYthia and tried /usr/local/root/tutorials/pythia/pythiaExample.C without  
success. Companion macro /usr/local/root/tutorials/pythia/pythia8.C uses PYthia8 and works, but pythiaExample.C  
is supposed to use PYthia6(perhaps,not everything set for this version). Is it possible somehow to revive pythiaExample.C, because  
it is very informative?May be somebody has an example, working in PYthia8 and having

similar collection fpythia functionalities?

---

<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:** [July 21, 2021, 2:19pm UTC](https://root-forum.cern.ch/t/macro-usr-local-root-tutorials-pythia-pythiaexample-c-does-not-work-in-root-version-6-22-01/45954/2 "2021-07-21T14:19:38Z")

</div>

> [@kurbatov](#):
>
> Is it possible somehow to revive pythiaExample.C, because  
> it is very informative?

[It does not seems dead …](https://root.cern/doc/master/group __tutorial__ pythia.html)

---

<div class="post-metadata">

**Author:** ![kurbatov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/ee7513/32.png) [@kurbatov](https://root-forum.cern.ch/u/kurbatov)\
**Post date:** [July 22, 2021, 8:59am UTC](https://root-forum.cern.ch/t/macro-usr-local-root-tutorials-pythia-pythiaexample-c-does-not-work-in-root-version-6-22-01/45954/3 "2021-07-22T08:59:00Z")

</div>

I am sorry! Perhaps I did some mistake.

It looks that pythiaExample.C is working.

Now I am playing with it and may be you can answer one more

question:

In its text I encountered with the clause “#ifdef R\_\_MACOSX”.

As I understand R\_\_MACOSX is cling compiler macro variable. How can I

see its value?

Thanks again

---

<div class="post-metadata">

**Author:** ![kurbatov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/ee7513/32.png) [@kurbatov](https://root-forum.cern.ch/u/kurbatov)\
**Post date:** [July 22, 2021, 9:04am UTC](https://root-forum.cern.ch/t/macro-usr-local-root-tutorials-pythia-pythiaexample-c-does-not-work-in-root-version-6-22-01/45954/4 "2021-07-22T09:04:38Z")

</div>

Sorry to disturb you again!

What cling does when it encounters gSystem-\>Load(“libpythia6\_dummy”);

Does it simply check presence of libraries as it is written in comment?

What it does if libraries are not loaded?

---

<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:** [July 22, 2021, 10:08am UTC](https://root-forum.cern.ch/t/macro-usr-local-root-tutorials-pythia-pythiaexample-c-does-not-work-in-root-version-6-22-01/45954/5 "2021-07-22T10:08:11Z")

</div>

> [@kurbatov](#):
>
> As I understand R\_\_MACOSX is cling compiler macro variable. How can I
> 
> see its value?

This true when you are running on MacOSX. You are on Ubuntu, so the code under this flag is not used in your case.

> [@kurbatov](#):
>
> What cling does when it encounters gSystem-\>Load(“libpythia6\_dummy”);

The best is to [read the documentation](https://root.cern/doc/master/classTSystem.html#a6ff4c4c6cd8a75a199a30dd94359f205).
