Re: [ROOT] TVector and TGraph

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jun 24 2002 - 12:37:14 MEST


Mark,

Could you send the shortest possible example reproducing the problem?
AND PLEASE SPECIFY WHICH VERSION YOU ARE USING

Rene Brun

On Mon, 24 Jun 2002, Mark Hodgkinson wrote:

> Hi,
> 
> I am trying to plot two arrays of data using TGraph. I seem to get a
> segmentation fault when using the constructor, but dont understand why.
> I just did,
> 
> TGraph *gr1 = new TGraph(size, tau_mom_t, cos_theta_t);
> 
> size is an integer, and the latter two arrays are arrays of doubles.
> 
> The complete error message is:
> 
> *** Break *** segmentation violation
> Root > Function pvstheta() busy flag cleared
> 
> pvstheta is my function that I created.
> 
> Someone posted a reply to a similar question before but I didnt understand
> the answer.
> 
> Thanks for your help,
> 
> Mark.
> 
> -- 
> --------------------------------------------------------------------------------------------
> Mark Hodgkinson				phone (+44)(0)161 2754150
> Office 7-11				email markhod@hep.man.ac.uk
> HEP Group
> Schuster Laboratory
> University of Manchester
> Oxford Road
> Manchester
> England
> 
> http://www.hep.man.ac.uk/~markhod
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:58 MET