# Question about TGenPhaseSpace

**URL:** <https://root-forum.cern.ch/t/question-about-tgenphasespace/31947>\
**Category:** Newbie\
**Created:** [December 10, 2018, 9:31pm UTC](https://root-forum.cern.ch/t/question-about-tgenphasespace/31947 "2018-12-10T21:31:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danny](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@danny](https://root-forum.cern.ch/u/danny)\
**Post date:** [December 10, 2018, 9:31pm UTC](https://root-forum.cern.ch/t/question-about-tgenphasespace/31947/1 "2018-12-10T21:31:24Z")

</div>

Hi, I have a question about TGenPhaseSpace. I want to modify the code, and I just tried the first thing, which was just to copy the original and change names. in some other part of your website I found that in order to implement my own clases

```auto
ClassDef(ClassName,ClassVersionID) //The class title

```

and also

```auto
ClassImp(ClassName)

```

must be in the .C and .h parts of the code.  
When I run my code trying to use the copied version of TGenPhaseSpace I get this

```auto
IncrementalExecutor::executeFunction: symbol '_ZN6TMyGen8GenerateEv' unresolved while linking function '_GLOBAL__sub_I_cling_module_4'!
You are probably missing the definition of TMyGen::Generate()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN6TMyGen8GetDecayEi' unresolved while linking function '_GLOBAL__sub_I_cling_module_4'!
You are probably missing the definition of TMyGen::GetDecay(int)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN6TMyGen8SetDecayER14TLorentzVectoriPKdPKc' unresolved while linking function '_GLOBAL__sub_I_cling_module_4'!
You are probably missing the definition of TMyGen::SetDecay(TLorentzVector&, int, double const*, char const*)
Maybe you need to load the corresponding shared library?

```

Thanks for your help

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [December 14, 2018, 11:37am UTC](https://root-forum.cern.ch/t/question-about-tgenphasespace/31947/2 "2018-12-14T11:37:03Z")

</div>

Being followed in another entry, closing.

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [December 14, 2018, 11:37am UTC](https://root-forum.cern.ch/t/question-about-tgenphasespace/31947/3 "2018-12-14T11:37:16Z")

</div>

Closed on December 14, 2018, 11:37am UTC


