RE: Drawing the leafs of TTrees

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Thu, 21 Aug 2008 14:30:15 -0500


Hi Ilya,

In you standalone case, you most likely did not create a TApplication object which is required to do graphics (even in 'batch' mode):

// create an instance of TApplication

   gMyRootApp = new TApplication("My ROOT Application", &argc, argv);

Cheers,
Philippe.

-----Original Message-----
From: orlovio_at_gmail.com [mailto:orlovio_at_gmail.com] On Behalf Of Ilya Orlov Sent: Thursday, August 21, 2008 2:13 PM
To: Philippe Canal
Cc: roottalk_at_pcroot.cern.ch
Subject: Re: [ROOT] Drawing the leafs of TTrees

Hi Philippe,

On Thu, Aug 21, 2008 at 6:58 PM, Philippe Canal <pcanal_at_fnal.gov> wrote:
> Hi Ilya,
>
> What do you mean by a "standalone" script? Are you writing your own main
in
> this case?

Yes, I'm writing my own main and compiling it with ROOT headers and libraries.

When executing the script within ROOT CINT, everything works now perfectly (thank you for advises!), but when I'm trying to do the same things from the separate program outside ROOT environment, some weird things appear...

--
Best regards,
Ilya Orlov.

ATLAS experiment, CERN
Electromagnetic LAr end-cap calorimeter group
Received on Thu Aug 21 2008 - 21:30:28 CEST

This archive was generated by hypermail 2.2.0 : Thu Aug 21 2008 - 23:50:01 CEST