Re: [ROOT] Cut Definition and Command Draw

From: David d'Enterria (enterria@in2p3.fr)
Date: Wed Apr 04 2001 - 14:07:44 MEST


Hi Annalisa,

En/Na Annalisa De Caro ha escrit:

> And an other problem...
> When the command Draw (ntuple-Draw("Xpos"); or histogram->Draw();)is inside
> a macro, the histogram is plotted only when the macro is closed. And When
> the command Draw is inside a macro called by an other main macro,
> the histogram is plotted only when the main macro is closed. But how can i
> interact with the histogram (to draw a line where i want, for example), if i
> do not see him?

If I understand well, in a macro after you do "whatever->Draw()" you need to
do:
c1->Update(); // assuming c1 is the name of your canvas
to see the changes.

Cheers,
--
 David D'ENTERRIA  -  Marie-Curie PostDoc Fellow  -  TAPS·PHENIX·ALICE
 Groupe Photons SUBATECH                        tel: +33 2 51 85 85 60
 4, A. Kastler BP 20722 · 44307 Nantes          fax: +33 2 51 85 84 24
 http://www-subatech.in2p3.fr/~photons        mailto:enterria@in2p3.fr
 ---------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET