Re: new classes

From: Axel Naumann <>
Date: Sat, 01 Jul 2006 01:24:02 +0200

Hi Mario,

Mario Kadastik wrote:

>> create a dictionary. See the excellent users guide, which is meant to
>> help you with these questions. Also read the chapter about ACLiC - esp
>> if you want "just a tree with my class" there's absolutely no reason to
>> build a binary.

> well I want to run my event generation in a compiled version as it's 10x
> faster.

As I said - read the chapter on ACLiC. It _is_ about compiled code.

> And I want to use the libraries for other applications as well
> (CMSSW as it's gonna be my actual tree writing part with root being the
> reading part later).

Sure - again a perfectly vaid reason to prototype it with ACLiC.

>> You can additionally have a look at the Event examples in $ROOTSYS/test.

> if you think that it's an easy example, then you are way off :P

Yeah, that's true, it's not that easy :-)

> I don't
> know a thing about dictionaries and don't see their point so I don't
> have even a hint what to look for in the users guide.

Chapter 7.

> I'm reading at
> this moment, but it would be nice to just know the command, I can find
> out why this is done and how later on... It would really be useful to
> have also simple examples to things people commonly might have to do
> while getting started with such things.

root [0] .L MyEvent.cxx+
root [1] .L MyTreeCreator.cxx+
root [2] createTree()

would be an example. Move your main into a CreateTree() func in MyTreeCreator.cxx, and you're done.

Cheers, Axel.

> --------------------------------
> Mario Kadastik
> CMS experiment
> <>
> "Physics is like sex, sure it may give some practical results, but
> that's not why we do it"
> --- Richard P. Feynman
Received on Sat Jul 01 2006 - 01:24:07 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET