Re: TGraph2DErrors

From: Bakur Parsamyan <bakur_at_cern.ch>
Date: Mon, 16 Mar 2009 15:25:14 +0100

Hi Margar,

I guess you need to define number of points in your graph.. Try to use g->Set(n);
http://root.cern.ch/root/htmldoc/TGraph2DErrors.html#TGraph2DErrors:Set

regards,

Bakur.

Margar Simonyan wrote:
> Hello ROOT team
>
> I don't understand why the following few lines result into ROOT crush
>
> root [0] TGraph2DErrors * g = new TGraph2DErrors()
> root [1] g->SetNameTitle("a", "b")
> root [2] g->SetPoint(0, 1.0, 1.0, 1.0)
> root [3] g->SetPointError(0, 1.0, 1.0, 1.0)
>
> I have tested on ROOT version 5.16/00 (lxplus) and 5.20/00 (my
> laptop). Any explanation ?
>
> Thanks,
> Margar
>
>
> *** Break *** segmentation violation
> (no debugging symbols found)
> Using host libthread_db library "/lib64/tls/libthread_db.so.1".
> Attaching to program: /proc/25479/exe, process 25479
> (no debugging symbols found)...done.
> [Thread debugging using libthread_db enabled]
> [New Thread 182913018112 (LWP 25479)]
>
> ------------------------------------------------------------------------------------------------------
> Margar Simonyan ------ post-doctoral researcher, ATLAS
> LAPP, 9 Chemin de Bellevue, BP 110 F-74941, Annecy-le-Vieux
> Tel: +33450091785 +41227671123 (CERN)
> -----------------------------------------------------------------------------------------------------
>
>
Received on Mon Mar 16 2009 - 15:25:39 CET

This archive was generated by hypermail 2.2.0 : Mon Mar 16 2009 - 17:50:02 CET