Re: sorting a vecto

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Tue, 11 Nov 2008 09:54:17 +0100


Hi Roger,

> What use is the CINT interpreter, at least for running named scipts?

Despite some unfortunate issues, CINT can interpreter many scripts. One advantage of
CINT over python is that once you reach the limit of CINT (speed and/or compliance) you
can almost seamlessly move to compile code (just add header file, correct syntax errors and
use ACLiC).

 > to be little advantage over making a stand alone application using a makefile.

Well, 2 advantages of using script (and ACLiC) is that it is in general simpler than writing
Makefile (especially if you want to run on more than one platform); in addition and more
importantly, when using the root executable, once the script is executed you can still
manipulate your objects and fine tune your analysis and/or displays ... using the same type
of syntax.

> A question: is there a means to make commands like
> .L MyClass.C or .x MyClass.C
> actually execute
> .L MyClass.C+ or .x MyClass.C+ ?

Not at the moment. (In a related development the latest version of ROOT/CINT has a feature that will automatically compile template instantiation on demand rather than interpret them).

Cheers,
Philippe.

Roger Mason wrote:
> Hi Philippe and James,
>
> Philippe Canal <pcanal_at_fnal.gov> writes:
>
>
>> To work around this issue, compile your script via ACLiC;
>>
>> root [0] .L MyClass.C+
>> root [1] MyClass m root [2] m.Loop()
>>
>
> Thanks to you both I now have a script that is on the way to doing
> what I want.
>
> A question: is there a means to make commands like:
>
> .L MyClass.C or .x MyClass.C
>
> actually execute
>
> .L MyClass.C+ or .x MyClass.C+ ?
>
> The advice to compile begs the question: What use is the CINT
> interpreter, at least for running named scipts? If one needs in
> practice to go through an edit-compile-run cycle there seems to be
> little advantage over making a stand alone application using a
> makefile.
>
> Does the Python interface offer any advantages over CINT?
>
> Thanks again,
>
> Roger
>
> (Who may soon stop tearing out his hair).
>
Received on Tue Nov 11 2008 - 09:54:25 CET

This archive was generated by hypermail 2.2.0 : Sun Dec 07 2008 - 17:50:01 CET