# Adding a class: hand holding requested

**URL:** <https://root-forum.cern.ch/t/adding-a-class-hand-holding-requested/13893>\
**Category:** ROOT\
**Created:** [February 29, 2012, 4:39pm UTC](https://root-forum.cern.ch/t/adding-a-class-hand-holding-requested/13893 "2012-02-29T16:39:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [February 29, 2012, 10:27pm UTC](https://root-forum.cern.ch/t/adding-a-class-hand-holding-requested/13893/3 "2012-02-29T22:27:08Z")

</div>

[quote]a. does myClass /have/ to derive from TObject?  
b. does myClass /have/ to use the ClassDef and ClassImp macros?  
[/quote]No neither are compulsory (but both are a performance improvement) See the link Pepe pointed to for more details.

[quote]c. Is the process for generating the dictionary to run this command?[/quote]Yes.

[quote]d) What do I do with these files? Do I /have/ to create a shared library with them?[/quote]Yes (see Pepe’s answer for details)

[quote]a) how is the process different from MyClass?[/quote]It is technically not different. However newer version of ROOT are capable of auto generating those dictionary and libraries.

Cheers,  
Philippe.

---

_[View the full topic](https://root-forum.cern.ch/t/adding-a-class-hand-holding-requested/13893)._
