Akira OKUMURA | 1 Oct 2009 02:27
Picon
Favicon

[ROOT] Eclipse

Hello ROOTers,

Does anyone know a good tutorial for ROOT development on Eclipse (a  
standard IDE) ?

I have been developing my ROOT libraries using Emacs and usual  
terminals, but now I am planning to use Eclipse. I have some previous  
experience of Eclipse with PyDEV plugin. However, there is little  
information about ROOT/Eclipse combination on the web.

Thanks in advance.

Regards,

OKUMURA, Akira oxon <at> juno.phys.s.u-tokyo.ac.jp
Department of Physics, The University of Tokyo
7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
TEL/FAX +81 3-5841-4173/4059
Skype : okumura.akira

Suvayu Ali | 1 Oct 2009 03:04
Picon
Picon
Favicon

Re: [ROOT] Eclipse

Hi Akira,

Akira OKUMURA wrote:
> I have been developing my ROOT libraries using Emacs and usual 
> terminals, but now I am planning to use Eclipse.
> 
Have you looked at CEDET?
* http://cedet.sourceforge.net/
* http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html

I know you were asking about eclipse, but since you mentioned Emacs, I 
couldn't resist. ;)

--

-- 
Suvayu

Open source is the future. It sets us free.

Suvayu Ali | 4 Oct 2009 18:57
Picon
Gravatar

[ROOT] Building ROOT from source on Fedora 11

Hi ROOT users,

I tried building 5.24 and ran into this problem. So I tried the latest
trunk from svn for 5.25, but no luck. :(

It builds just fine without any errors (but a few warnings) with the
following options:

> Enabled support for asimage, astiff, builtin_afterimage,
> builtin_ftgl, builtin_freetype, builtin_pcre, builtin_zlib, cint5,
> cintex, exceptions, fftw3, genvector, gsl_shared, mathmore, memstat,
> minuit2, opengl, python, reflex, roofit, shadowpw, shared, soversion,
> ssl, tmva, unuran, xft, xml, xrootd.

When I open a TBrowser and browse a ROOT file with histograms everything
is fine. But after I save one of those histograms say as an image or a
ROOT macro and then try to close the TBrowser, ROOT segfaults. The
TBrowser window freezes, and the whole terminal becomes non-responsive.
The only way to kill every thing is to do `kill -9 <PID_for_root
PID_for_root.exe>'.

I have attached the error ROOT spits out on segfaulting as a text file.

My system specifications:
2.6.30.8-64.fc11.x86_64
ROOT 5.25/03
g++ (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)

Thank you for any insights into solving this.

(Continue reading)

Rene Brun | 5 Oct 2009 08:47
Picon
Picon

Re: [ROOT] Building ROOT from source on Fedora 11

I cannot reproduce this problem.
Could you compile ROOT in debug mode, then run the valgrind 
memory-checker on root.exe?

Rene Brun

Suvayu Ali wrote:
> Hi ROOT users,
>
> I tried building 5.24 and ran into this problem. So I tried the latest
> trunk from svn for 5.25, but no luck. :(
>
> It builds just fine without any errors (but a few warnings) with the
> following options:
>
>> Enabled support for asimage, astiff, builtin_afterimage,
>> builtin_ftgl, builtin_freetype, builtin_pcre, builtin_zlib, cint5,
>> cintex, exceptions, fftw3, genvector, gsl_shared, mathmore, memstat,
>> minuit2, opengl, python, reflex, roofit, shadowpw, shared, soversion,
>> ssl, tmva, unuran, xft, xml, xrootd.
>
> When I open a TBrowser and browse a ROOT file with histograms everything
> is fine. But after I save one of those histograms say as an image or a
> ROOT macro and then try to close the TBrowser, ROOT segfaults. The
> TBrowser window freezes, and the whole terminal becomes non-responsive.
> The only way to kill every thing is to do `kill -9 <PID_for_root
> PID_for_root.exe>'.
>
> I have attached the error ROOT spits out on segfaulting as a text file.
>
(Continue reading)

Suvayu Ali | 6 Oct 2009 08:46
Picon
Gravatar

Re: [ROOT] Building ROOT from source on Fedora 11

Hi Rene,

Sorry for the delay, I am on the west coast of Canada. :\

On Sunday 04 October 2009 11:47 PM, Rene Brun wrote:
> I cannot reproduce this problem.
> Could you compile ROOT in debug mode, then run the valgrind
> memory-checker on root.exe?
>
I have attached a file with all the particulars about the build 
environment and the options I used to build ROOT. It also includes the 
backtrace from the segfault. I have also attached the log file generated 
by valgrind. I used the following command to attach valgrind to root.

>$ valgrind -v --log-file=valgrind-root.log root -l MonitorESD_91890_1.root

As reported earlier, after the segfault I had to kill ROOT with
$ kill -9 <PID_for_root PID_for_root.exe>

I also noticed that the segfault occurs only when I change something on 
the canvas using the histogram editor and try to close the TBrowser 
after saving it.

I hope this will help you track things down. Hopefully its not some 
stupid mistake on my part :-p

PS: If this makes any difference, the ROOT file was generated by ATHENA 
15.4.0.1 (ROOT version 5.22). It is full of TH1Fs, TH2Fs and TProfiles.

My system specifications:
(Continue reading)

Marc Escalier | 6 Oct 2009 22:05
Picon
Picon

[ROOT] TTree Draw/Scan/Project

Hello,

i would have naive question

Let's consider 2 TTree

TTree *tree1;
TTree *tree2;

tree1 contains variable1
tree2 contains variable2

How to do (in the easiest way) something like :

tree1.Draw("variable1:variable2","easy condition on variable2")

if i do this last command, variable2 is not known whereas i don't do :
tree2.Draw("variable2")

i mean how to access from a tree a variable that is in another tree

thank you

Philippe Canal | 6 Oct 2009 22:12
Favicon

Re: [ROOT] TTree Draw/Scan/Project

Hi Marc,

Use tree1->AddFriend(tree2);

Cheers,
Philippe.

Marc Escalier wrote:
> Hello,
>
> i would have naive question
>
> Let's consider 2 TTree
>
> TTree *tree1;
> TTree *tree2;
>
> tree1 contains variable1
> tree2 contains variable2
>
> How to do (in the easiest way) something like :
>
> tree1.Draw("variable1:variable2","easy condition on variable2")
>
> if i do this last command, variable2 is not known whereas i don't do :
> tree2.Draw("variable2")
>
> i mean how to access from a tree a variable that is in another tree
>
> thank you
(Continue reading)

Marc Escalier | 6 Oct 2009 22:14
Picon
Picon

Re: [ROOT] TTree Draw/Scan/Project

thanks

you my day !

:-)

