Re: TControlBar in a class (fwd)

From: Ilka Antcheva <>
Date: Thu, 18 Aug 2005 11:10:34 +0200

Hi Panos,

Using the method AddButton you can assign one frequently used ROOT or C++ command. If you need to print a value of a variable, it should be known by CINT, i.e. declared as a global one. Please see the attached macro cbar2.C. For more details how to declare globals, please see "The LinkDef.h File" in the chapter "Adding a Class" of ROOT User's Guide at

Best regards, Ilka

> Dear Ilka,
> thank you for your answer.
> I've tried what you suggested and it works up to the moment you just
> print a simple line in the MyClass::PrintEventStats() method. But if
> you then try to print a parameter in this method, such as
> fNumberOfAcceptedEvents that is defined as protected in the header and
> takes its value from another method such as MyClass::IsAccepted(),
> then the session crashes generating a segmentation violation.
> In the attached file you can see the modified class that you sent me
> in order to have a better idea on what exactly I'm talking about.
> Do you have any idea?
> Best regards,
> Panos

Received on Thu Aug 18 2005 - 11:17:04 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:11 MET