Hello Philippe,
Since I do not need the graphics output in a script, I use "groff" option in Draw() and gPad is not being created (gPad==NULL). So it doesn't work...
Moreover, even if I'm really drawing the plot (without "groff" option), the FindObject("Graph") for unknown reason returns NULL.
> Replace
> TGraph* gr_tmp = (TGraph*) gDirectory->Get("graph1");
> with
> TGraph* gr_tmp = (TGraph*) gPad->FindObject("Graph");
>
> Where the name "Graph" is hard coded (and not dependent at all on the name
> you gave in the TTree::Draw command).
-- Best regards, Ilya Orlov. ATLAS experiment, CERN Electromagnetic LAr end-cap calorimeter groupReceived on Thu Aug 21 2008 - 16:34:21 CEST
This archive was generated by hypermail 2.2.0 : Thu Aug 21 2008 - 17:50:01 CEST