read file from ASCII file with vector

From: Marco Calviani <marco.calviani_at_gmail.com>
Date: Wed, 3 May 2006 10:26:39 +0200


Hi rooters,

   i've tried to build a small C++ macro to read data from an ASCII file to be later used to build a TGraphErrors. I've decided to use vector object insted of the traditional array because vector objects can grow dynamically un size at runtime while traditional array have a fixed size.
The data are correctly read by the macro but TGraphErrors is not able to accept a vector as a input. I've seen that it could accept TVectorT: how is it possible (and if) to transform a vector into a TVectorT?

Regards,
Marco Received on Wed May 03 2006 - 10:26:46 MEST

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