=====

On Tue, 6 Oct 2009, Philippe Canal wrote:

> Hi Marc,
>
> Use tree1->AddFriend(tree2);
>
> Cheers,
> Philippe.
>
> Marc Escalier wrote:
>> Hello,
>> 
>> i would have naive question
>> 
>> Let's consider 2 TTree
>> 
>> TTree *tree1;
>> TTree *tree2;
>> 
>> tree1 contains variable1
>> tree2 contains variable2
>> 
(Continue reading)

Marc Escalier | 6 Oct 2009 22:15
Picon
Picon

Re: [ROOT] TTree Draw/Scan/Project

thanks

you make my day !

:-)

================

On Tue, 6 Oct 2009, Philippe Canal wrote:

> Hi Marc,
>
> Use tree1->AddFriend(tree2);
>
> Cheers,
> Philippe.
>
> Marc Escalier wrote:
>> Hello,
>> 
>> i would have naive question
>> 
>> Let's consider 2 TTree
>> 
>> TTree *tree1;
>> TTree *tree2;
>> 
>> tree1 contains variable1
>> tree2 contains variable2
>> 
(Continue reading)

Akira OKUMURA | 7 Oct 2009 08:35
Picon
Favicon

Re: [ROOT] Eclipse

Hello Jan,

Thank you for your replays. >> Jan and Suayu

> - Run configure manually.

This is a nice tip because I did not know how to run the configure  
script in Eclipse. In addition, I had some qustions. For example, I  
could not set environment variables, such as ROOTSYS and PATH, on my  
Mac, but now I figured out how to do it.

Mac's GUI application does not read my .zshrc when I launch it by  
double clicking. However, if I call /Applications/eclipse/eclipse from  
a terminal window, ROOTSYS was set properly in Eclipse.

I could not find the answers for these elementary questions on the web  
last week. But now I am enjoying developing on Eclipse with Subversive.

Regards,

OKUMURA, Akira oxon <at> juno.phys.s.u-tokyo.ac.jp
Department of Physics, The University of Tokyo
7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
TEL/FAX +81 3-5841-4173/4059
Skype : okumura.akira

On 2009/10/02, at 0:30, Jan Iwaszkiewicz wrote:

> Hi Akira,
>
(Continue reading)


Gmane