Re: read file from ASCII file with vector

From: Marco Calviani <marco.calviani_at_gmail.com>
Date: Wed, 3 May 2006 15:23:00 +0200


Hi,
 sorry i've made a stupid question. However thanks Axel, i've resolved my issue.

Regards,
MC

2006/5/3, Marco Calviani <marco.calviani_at_gmail.com>:
> Hi,
> but values is the vector?
>
> regards,
> MC
>
> 2006/5/3, Axel Naumann <Axel.Naumann_at_cern.ch>:
> > Hi,
> >
> > a vector's elements have to be consecutive in memory; you can convert
> >
> > std::vector<Double_t> values;
> > Double_t* pValues = &(values[0]);
> >
> > and pass that pValues to the TGraphErrors constructor.
> > Cheers, Axel.
> >
>
Received on Wed May 03 2006 - 15:23:10 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET